From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90E34C00140 for ; Fri, 29 Jul 2022 02:05:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233887AbiG2CFY (ORCPT ); Thu, 28 Jul 2022 22:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbiG2CFX (ORCPT ); Thu, 28 Jul 2022 22:05:23 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C84D11176 for ; Thu, 28 Jul 2022 19:05:21 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id w17-20020a17090a8a1100b001f326c73df6so2244962pjn.3 for ; Thu, 28 Jul 2022 19:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VrPTwHjfC5QxsVG3vayD8eV3MqvBjr0U91L8fruvcYg=; b=aJhskqxfHu9Y2ZpoWFbtIeFpB4Imk6JZOVzW4D8S2y6DMUoufx0RE3fq/be6nFU2au wb6GvuodPNYVan8O0B3whcvlFn4/n8AhT2jZkHIEoTkVg7fSan0w+KAxcqCGumWgdZKq Y8yHiqpMBrxaF5Xp6vWy4dcZrEmkbsuJo0bbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VrPTwHjfC5QxsVG3vayD8eV3MqvBjr0U91L8fruvcYg=; b=CP89/l5tbZ/i196L+KlYdyke84eY8EnAGhy8GzxlsIPre3Fd5+u/TX00pmdNcdAjxf W4mKyIZN6/oh3oVNJNWPwP49HidkvTO41bT/rIv63eKUmbPXwlp2HLy7/DZoixFfyEuP SWcO8NJ4xc04ayGPOJALsVHzj31YVVSmklwQIoUi41tApbUyBGCiIFeD5K6w7MaxFV/n BfhENeoBnHMgS9HEfVEVeMDE/F98Sg7lGP8sWT6QrnPRzm7bqEL4Lsg4UrVQytJleEyC 9L9/DZuw4GAgZTCVuL8shgdztu3Ir8d3ssFzSxxaR021nbR4puHK8q81uKyjWm9znSwj AhMg== X-Gm-Message-State: ACgBeo2iegRpaxdVE1joV7YEAuhqifnFA/8UTiQ7RjT9rhnnQTK2uVno RtjMqXM7ZA7iBwfWSQ3wA0+BuA== X-Google-Smtp-Source: AA6agR4yg+hJT2sTUv6xIxgwqftaALBJ1dWWW39BU5Dsu1TjnAGWtGgfMYa2Uq/BoKZakwmgeNMCPw== X-Received: by 2002:a17:90b:3e8a:b0:1f0:4157:daf8 with SMTP id rj10-20020a17090b3e8a00b001f04157daf8mr1583417pjb.222.1659060320809; Thu, 28 Jul 2022 19:05:20 -0700 (PDT) Received: from dlunevwfh.roam.corp.google.com (n122-107-196-14.sbr2.nsw.optusnet.com.au. [122.107.196.14]) by smtp.gmail.com with ESMTPSA id y124-20020a62ce82000000b005258df7615bsm1571901pfg.0.2022.07.28.19.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 19:05:20 -0700 (PDT) From: Daniil Lunev To: Adrian Hunter , Bart Van Assche , Greg Kroah-Hartman Cc: Daniil Lunev , Alim Akhtar , Andy Gross , Avri Altman , Bean Huo , Bjorn Andersson , Can Guo , Daejun Park , Eric Biggers , "James E.J. Bottomley" , Konrad Dybcio , "Martin K. Petersen" , Matthias Brugger , Mauro Carvalho Chehab , Mike Snitzer , Sohaib Mohamed , Stanley Chu , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-scsi@vger.kernel.org Subject: [PATCH v3 0/2] Expose UFSHCD capabilities in sysfs. Date: Fri, 29 Jul 2022 12:05:06 +1000 Message-Id: <20220729020508.4147751-1-dlunev@chromium.org> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The patchset introduces new sysfs nodes, which userspace can check to determine support for certain capabilities. Specifically the patchset exposes Clock Scaling, Write Booster, and Inline Crypto Engine capabilities. Changes in v3: * Expose each capability as an individual node * Add preleminary CL to align checking for capabilities * Modify documentation to represent new scheme Changes in v2: * Add documentation entry for the new sysfs node. Daniil Lunev (2): ufs: add function to check CRYPTO capability ufs: core: print UFSHCD capabilities in controller's sysfs node Documentation/ABI/testing/sysfs-driver-ufs | 39 ++++++++++++++++++++ drivers/ufs/core/ufs-sysfs.c | 41 ++++++++++++++++++++++ drivers/ufs/core/ufshcd-crypto.c | 8 ++--- drivers/ufs/host/ufs-mediatek.c | 2 +- drivers/ufs/host/ufs-qcom-ice.c | 4 +-- drivers/ufs/host/ufshcd-pci.c | 2 +- include/ufs/ufshcd.h | 5 +++ 7 files changed, 93 insertions(+), 8 deletions(-) -- 2.31.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98E23C3F6B0 for ; Fri, 29 Jul 2022 02:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=a3psVKHk+AOPOk22mQdo6WK243GU5q1X6gxR2i//Bi4=; b=ryUwC7QyN1xzY3 ic7yj5M0j83fKUnhSF9d17sKorI8nNloKUWVowX10qpocCeGaniwoR6XPAB7rQevG0k0hOKy4h421 Qiyoe8UluI/sB18YGwNmrT5l1YMz5r+/LH10Q9qgVyn5xVehm+2uNyO0xSyv6D1hoDvE7/zfzt8Es S+3DjhDyIad97KTNcKSOpSY4EEJcE7a0uVstbY2BvCMr8fgxEN3IaoK5nrzYq2YfQWzOroDw1Zcv0 Kna/rm+pGIZYck/GIn1VY1aEL4Zxvh3YGupuDcQOPqn2BygEuSw5EeJknniXM75rt6J6LmRwVVrKV 6JZUSMWfm1UZ4CfZwF2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHFNX-00H00I-34; Fri, 29 Jul 2022 02:05:27 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHFNT-00GzcK-Iq for linux-arm-kernel@lists.infradead.org; Fri, 29 Jul 2022 02:05:24 +0000 Received: by mail-pj1-x1034.google.com with SMTP id 15-20020a17090a098f00b001f305b453feso7027432pjo.1 for ; Thu, 28 Jul 2022 19:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VrPTwHjfC5QxsVG3vayD8eV3MqvBjr0U91L8fruvcYg=; b=aJhskqxfHu9Y2ZpoWFbtIeFpB4Imk6JZOVzW4D8S2y6DMUoufx0RE3fq/be6nFU2au wb6GvuodPNYVan8O0B3whcvlFn4/n8AhT2jZkHIEoTkVg7fSan0w+KAxcqCGumWgdZKq Y8yHiqpMBrxaF5Xp6vWy4dcZrEmkbsuJo0bbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VrPTwHjfC5QxsVG3vayD8eV3MqvBjr0U91L8fruvcYg=; b=XU/cwmp0uFatka9blw3panxJ/1ocU0chvhjI5y+ADSjfZdtX8Wsu0d2dykyRupjls0 4qVVrSgUi90qz8SgBQ8yzNWJDv8dto83i4BrmDGjBeDn29n/7dkBvVZ3H0cS5sr7dtRJ nUKPpkiUonGbhLEcsV9abQMojurDbG8heSG7SvoDK38dz1fmhXKETDAUAVDCJTsKwjqb 1SZr4jfC8x3/PvB70h+FDSWv/jpY8TBzAJ2H7fFGsNDHgOP/DpPf24HA+HtWgGgIf5Ar JZg4Nu/K7zR54uW69UX2cVeRKmefdW5CBQ58z0oYkCn2XHYT/R4J2ZNDSpUbRozqqh/Y j1Hg== X-Gm-Message-State: ACgBeo0qKEncgwAD9Xuw2OFq8XT22bLX4x2CWMf7ecz8r9e8h+3ty+jt XzoM9B2rcPFw6WiWpRq9B05uUA== X-Google-Smtp-Source: AA6agR4yg+hJT2sTUv6xIxgwqftaALBJ1dWWW39BU5Dsu1TjnAGWtGgfMYa2Uq/BoKZakwmgeNMCPw== X-Received: by 2002:a17:90b:3e8a:b0:1f0:4157:daf8 with SMTP id rj10-20020a17090b3e8a00b001f04157daf8mr1583417pjb.222.1659060320809; Thu, 28 Jul 2022 19:05:20 -0700 (PDT) Received: from dlunevwfh.roam.corp.google.com (n122-107-196-14.sbr2.nsw.optusnet.com.au. [122.107.196.14]) by smtp.gmail.com with ESMTPSA id y124-20020a62ce82000000b005258df7615bsm1571901pfg.0.2022.07.28.19.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 19:05:20 -0700 (PDT) From: Daniil Lunev To: Adrian Hunter , Bart Van Assche , Greg Kroah-Hartman Cc: Daniil Lunev , Alim Akhtar , Andy Gross , Avri Altman , Bean Huo , Bjorn Andersson , Can Guo , Daejun Park , Eric Biggers , "James E.J. Bottomley" , Konrad Dybcio , "Martin K. Petersen" , Matthias Brugger , Mauro Carvalho Chehab , Mike Snitzer , Sohaib Mohamed , Stanley Chu , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-scsi@vger.kernel.org Subject: [PATCH v3 0/2] Expose UFSHCD capabilities in sysfs. Date: Fri, 29 Jul 2022 12:05:06 +1000 Message-Id: <20220729020508.4147751-1-dlunev@chromium.org> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220728_190523_669788_3A626BCD X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The patchset introduces new sysfs nodes, which userspace can check to determine support for certain capabilities. Specifically the patchset exposes Clock Scaling, Write Booster, and Inline Crypto Engine capabilities. Changes in v3: * Expose each capability as an individual node * Add preleminary CL to align checking for capabilities * Modify documentation to represent new scheme Changes in v2: * Add documentation entry for the new sysfs node. Daniil Lunev (2): ufs: add function to check CRYPTO capability ufs: core: print UFSHCD capabilities in controller's sysfs node Documentation/ABI/testing/sysfs-driver-ufs | 39 ++++++++++++++++++++ drivers/ufs/core/ufs-sysfs.c | 41 ++++++++++++++++++++++ drivers/ufs/core/ufshcd-crypto.c | 8 ++--- drivers/ufs/host/ufs-mediatek.c | 2 +- drivers/ufs/host/ufs-qcom-ice.c | 4 +-- drivers/ufs/host/ufshcd-pci.c | 2 +- include/ufs/ufshcd.h | 5 +++ 7 files changed, 93 insertions(+), 8 deletions(-) -- 2.31.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel