Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2997233imm; Mon, 24 Sep 2018 13:46:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Md4+OasbleLEKqVQFwi0XOnAU3xJoryqII/Tf8iJ/RLZZHXex/sOienn3dEgqwXKWATsX X-Received: by 2002:a62:90d4:: with SMTP id q81-v6mr449442pfk.37.1537821997699; Mon, 24 Sep 2018 13:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537821997; cv=none; d=google.com; s=arc-20160816; b=yMVlZMwm93WhbPiD4fdLMCIYUT/x5fwlO/qSYHEJIhjGeAIZ/yaM1+rsIwdDIbP08+ P6eFb42+yIF9bnUmyZuB8hzEKRDRwIAGMuDIpjFMHE0FdEdVos6w7cjtoyuSiSshgOlS HEg8Xns7AFB2aW8ILUnM3oIzyfEsZ8PGo8SYNw0nf9KTcfdkTYDLS1fuD/xMMNAV7frM c0By5382Xy2Rbd2fipIyTgP2s6EDC+es8pEv4CAcemnXF0UJnjMvpwKDo5/ESCjbpr1i f8vBFmf+AXgH9rsm1+3Am6VypvhhZzs5xoYVi/nlCqsn0Sl2/QQJrc+jIv5rIEiTFO7H Wp+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Es2GCsBeoh0xgffgDVOhXtfOFaUe/MI/pWXbJZRzYZQ=; b=Kh8Zm/IPMccG49Y3pkgmbaRhvnYHstr8EwCiI+PCqYyW63vmiGb2MPe3oAjyxARXY5 WhLtwZPejTACYT4Sm4/qf/Qpvn9O7GEhfV1zH3OlLr+T02qsa2TrAkFwQDxNR3V/Woj+ q/h4r2RY/HT0gYhcGlTtrS2iKpOGbCVEROORH/7dkc58MZyWQ3JAhhdmovJbSTdthsDX 9wiK57S97CiWzSgFGcI/LXVtnhVpwHl0arO1S8v+MxH49i2bOzdHgJgfP6vjBU6/YIR8 3rNXVQxFNS+jsPfP4Y4lH63Cp0D4AiqGJq5XcSVos5iqJeQY32T/QNb/Ue2rAcZ/16PA ciDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="WiazKc/8"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22-v6si314195pgb.472.2018.09.24.13.46.21; Mon, 24 Sep 2018 13:46:37 -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; dkim=pass header.i=@chromium.org header.s=google header.b="WiazKc/8"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727672AbeIYCuR (ORCPT + 99 others); Mon, 24 Sep 2018 22:50:17 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43107 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbeIYCuR (ORCPT ); Mon, 24 Sep 2018 22:50:17 -0400 Received: by mail-lj1-f195.google.com with SMTP id m84-v6so19519421lje.10 for ; Mon, 24 Sep 2018 13:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Es2GCsBeoh0xgffgDVOhXtfOFaUe/MI/pWXbJZRzYZQ=; b=WiazKc/8llqj6/24IEifkY8EyS47SF0Ib25upzvMmlkdpAeTg5OPgch7wKdEXHkd6e dUTxbfxPCz5TzUymXYMXlCYbQhk6hcmdjhMkZGNZ+CvQoYS5W0CYe+sUqkmlL3g9F520 P6MlCeJ75FZTJauW1qUwAtlAKRfWVXtFNqahI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Es2GCsBeoh0xgffgDVOhXtfOFaUe/MI/pWXbJZRzYZQ=; b=HeWfnRpSWCOh5o+KagczswoUc0Q4vp+8c2q3dhkKdPmhMrr1hLM6Z5+JA1BBfmRFQp b+3665PcJ86HmyRTYBHqH8vnx01AoFKyXQPkHbOHZse7kqsvI/Rd9vZ2zOroFO0+HTAi ttzelUMd7xhzaAXa5rL8yU2Nu3KRJGX2GiFW9PRNJakW7G1yMkRVc54z3r+6dHOeHQSD yeXwA1xoHqN9IfiqQ/AAoMi51J5FLNGwz/sxAZ9U5vN80jYDnY++6lNjuyNPQOgYG4EM iy7NmKB7Vb5TOq8IhM38Cjdj9qlxYVmUgqmv78cWQ6mGfXDesKKu1qQEDYSmVgue4vTc MX4A== X-Gm-Message-State: ABuFfoi0JxYDfro0BjJGSVk9BZVOq2NtoV5tCpyAKvzc/L7C4SDgBq8Y mpplc9+c0X1uiZOu3RtfVcab11QqrMo= X-Received: by 2002:a2e:2ac3:: with SMTP id q186-v6mr331650ljq.123.1537821974603; Mon, 24 Sep 2018 13:46:14 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id f4-v6sm58752lfa.9.2018.09.24.13.46.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 13:46:14 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id x24-v6so17938489lfe.10 for ; Mon, 24 Sep 2018 13:46:14 -0700 (PDT) X-Received: by 2002:a19:2bcb:: with SMTP id r194-v6mr316705lfr.147.1537821566621; Mon, 24 Sep 2018 13:39:26 -0700 (PDT) MIME-Version: 1.0 References: <1537770516-28410-1-git-send-email-sayalil@codeaurora.org> <1537770516-28410-3-git-send-email-sayalil@codeaurora.org> In-Reply-To: <1537770516-28410-3-git-send-email-sayalil@codeaurora.org> From: Evan Green Date: Mon, 24 Sep 2018 13:38:48 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V14 2/2] scsi: ufs: Add configfs support for UFS provisioning To: sayali Cc: subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, Rajendra Nayak , Vinayak Holikatti , jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, asutoshd@codeaurora.org, riteshh@codeaurora.org, stummala@codeaurora.org, adrian.hunter@intel.com, Joel Becker , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 23, 2018 at 11:29 PM 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_SCSI_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//ufs_config_desc_X > > 2) To write configuration descriptor with index X : > echo > /config//ufs_config_desc_X > > Signed-off-by: Sayali Lokhande > --- > Documentation/ABI/testing/configfs-driver-ufs | 12 ++ > drivers/scsi/ufs/Kconfig | 10 ++ > drivers/scsi/ufs/Makefile | 1 + > drivers/scsi/ufs/ufs-configfs.c | 237 ++++++++++++++++++++++++++ > drivers/scsi/ufs/ufshcd.c | 3 +- > drivers/scsi/ufs/ufshcd.h | 18 ++ > 6 files changed, 280 insertions(+), 1 deletion(-) > create mode 100644 Documentation/ABI/testing/configfs-driver-ufs > create mode 100644 drivers/scsi/ufs/ufs-configfs.c > Reviewed-by: Evan Green