From: Adrian Hunter <adrian.hunter@intel.com>
To: Sayali Lokhande <sayalil@codeaurora.org>,
subhashj@codeaurora.org, cang@codeaurora.org,
vivek.gautam@codeaurora.org, rnayak@codeaurora.org,
vinholikatti@gmail.com, jejb@linux.vnet.ibm.com,
martin.petersen@oracle.com, asutoshd@codeaurora.org,
evgreen@chromium.org, riteshh@codeaurora.org
Cc: stummala@codeaurora.org, jlbec@evilplan.org,
linux-scsi@vger.kernel.org,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V12 2/2] scsi: ufs: Add configfs support for UFS provisioning
Date: Fri, 31 Aug 2018 10:12:44 +0300 [thread overview]
Message-ID: <317ec142-2238-ce9f-adba-d6335b1fab8e@intel.com> (raw)
In-Reply-To: <1535626003-4966-3-git-send-email-sayalil@codeaurora.org>
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@codeaurora.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
next prev parent reply other threads:[~2018-08-31 7:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1535626003-4966-1-git-send-email-sayalil@codeaurora.org>
2018-08-30 10:46 ` [PATCH V12 1/2] scsi: ufs: set the device reference clock setting Sayali Lokhande
2018-08-30 10:46 ` [PATCH V12 2/2] scsi: ufs: Add configfs support for UFS provisioning Sayali Lokhande
2018-08-31 7:12 ` Adrian Hunter [this message]
2018-09-05 10:05 ` Sayali Lokhande
2018-09-12 13:14 ` Adrian Hunter
2018-09-14 8:54 ` Sayali Lokhande
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=317ec142-2238-ce9f-adba-d6335b1fab8e@intel.com \
--to=adrian.hunter@intel.com \
--cc=asutoshd@codeaurora.org \
--cc=cang@codeaurora.org \
--cc=evgreen@chromium.org \
--cc=jejb@linux.vnet.ibm.com \
--cc=jlbec@evilplan.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=riteshh@codeaurora.org \
--cc=rnayak@codeaurora.org \
--cc=sayalil@codeaurora.org \
--cc=stummala@codeaurora.org \
--cc=subhashj@codeaurora.org \
--cc=vinholikatti@gmail.com \
--cc=vivek.gautam@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®