Re: [PATCH V5 2/2] scsi: ufs: Add configfs support for ufs provisioning

From: Sayali Lokhande
Date: Wed Jul 11 2018 - 05:50:14 EST




On 7/9/2018 1:51 AM, Christoph Hellwig wrote:
On Fri, Jul 06, 2018 at 11:50:40AM +0530, Sayali Lokhande wrote:
This patch adds configfs support to provision ufs device at
runtime. This feature can be primarily useful in factory or
assembly line as some devices may be required to be configured
multiple times during initial system development phase.
Configuration Descriptors can be written multiple times until
bConfigDescrLock attribute is zero.

Configuration descriptor buffer consists of Device and Unit
descriptor configurable parameters which are parsed from vendor
specific provisioning file and then passed via configfs node at
runtime to provision ufs device.
CONFIG_CONFIGFS_FS needs to be enabled for using this feature.
As mentioned before: this absolutely needs to be a separate
config option so that the code can be compiled out entirely.
Agree. Will add separate config for UFS Provision and set it dependent on CONFIGFS_FS