Re: [PATCH v2 1/2] scsi: ufs: core: Remove unnecessary if statement

From: Bart Van Assche
Date: Fri Oct 14 2022 - 16:42:10 EST


On 10/14/22 12:20, Bean Huo wrote:
I am working on the Advanced RPMB, and trying to seperate normal unit
descriptor and RPMB unit descriptor, will let you know if it is
possible. or if you know the solution, please let me know, thanks.

Hi Bean,

How about setting .is_visible member of struct attribute_group in the UFS
driver and letting that callback decide which sysfs attributes are visible
depending on the logical unit type?

Thanks,

Bart.