]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Limit users changing debugfs BIST count value
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 24 Feb 2022 11:51:28 +0000 (19:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:46:40 +0000 (21:46 -0500)
commit75d31ee5cf6a89f2476c3b61dc8c6a49e919dc05
treebf739904f878a19e1a727db166bae6d63f6578c3
parente9af0228040667d57b461bdf587931186eda68e0
scsi: hisi_sas: Limit users changing debugfs BIST count value

Add a file operation for "cnt" file under bist directory, so users can only
read "cnt" or clear "cnt" to zero, but cannot randomly modify.

Link: https://lore.kernel.org/r/1645703489-87194-6-git-send-email-john.garry@huawei.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Qi Liu <liuqi115@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c