<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in sysfs-nvmem-cells</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>e20f378d - nvmem: include bit index in cell sysfs file name</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/sysfs-nvmem-cells#e20f378d</link>
        <description>nvmem: include bit index in cell sysfs file nameCreating sysfs files for all Cells caused a boot failure for linux-6.8-rc1 onApple M1, which (in downstream dts files) has multiple nvmem cells that use thesame byte address. This causes the device probe to fail with[    0.605336] sysfs: cannot create duplicate filename &apos;/devices/platform/soc@200000000/2922bc000.efuse/apple_efuses_nvmem0/cells/efuse@a10&apos;[    0.605347] CPU: 7 PID: 1 Comm: swapper/0 Tainted: G S                 6.8.0-rc1-arnd-5+ #133[    0.605355] Hardware name: Apple Mac Studio (M1 Ultra, 2022) (DT)[    0.605362] Call trace:[    0.605365]  show_stack+0x18/0x2c[    0.605374]  dump_stack_lvl+0x60/0x80[    0.605383]  dump_stack+0x18/0x24[    0.605388]  sysfs_warn_dup+0x64/0x80[    0.605395]  sysfs_add_bin_file_mode_ns+0xb0/0xd4[    0.605402]  internal_create_group+0x268/0x404[    0.605409]  sysfs_create_groups+0x38/0x94[    0.605415]  devm_device_add_groups+0x50/0x94[    0.605572]  nvmem_populate_sysfs_cells+0x180/0x1b0[    0.605682]  nvmem_register+0x38c/0x470[    0.605789]  devm_nvmem_register+0x1c/0x6c[    0.605895]  apple_efuses_probe+0xe4/0x120[    0.606000]  platform_probe+0xa8/0xd0As far as I can tell, this is a problem for any device with multiple cells ondifferent bits of the same address. Avoid the issue by changing the file nameto include the first bit number.Fixes: 0331c611949f (&quot;nvmem: core: Expose cells through sysfs&quot;)Link: https://github.com/AsahiLinux/linux/blob/bd0a1a7d4/arch/arm64/boot/dts/apple/t600x-dieX.dtsi#L156Cc:  &lt;regressions@lists.linux.dev&gt;Cc: Miquel Raynal &lt;miquel.raynal@bootlin.com&gt;Cc: Rafa&#322; Mi&#322;ecki &lt;rafal@milecki.pl&gt;Cc: Chen-Yu Tsai &lt;wenst@chromium.org&gt;Cc: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;Cc:  &lt;asahi@lists.linux.dev&gt;Cc: Sven Peter &lt;sven@svenpeter.dev&gt;Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;Signed-off-by: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;Reviewed-by: Eric Curtin &lt;ecurtin@redhat.com&gt;Reviewed-by: Miquel Raynal &lt;miquel.raynal@bootlin.com&gt;Link: https://lore.kernel.org/r/20240209163454.98051-1-srinivas.kandagatla@linaro.orgSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/sysfs-nvmem-cells</description>
        <pubDate>Fri, 09 Feb 2024 16:34:54 +0000</pubDate>
        <dc:creator>Arnd Bergmann &lt;arnd@arndb.de&gt;</dc:creator>
    </item>
<item>
        <title>192048e5 - ABI: sysfs-nvmem-cells: Expose cells through sysfs</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/sysfs-nvmem-cells#192048e5</link>
        <description>ABI: sysfs-nvmem-cells: Expose cells through sysfsThe binary content of nvmem devices is available to the user so in theeasiest cases, finding the content of a cell is rather easy as it isjust a matter of looking at a known and fixed offset. However, nvmemlayouts have been recently introduced to cope with more advancedsituations, where the offset and size of the cells is not known inadvance or is dynamic. When using layouts, more advanced parsers areused by the kernel in order to give direct access to the content of eachcell regardless of their position/size in the underlying device, butthese information were not accessible to the user.By exposing the nvmem cells to the user through a dedicated cell/ foldercontaining one file per cell, we provide a straightforward access touseful user information without the need for re-writing a userlandparser. Content of nvmem cells is usually: product names, manufacturingdate, MAC addresses, etc,Signed-off-by: Miquel Raynal &lt;miquel.raynal@bootlin.com&gt;Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;Signed-off-by: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;Link: https://lore.kernel.org/r/20231215111536.316972-8-srinivas.kandagatla@linaro.orgSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/sysfs-nvmem-cells</description>
        <pubDate>Fri, 15 Dec 2023 11:15:33 +0000</pubDate>
        <dc:creator>Miquel Raynal &lt;miquel.raynal@bootlin.com&gt;</dc:creator>
    </item>
</channel>
</rss>
