Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1744018imm; Sat, 9 Jun 2018 00:25:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKcvqQA2MdVD5PiJ8oHOaCx5d8B3rHjdh1TX6lY7L/dZPbSNcgBHso0RcTApHCDP+PaEZF1 X-Received: by 2002:a17:902:a989:: with SMTP id bh9-v6mr9963042plb.245.1528529159232; Sat, 09 Jun 2018 00:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528529159; cv=none; d=google.com; s=arc-20160816; b=kLNY54+cIZz3vjL1fOxrd3uSrEgSVuGJVcfMKlOW02u9Bz860ZEv3V+m60nVclBa9w apiRlWTDiXczI2NgF2wB9n7KwdvKfx5np6Ix4BdocttdEhOrlM7U1YCeZRsKWxgZVktV g/EF9SpM1WgGVNyhhSTYq3xsNUNMyPgUzAkrZN4bjLJ/X3g48DvUnX6/wwuFiMKK9Nqv BD+NSlZwfLb+VFWY9boGWVd/yy+tjeGcacmao+x/yBRPW0Z2bDNQks9wk7maSxqudFZe +XeOKs2ONHBtvs+67jXRbTtEbXmJYFPekvDytkruQQA9hMJ9KYm5zq3wQGgELAvBCjlm Y9ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=eXhm1wsOKzyDHCS8sjFdvdEMsF+8tQdVsbE7Qgey8VQ=; b=Q0rz5wURSrPP5M/xEIT5SzPcjx0wnSHx3hv1Ek8z+OluaFp38cMg+ijbshyayjcp+T vREtjIbZrtkiuiputaOGDYhDbuw5aq5pbnRo5c5AIeQf7ZRVgb0db+xlVPlNKtrSDQJX ejFDRuYUWb73TiGrxbFwVDN1Wq+wiYlctzFb0HNiRkXnoeQPVBRty5uW1C8OO/KFPB5H F8ytPecXlwmv+wliaZuKoguYMtgJShgohQqIR9ViLAwbtCggISfldI445ln3bJLvGS3+ yzvdM0IyUk1dmBtPQbgdL9lfm+6LDdZQroSMdSp9rkD7G9LfLK1NZCeVs6tLzv/bbWr7 pHXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bEhW9p3/; 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 x13-v6si16784387pfn.286.2018.06.09.00.25.44; Sat, 09 Jun 2018 00:25:59 -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=@kernel.org header.s=default header.b=bEhW9p3/; 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 S1753190AbeFIHZT (ORCPT + 99 others); Sat, 9 Jun 2018 03:25:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:54016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbeFIHZS (ORCPT ); Sat, 9 Jun 2018 03:25:18 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F204920874; Sat, 9 Jun 2018 07:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528529117; bh=RM2GeqTmwB0WxH+d4JM/Ta868YyVueCAL/9fmKplqwI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bEhW9p3/OFjeBrF1xwN2PRzmprMYaWfUsOdpuyPv7Le+2yIK2YG2uHsMK3LMd5ioS jPp7rOyp2k+GDBuhfAnseyUi0Eb75S2pCf7z3oX60wxzcVOG4OWoQZIjiFAcyTt1vz SMpNPivASkQcY4ZVw/RbG0WLjZRYesvV6hFbj4ZQ= Date: Sat, 9 Jun 2018 09:24:54 +0200 From: Greg Kroah-Hartman 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 Message-ID: <20180609072454.GH24148@kroah.com> References: <1528455990-24572-1-git-send-email-sayalil@codeaurora.org> <1528455990-24572-4-git-send-email-sayalil@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528455990-24572-4-git-send-email-sayalil@codeaurora.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, greg k-h