[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <317ec142-2238-ce9f-adba-d6335b1fab8e@intel.com>
Date: Fri, 31 Aug 2018 10:12:44 +0300
From: Adrian Hunter <adrian.hunter@...el.com>
To: Sayali Lokhande <sayalil@...eaurora.org>, subhashj@...eaurora.org,
cang@...eaurora.org, vivek.gautam@...eaurora.org,
rnayak@...eaurora.org, vinholikatti@...il.com,
jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com,
asutoshd@...eaurora.org, evgreen@...omium.org,
riteshh@...eaurora.org
Cc: stummala@...eaurora.org, jlbec@...lplan.org,
linux-scsi@...r.kernel.org,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V12 2/2] scsi: ufs: Add configfs support for UFS
provisioning
On 30/08/18 13:46, 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 and CONFIG_UFS_PROVISION needs to be enabled
> for using this feature.
>
> Usage:
> 1) To read current configuration descriptor with index X
> (where index X can be 0/1/2/3) :
> cat /config/XXXX.ufshc/ufs_config_desc_X
>
> 2) To write configuration descriptor with index X :
> echo <config_desc_buf> > /config/XXXX.ufshc/ufs_config_desc_X
>
> Signed-off-by: Sayali Lokhande <sayalil@...eaurora.org>
> ---
<SNIP>
> +static struct configfs_attribute ufshcd_attr_provision_0 = {
Actually, wasn't the original suggestion to use a binary attribute? i.e.
configfs_bin_attribute
Powered by blists - more mailing lists