[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ceae5479c5146e09a945a89da7d99b10@walle.cc>
Date: Thu, 29 Apr 2021 23:54:08 +0200
From: Michael Walle <michael@...le.cc>
To: Alexander Williams <awill@...gle.com>
Cc: linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org,
Tudor Ambarus <tudor.ambarus@...rochip.com>,
Pratyush Yadav <p.yadav@...com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Yicong Yang <yangyicong@...ilicon.com>,
Heiko Thiery <heiko.thiery@...il.com>
Subject: Re: [PATCH v3 2/2] mtd: spi-nor: add initial sysfs support
Am 2021-04-29 23:34, schrieb Alexander Williams:
> On Thu, Apr 29, 2021 at 8:57 AM Michael Walle <michael@...le.cc> 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 <michael@...le.cc>
>> ---
>> 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
Powered by blists - more mailing lists