Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1793679pxy; Thu, 29 Apr 2021 14:58:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuUWruDomLxQaEFcMHbvTAcF77LgbA2eAV5jRk3LN8/Sgb4RjSzQoYdpUXeOFBG5+TEUY1 X-Received: by 2002:a17:906:32ce:: with SMTP id k14mr669887ejk.27.1619733512633; Thu, 29 Apr 2021 14:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619733512; cv=none; d=google.com; s=arc-20160816; b=XBtvaEy5JIIK51gAWnQ3+djFVBejLz+uP3JkFv0jpCb236fvz9e1kO8I3GfuZp8Waz HSr+x0BjrCqS/+g2aUc3V1NMTicgWUHD7acFh0egEif38f4OUZ404RSn6cs8iprWOia4 l4Kr66Nmg5oWSzgsaFOeL6Lmkf6EERq97S5FpU2O52adbzV2mgxaxOHuDbGGQMyqN+jp CSgxDcgo0upZad/5ThKzc46I8qmgRF2x0MEFLOcvCfumXbbRC21JfR1/lN34fLdWMYfP O+R7aTKJPInwnpK+7RUPlpTXTgPq5SG09qvhFtA6V/Md8UZsc6wdDOsb9A/ScZGXkHsf sO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=oXpSnLEeC6oBxENRxivNH8jCYJ0/yDWPA3cKpHsHYfg=; b=LgfL/ZuL9qIeVeBA2el1UPu4L/pL65xI00quzi/2CJSdwvCeS6/gi/5GS7OA4U7ZG6 2LZtBo2knV1RZ1Q7mP8KuTcmYqkrD7uwRJ68bFUwqe9bEOUYlebCdSHIBilZg930nEvz EqR1WACOXmFJbXqJQpjA0F69nwWqm+/1F0FiUFIMsuy2wnUAMBBzq60PUp+Q2bLe3htG BX2R7gHQQzdyYxhBgKszSd+tLm8UsgBBC3blDZyBshTSpgyaPD7BUeToej5V71Ly8ISP SZLH1ksDpn+5xX18i1VVMjzX8GbvRG9CyFgdkylVjEVKEJyVvbw8BQZsZh0481gu8UZk vdqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="EmJMl/fs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si1135115ejd.707.2021.04.29.14.58.06; Thu, 29 Apr 2021 14:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="EmJMl/fs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232473AbhD2Vy7 (ORCPT + 99 others); Thu, 29 Apr 2021 17:54:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231638AbhD2Vy6 (ORCPT ); Thu, 29 Apr 2021 17:54:58 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E4AFC06138B for ; Thu, 29 Apr 2021 14:54:11 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 0095422239; Thu, 29 Apr 2021 23:54:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1619733249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oXpSnLEeC6oBxENRxivNH8jCYJ0/yDWPA3cKpHsHYfg=; b=EmJMl/fsFTxs///d3O5Gi3qqqp/AHduNDC7pyIXWbA58TDTERUMHTnkAZm0/Yjx0Uxxsx/ UMJTjhYdIqhTEfADtYye0AI7fvEXeZnqJwGWzWcsApaR0KfjUv+m9UiIt389RbPPeHfyXg DQ04jGPd9dMfewO7FgWvLPuenoz3RTY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 29 Apr 2021 23:54:08 +0200 From: Michael Walle To: Alexander Williams Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Yicong Yang , Heiko Thiery Subject: Re: [PATCH v3 2/2] mtd: spi-nor: add initial sysfs support In-Reply-To: References: <20210429155713.28808-1-michael@walle.cc> <20210429155713.28808-3-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-04-29 23:34, schrieb Alexander Williams: > On Thu, Apr 29, 2021 at 8:57 AM Michael Walle wrote: >> >> Add support to show the manufacturer, the partname and JEDEC >> identifier >> as well as to dump the SFDP table. Not all flashes list their SFDP >> table >> contents in their datasheet. So having that is useful. It might also >> be >> helpful in bug reports from users. >> >> Signed-off-by: Michael Walle >> --- >> Pratyush, Heiko, I've dropped your Acked and Tested-by because there >> were some changes. >> >> .../ABI/testing/sysfs-bus-spi-devices-spi-nor | 31 +++++++ >> drivers/mtd/spi-nor/Makefile | 2 +- >> drivers/mtd/spi-nor/core.c | 1 + >> drivers/mtd/spi-nor/core.h | 2 + >> drivers/mtd/spi-nor/sysfs.c | 92 >> +++++++++++++++++++ >> 5 files changed, 127 insertions(+), 1 deletion(-) >> create mode 100644 >> Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor >> create mode 100644 drivers/mtd/spi-nor/sysfs.c >> >> diff --git a/Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor >> b/Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor >> new file mode 100644 >> index 000000000000..4c88307759e2 >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor >> @@ -0,0 +1,31 @@ >> +What: /sys/bus/spi/devices/.../jedec_id > > Since mtd/spi-nor doesn't own this device (belongs to the spi > subsystem), should > we put its attributes under a named subdirectory? Perhaps something > like > /sys/bus/spi/devices/.../spi_nor/jedec_id ? > > I'm just thinking about avoiding any potential for namespace clashes. Good idea! Will change that in the next version. -michael