summaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorBao D. Nguyen <quic_nguyenb@quicinc.com>2025-03-28 14:46:13 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2025-04-03 10:54:31 -0400
commit1fd2e77b889761d9bde0c580518689d1d8e83117 (patch)
treed0ede1b539fa1e903f3137d063fc6cf7e459a199 /rust/helpers/helpers.c
parentbdab40480b146e2f37f4c7164cb47f526e77ee6d (diff)
downloadlinux-stable-1fd2e77b889761d9bde0c580518689d1d8e83117.tar.gz
linux-stable-1fd2e77b889761d9bde0c580518689d1d8e83117.tar.bz2
linux-stable-1fd2e77b889761d9bde0c580518689d1d8e83117.zip
scsi: ufs: core: Add device level exception support
The ufs device JEDEC specification version 4.1 adds support for the device level exception events. To support this new device level exception feature, expose two new sysfs nodes below to provide the user space access to the device level exception information. /sys/bus/platform/drivers/ufshcd/*/device_lvl_exception_count /sys/bus/platform/drivers/ufshcd/*/device_lvl_exception_id The device_lvl_exception_count sysfs node reports the number of device level exceptions that have occurred since the last time this variable is reset. Writing a value of 0 will reset it. The device_lvl_exception_id reports the exception ID which is the qDeviceLevelExceptionID attribute of the device JEDEC specifications version 4.1 and later. The user space application can query these sysfs nodes to get more information about the device level exception. Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com> Link: https://lore.kernel.org/r/6278d7c125b2f0cf5056f4a647a4b9c1fdd24fc7.1743198325.git.quic_nguyenb@quicinc.com Reviewed-by: Peter Wang <peter.wang@mediatek.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Arthur Simchaev <arthur.simchaev@sandisk.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions