Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp295805imm; Fri, 31 Aug 2018 00:16:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZdJBHTPtfUiAH56/wSv+ZUwCBDhjFQbs488EtjzY0kae9BVCrDEfrpRAN4Kb2V4P1KBiyZ X-Received: by 2002:a17:902:1d4a:: with SMTP id u10-v6mr14056159plu.267.1535699764998; Fri, 31 Aug 2018 00:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535699764; cv=none; d=google.com; s=arc-20160816; b=pSNGk1Vqq6ztWQkiP31JgPoHEoAEYuMImaTUXzLWbAaWe3KapwA58sisc6lL6kQIbD enlsHiEtwbK9PPlsum2Qoh377l7DXeitq3ANq/vPA6Las8Aaqc+MTtBngwnwX953N9wR U+sIp3gp/F4rnpdMiDE60JQy7mLiHfC+4YCkr9wTuahQgTDaApkRq90BGj2/QBLDNhIB WlExleW3ZGxPkRwpODB96MrT8kH/zE3ZnzSZdAZqXSP4CT+1kGjmPHcLg1EITKArrTGT vd2FhC22A+o0HFguPQTyl1V9nElRBETPH6IUNfoJoxlRnhC1zTveSb0ZZk6yeu0BpBO1 1HoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=a9K61eTo/ovb5pBl3xgVlpXe1H7xgY+0TJz9DMqg3jE=; b=AEexaRdYq7cO28n22r4fap7ZPPKCW/j8T30z2C63yHiB1xBbmyPYv8A3PjKVeX/Kia 61Y/sfaw79ZBzQrdTD3RiD2QKSCvsNqc8Xbr6NnE+1rSLIqll+kbvJtGk2im1FstlhUz rYipKg3DwQS0pm6/qgQmVeI8yT4e/c/lbc8E4Ze3xPrFMJJ4F6OXav7hpWPBjiLEjzwA X0KDVK4OWXAxqS1fVFKZPgZ2TmzKGMQfMoSWU72vfGRdKDG3GbUShAnNlB82owf9iZ6c hYyjPPGEvUabtQYI/72UV2MPTirflHS7S0uNa8WeTYt7q3xkDtzPbCka/GWVa7FFJAMm VBeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si7817866pgp.681.2018.08.31.00.15.49; Fri, 31 Aug 2018 00:16:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727449AbeHaLUq (ORCPT + 99 others); Fri, 31 Aug 2018 07:20:46 -0400 Received: from mga05.intel.com ([192.55.52.43]:57905 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbeHaLUq (ORCPT ); Fri, 31 Aug 2018 07:20:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Aug 2018 00:14:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,309,1531810800"; d="scan'208";a="87840540" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.98]) ([10.237.72.98]) by orsmga002.jf.intel.com with ESMTP; 31 Aug 2018 00:14:24 -0700 Subject: Re: [PATCH V12 2/2] scsi: ufs: Add configfs support for UFS provisioning To: Sayali Lokhande , 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 References: <1535626003-4966-1-git-send-email-sayalil@codeaurora.org> <1535626003-4966-3-git-send-email-sayalil@codeaurora.org> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <317ec142-2238-ce9f-adba-d6335b1fab8e@intel.com> Date: Fri, 31 Aug 2018 10:12:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1535626003-4966-3-git-send-email-sayalil@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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/XXXX.ufshc/ufs_config_desc_X > > Signed-off-by: Sayali Lokhande > --- > +static struct configfs_attribute ufshcd_attr_provision_0 = { Actually, wasn't the original suggestion to use a binary attribute? i.e. configfs_bin_attribute