scsi: ufs: core: Use is_visible to control UFS unit descriptor sysfs nodes
authorBean Huo <beanhuo@micron.com>
Tue, 25 Oct 2022 22:24:30 +0000 (00:24 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Oct 2022 02:20:50 +0000 (02:20 +0000)
commit9d266e792b0fb4c25448dc240a808667e0932ef2
tree4d1a5d9a09f33f5a8e0e18364c7334eee1461bf9
parentdca899bc02231214e25cffd3014cc77018dae942
scsi: ufs: core: Use is_visible to control UFS unit descriptor sysfs nodes

UFS Boot and Device W-LUs do not have unit descriptors and RPMB does not
support WB. Use is_visible() to control which nodes are visible and which
are not.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20221025222430.277768-4-beanhuo@iokpp.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Arthur Simchaev <arthur.simchaev@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufs-sysfs.c