Re: [PATCH v3 2/2] ufs: core: print UFSHCD capabilities in controller's sysfs node

From: Eric Biggers
Date: Fri Jul 29 2022 - 00:02:30 EST


On Fri, Jul 29, 2022 at 12:05:08PM +1000, Daniil Lunev wrote:
> +What: /sys/bus/platform/drivers/ufshcd/*/capabilities/crypto
> +What: /sys/bus/platform/devices/*.ufs/capabilities/crypto
> +Date: July 2022
> +Contact: Daniil Lunev <dlunev@xxxxxxxxxxxx>
> +Description: Indicates status of Inline Crypto Engine support.
> +
> + == ============================
> + 0 Inline Crypto Engine can not be used.
> + 1 Inline Crypto Engine can be used.
> + == ============================
> +
> + The file is read only.

Why is this needed when /sys/block/$disk/queue/crypto/ already exists and
provides more information?

- Eric