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

From: Bean Huo
Date: Fri Oct 14 2022 - 16:57:25 EST


On Fri, 2022-10-14 at 13:41 -0700, Bart Van Assche wrote:
> 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.

Thanks, it looks like what I expected, I'll verify it further.

Kind regards,
Bean