Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1841327imm; Thu, 14 Jun 2018 04:53:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIS7gWYH8UaMNdSsiIlExpUQW49P843QXSw45ZwSA6EGExSwwfPjbHWZvwmicYwsGNFKrgj X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr2724804plb.208.1528977236142; Thu, 14 Jun 2018 04:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528977236; cv=none; d=google.com; s=arc-20160816; b=XH/O4XRrvE6pn1sV3BkksTXLc54wimPCXG1pp4Wi+k3h4GY8iMF7zIMaAzzihAd8C8 zHdvG493kUwdNiTFOEAtM9lo3/v9VXA45IJPR9Sp0y5JDpYbYgK/wTuz18N8pvJU57PL FsUgjktFUZMHDMM2QtkP6GAgObgZ/0Uikb7A3YrD/CCk3Lr7XTyJGF+Zo2HPC/XDa9/Z ZQsFhs8JPv2JSfosBwBcdYyZ5bgNhr+Nmt1kQqVTcqNRBnkV65/2Gi4Xs/qUoKa1wnLQ 93SkGSGUSK8eZj3B9Bg/EfBkicE4i3mgpjCsMZK0FcFpWqFTDRXqfQQF8UrrDHIcmkVY LY5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=K/IhS+iptIAeuwF8ZyWdXGguI41JFqg0nrXsAN0sKxU=; b=pJEq8yO9eQpOQHlLr36VDBEz7mCEzhVBP/A3qaf8VFWyV4WZ8jJDbB8wSK0uOmwMi+ FIBm2RMszHhnfO1kA46Zxheqp8sitCN0VcZ3L6Kuk+JH2UBVpl0fKhdIW9mNog2LcJOl GXusOkdWRZgUdlLbXQ6hXll6twFX13bUNNa8Uq+LZ05nHudtR1V3LPaVPZAAvieWDLHx qBmKfuF9i04M33PI3RcgijcltgmgnPu7EbFLXkK/5WiYtdUkvzdf3/TtFhVbySmIoV++ ssmD7B+s8dtzpHClr9HyGuHS3an4a0udVqIVtxaZ+NjybvSS3U2Eqe0mieFWRMSM3ZU8 Xg5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ac499Xns; dkim=pass header.i=@codeaurora.org header.s=default header.b=nJM+JQSk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si4250035pge.373.2018.06.14.04.53.41; Thu, 14 Jun 2018 04:53:56 -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=@codeaurora.org header.s=default header.b=ac499Xns; dkim=pass header.i=@codeaurora.org header.s=default header.b=nJM+JQSk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752767AbeFNLwP (ORCPT + 99 others); Thu, 14 Jun 2018 07:52:15 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45498 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752874AbeFNLwN (ORCPT ); Thu, 14 Jun 2018 07:52:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 61912602FC; Thu, 14 Jun 2018 11:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528977133; bh=JgKhEap6KBmONRqmNTsXAwM/BsCcxAaeXu3ZWrNGZYU=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=ac499XnsAOfiRtBnnrQfubx8D/uo4IwDNB5d6fLQouaL5IE90CKhD91SaAj18Oeyj OarTQ36jEGyn+bF57ulayzZM8okbDzCttXuVQo0spuLgDqb8NbMKzGwGWfm4Zin4OZ 8xFhUQ/hVYk/Cy/ToA8uvCvNmaoFlobz2/vbvNQw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,TVD_RCVD_SINGLE,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from SAYALIL (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: sayalil@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1CF6960116; Thu, 14 Jun 2018 11:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528977127; bh=JgKhEap6KBmONRqmNTsXAwM/BsCcxAaeXu3ZWrNGZYU=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=nJM+JQSkNhm+52CZ7vxkRUWghPO+0j4252lWbGu3g4e6hGykB4AlNdCHVBjkKdcM3 Jt9rWl1igMbW0JmBSSrKeAZmkgo5Qu7rwS7c87Y+AGurdRhuzWY8/JZATDQY+wSu8U tp+YCUEcbCdTtP/GXI1I6S4Zga754tWWeH5FfYxw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1CF6960116 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sayalil@codeaurora.org From: "sayali" To: "'Greg Kroah-Hartman'" Cc: , , , , , , , , , , "'Stanislav Nijnikov'" , "'Adrian Hunter'" , "'open list'" References: <1528455990-24572-1-git-send-email-sayalil@codeaurora.org> <1528455990-24572-4-git-send-email-sayalil@codeaurora.org> <20180609072454.GH24148@kroah.com> In-Reply-To: <20180609072454.GH24148@kroah.com> Subject: RE: [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision Date: Thu, 14 Jun 2018 17:22:01 +0530 Message-ID: <000301d403d6$1ed2e790$5c78b6b0$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQH7CPwp+aWAYn25mLDVi5cVOXIbUwJ6HtT/Ai201PSj7Fr+EA== Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -----Original Message----- From: Greg Kroah-Hartman [mailto:gregkh@linuxfoundation.org] Sent: Saturday, June 09, 2018 12:55 PM To: Sayali Lokhande Cc: 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; linux-scsi@vger.kernel.org; Stanislav Nijnikov ; Adrian Hunter ; open list Subject: Re: [PATCH V2 3/3] scsi: ufs: Add sysfs support for ufs provision On Fri, Jun 08, 2018 at 04:36:30PM +0530, Sayali Lokhande wrote: > Add sysfs support to trigger ufs provisioning at runtime. > Usage : echo > /sys/bus/platform/drivers/*/ > config_descriptor/ufs_provision > To check provisioning status: > cat /sys/bus/platform/drivers/*/config_descriptor/ufs_provision > 1- > Success (Reboot device to check updated provisioning) > > Signed-off-by: Sayali Lokhande > --- > Documentation/ABI/testing/sysfs-driver-ufs | 16 ++++ > drivers/scsi/ufs/ufs-sysfs.c | 25 ++++++ > drivers/scsi/ufs/ufs.h | 2 + > drivers/scsi/ufs/ufshcd.c | 128 +++++++++++++++++++++++++++++ > drivers/scsi/ufs/ufshcd.h | 5 ++ > 5 files changed, 176 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-driver-ufs > b/Documentation/ABI/testing/sysfs-driver-ufs > index 016724e..43419b5 100644 > --- a/Documentation/ABI/testing/sysfs-driver-ufs > +++ b/Documentation/ABI/testing/sysfs-driver-ufs > @@ -883,3 +883,19 @@ Contact: Subhash Jadavani > Description: This entry shows the target state of an UFS UIC link > for the chosen system power management level. > The file is read only. > + > +What: /sys/bus/platform/drivers/ufshcd/*/config_descriptor/ufs_provision > +Date: February 2018 > +Contact: Sayali Lokhande > +Description: This file shows the status of runtime ufs provisioning. > + This can be used to provision ufs device if bConfigDescrLock is 0. > + Configuration buffer needs to be written in space separated format > + specificied as: > + echo > + > + > + > + > + > ufs_provision That's crazy big, please use configfs for this if you really want to "provision" hardware with a new api. That is what configfs was created for, do not abuse sysfs like this, it is not a "single" value. [Sayali] Sure. I will check and update my next patchset accordingly to use configfs for provisioning at runtime. thanks, greg k-h