Message ID | 20230411135035.106725-1-iivanov@suse.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2598900vqo; Tue, 11 Apr 2023 07:03:30 -0700 (PDT) X-Google-Smtp-Source: AKy350YrZ40rlVmt6wDugCl4frD9yZTWRMFmQfAIuBahM40MsPunUTERcvS/DMC+R6rAdsiJir2s X-Received: by 2002:a17:906:784:b0:949:c05d:73b6 with SMTP id l4-20020a170906078400b00949c05d73b6mr10088458ejc.17.1681221810368; Tue, 11 Apr 2023 07:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221810; cv=none; d=google.com; s=arc-20160816; b=HkEV83SLAGEAdAdp38e1D0kOLZchQiyBvHePk9UOUYENXdXQC7FLHAaJYn0qYnQ0Bm frXKdXGcjHhTqGLEt3S2xtLVu82pb17PQToGVTxZGivDmvu0F3YbNsB8rK3PKdY0lDZy DXGy0KT6V62wOhLq1s2gpuU52evuCM+MQtSB2bGt0q94ukRKHS3E7g7pcz/seSs46ls5 0Y1fTrQ2mWSz+qKa0Z73JpjnyT94OQUbG2Cybjsdl8tEE9NyTPb1jim7ZfpqfbcsyKhu +cFukw0U1yGwxgQAaBWkQMV3CUhDuzMS4OvJZyR0lg1rBBXqFeCQNUkGB7Bi++AS8F97 qF5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=NvWVP5e+XAqpbnwMFQk6xu3LjJ/hip0XrESPfy8zT58=; b=hbapEjcF/Vhz78LtrRjUHJp2mPGeRO/9wF4afr/wv23Ji99XZGMJUg4WKiTzOEJBZI g0t2G34GK/rCoPzYO2SgyhjG2jCN9OmNRlKybsxQF07gHpkUHTDyAmqm7YhyuToLF4by 1pTdSaCbpRvp1kgOSsr1b6ZwFB8gKvft1wY1puaiQNfr2a5taOenBfiohWtuh3R2twbg QkzUoe/iRiMh/mNIBW6JS8rukXS40/zglyP8vws+9b7Fqvn7D1OErPjufRWyuDPfPJMk Iu6w2BWAgIlCC9YED7h6NdqF9PiogV5WUOdOr850YVYWOiZzqVMddzPPYml22phomh2v fY0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=SZ+TeXNJ; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ov2-20020a170906fc0200b0094cb040cd6dsi191470ejb.226.2023.04.11.07.03.01; Tue, 11 Apr 2023 07:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=SZ+TeXNJ; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbjDKNvC (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Tue, 11 Apr 2023 09:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjDKNuz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Apr 2023 09:50:55 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1D37525B for <linux-kernel@vger.kernel.org>; Tue, 11 Apr 2023 06:50:43 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 71A2A21A24; Tue, 11 Apr 2023 13:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681221042; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NvWVP5e+XAqpbnwMFQk6xu3LjJ/hip0XrESPfy8zT58=; b=SZ+TeXNJfIO6OCuNqDZxmia5RGd5ZE0qlBwJWTgtdskS7Q0BXVsQu558yBQVWmtj7ectnI 5aNrRu1MGPcYRTHYxLxqJD73fu1LfbxNOTUOR6ZFH3kcJZsYueWoGQslWKydfy8xsGbjjx ybDdeJuwkY1VNrUiD2YbIGyvzSBRcW8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681221042; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NvWVP5e+XAqpbnwMFQk6xu3LjJ/hip0XrESPfy8zT58=; b=SRYEM8WpLIJBsO8UIOTYSIYYr8pk89zuOQ2bqPXiN3F92GW6KZ+vFbVWEvlkLKkRjgRJJB waKxXjScLnWrZzAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5DF9B13519; Tue, 11 Apr 2023 13:50:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wM07FrJlNWTyQwAAMHmgww (envelope-from <iivanov@suse.de>); Tue, 11 Apr 2023 13:50:42 +0000 From: "Ivan T. Ivanov" <iivanov@suse.de> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Cc: Nicolas Saenz Julienne <nsaenz@kernel.org>, Florian Fainelli <f.fainelli@gmail.com>, Stefan Wahren <stefan.wahren@i2se.com>, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Ivan T. Ivanov" <iivanov@suse.de> Subject: [PATCH] nvmem: rmem: Make reserved region name unique Date: Tue, 11 Apr 2023 16:50:35 +0300 Message-Id: <20230411135035.106725-1-iivanov@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762888841229758748?= X-GMAIL-MSGID: =?utf-8?q?1762888841229758748?= |
Series |
nvmem: rmem: Make reserved region name unique
|
|
Commit Message
Ivan T. Ivanov
April 11, 2023, 1:50 p.m. UTC
They could be multiple reserved memory regions,
so let's make their names unique.
This fixes following kernel error:
[ 9.831285] sysfs: cannot create duplicate filename '/bus/nvmem/devices/rmem0'
[ 9.831304] CPU: 3 PID: 467 Comm: (udev-worker) Not tainted 6.2.9-1-default #1 openSUSE Tumbleweed a4aeb3a90c0f23041a8a7944b12739b07585f009
[ 9.831326] Hardware name: raspberrypi rpi/rpi, BIOS 2023.01 01/01/2023
[ 9.831335] Call trace:
[ 9.831343] dump_backtrace+0xe4/0x140
[ 9.831366] show_stack+0x20/0x30
[ 9.831379] dump_stack_lvl+0x64/0x80
[ 9.831398] dump_stack+0x18/0x34
[ 9.831410] sysfs_warn_dup+0x6c/0x90
[ 9.831424] sysfs_do_create_link_sd+0xf8/0x100
[ 9.831437] sysfs_create_link+0x28/0x50
[ 9.831449] bus_add_device+0x70/0x190
[ 9.831468] device_add+0x3e8/0x84c
[ 9.831481] nvmem_register+0x85c/0x9f0
[ 9.831500] devm_nvmem_register+0x24/0x70
[ 9.831517] rmem_probe+0xa0/0xf4 [nvmem_rmem 649243b01e5e28ee94e4dd53bd13b6ececa836f8]
[ 9.831555] platform_probe+0x70/0xd0
[ 9.831566] really_probe+0xc8/0x3e4
[ 9.831582] __driver_probe_device+0x84/0x190
[ 9.831598] driver_probe_device+0x44/0x11c
[ 9.831613] __driver_attach+0xf8/0x200
[ 9.831629] bus_for_each_dev+0x78/0xd0
[ 9.831643] driver_attach+0x2c/0x40
[ 9.831657] bus_add_driver+0x188/0x250
[ 9.831672] driver_register+0x80/0x13c
[ 9.831688] __platform_driver_register+0x30/0x40
[ 9.831699] rmem_driver_init+0x28/0x1000 [nvmem_rmem 649243b01e5e28ee94e4dd53bd13b6ececa836f8]
[ 9.831727] do_one_initcall+0x48/0x2bc
[ 9.831740] do_init_module+0x50/0x1f0
[ 9.831753] load_module+0x1e54/0x2250
[ 9.831763] __do_sys_init_module+0x2ac/0x2f0
[ 9.831774] __arm64_sys_init_module+0x24/0x30
[ 9.831785] invoke_syscall+0x78/0x100
[ 9.831803] el0_svc_common.constprop.0+0x15c/0x180
[ 9.831820] do_el0_svc+0x40/0xb0
[ 9.831836] el0_svc+0x34/0x134
[ 9.831850] el0t_64_sync_handler+0x114/0x120
[ 9.831865] el0t_64_sync+0x1a4/0x1a8
[ 9.831956] rmem: probe of 3ef62ce0.nvram failed with error -17
Some background information about the issue could be found here:
https://bugzilla.suse.com/show_bug.cgi?id=1206846
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
---
drivers/nvmem/rmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Ivan, Am 11.04.23 um 15:50 schrieb Ivan T. Ivanov: > They could be multiple reserved memory regions, > so let's make their names unique. > > This fixes following kernel error: > > [ 9.831285] sysfs: cannot create duplicate filename '/bus/nvmem/devices/rmem0' could you please provide more background information: - are two instances of rmem trying to create this file? - which exact platform is affect (Raspberry Pi 4), because the Hardware name from the trace is useless? - could you provide some reliable scenario/config to reproduce this issue? > [ 9.831304] CPU: 3 PID: 467 Comm: (udev-worker) Not tainted 6.2.9-1-default #1 openSUSE Tumbleweed a4aeb3a90c0f23041a8a7944b12739b07585f009 > [ 9.831326] Hardware name: raspberrypi rpi/rpi, BIOS 2023.01 01/01/2023 > [ 9.831335] Call trace: > [ 9.831343] dump_backtrace+0xe4/0x140 > [ 9.831366] show_stack+0x20/0x30 > [ 9.831379] dump_stack_lvl+0x64/0x80 > [ 9.831398] dump_stack+0x18/0x34 > [ 9.831410] sysfs_warn_dup+0x6c/0x90 > [ 9.831424] sysfs_do_create_link_sd+0xf8/0x100 > [ 9.831437] sysfs_create_link+0x28/0x50 > [ 9.831449] bus_add_device+0x70/0x190 > [ 9.831468] device_add+0x3e8/0x84c > [ 9.831481] nvmem_register+0x85c/0x9f0 > [ 9.831500] devm_nvmem_register+0x24/0x70 > [ 9.831517] rmem_probe+0xa0/0xf4 [nvmem_rmem 649243b01e5e28ee94e4dd53bd13b6ececa836f8] > [ 9.831555] platform_probe+0x70/0xd0 > [ 9.831566] really_probe+0xc8/0x3e4 > [ 9.831582] __driver_probe_device+0x84/0x190 > [ 9.831598] driver_probe_device+0x44/0x11c > [ 9.831613] __driver_attach+0xf8/0x200 > [ 9.831629] bus_for_each_dev+0x78/0xd0 > [ 9.831643] driver_attach+0x2c/0x40 > [ 9.831657] bus_add_driver+0x188/0x250 > [ 9.831672] driver_register+0x80/0x13c > [ 9.831688] __platform_driver_register+0x30/0x40 > [ 9.831699] rmem_driver_init+0x28/0x1000 [nvmem_rmem 649243b01e5e28ee94e4dd53bd13b6ececa836f8] > [ 9.831727] do_one_initcall+0x48/0x2bc > [ 9.831740] do_init_module+0x50/0x1f0 > [ 9.831753] load_module+0x1e54/0x2250 > [ 9.831763] __do_sys_init_module+0x2ac/0x2f0 > [ 9.831774] __arm64_sys_init_module+0x24/0x30 > [ 9.831785] invoke_syscall+0x78/0x100 > [ 9.831803] el0_svc_common.constprop.0+0x15c/0x180 > [ 9.831820] do_el0_svc+0x40/0xb0 > [ 9.831836] el0_svc+0x34/0x134 > [ 9.831850] el0t_64_sync_handler+0x114/0x120 > [ 9.831865] el0t_64_sync+0x1a4/0x1a8 > [ 9.831956] rmem: probe of 3ef62ce0.nvram failed with error -17 > > Some background information about the issue could be found here: > https://bugzilla.suse.com/show_bug.cgi?id=1206846 > > Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> > --- > drivers/nvmem/rmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nvmem/rmem.c b/drivers/nvmem/rmem.c > index 80cb187f1481..77c70a47d519 100644 > --- a/drivers/nvmem/rmem.c > +++ b/drivers/nvmem/rmem.c > @@ -70,7 +70,7 @@ static int rmem_probe(struct platform_device *pdev) > > config.dev = dev; > config.priv = priv; > - config.name = "rmem"; > + config.name = dev_name(dev); AFAIR changing userspace isn't great because application could rely on the filename prefix. What is the result after applying this patch: ls bus/nvmem/devices/rmem* > config.size = mem->size; > config.reg_read = rmem_read; >
On 11/04/2023 14:50, Ivan T. Ivanov wrote: > They could be multiple reserved memory regions, > so let's make their names unique. > > This fixes following kernel error: > > [ 9.831285] sysfs: cannot create duplicate filename '/bus/nvmem/devices/rmem0' Have you considered using NVMEM_DEVID_AUTO? --srini > [ 9.831304] CPU: 3 PID: 467 Comm: (udev-worker) Not tainted 6.2.9-1-default #1 openSUSE Tumbleweed a4aeb3a90c0f23041a8a7944b12739b07585f009 > [ 9.831326] Hardware name: raspberrypi rpi/rpi, BIOS 2023.01 01/01/2023 > [ 9.831335] Call trace: > [ 9.831343] dump_backtrace+0xe4/0x140 > [ 9.831366] show_stack+0x20/0x30 > [ 9.831379] dump_stack_lvl+0x64/0x80 > [ 9.831398] dump_stack+0x18/0x34 > [ 9.831410] sysfs_warn_dup+0x6c/0x90 > [ 9.831424] sysfs_do_create_link_sd+0xf8/0x100 > [ 9.831437] sysfs_create_link+0x28/0x50 > [ 9.831449] bus_add_device+0x70/0x190 > [ 9.831468] device_add+0x3e8/0x84c > [ 9.831481] nvmem_register+0x85c/0x9f0 > [ 9.831500] devm_nvmem_register+0x24/0x70 > [ 9.831517] rmem_probe+0xa0/0xf4 [nvmem_rmem 649243b01e5e28ee94e4dd53bd13b6ececa836f8] > [ 9.831555] platform_probe+0x70/0xd0 > [ 9.831566] really_probe+0xc8/0x3e4 > [ 9.831582] __driver_probe_device+0x84/0x190 > [ 9.831598] driver_probe_device+0x44/0x11c > [ 9.831613] __driver_attach+0xf8/0x200 > [ 9.831629] bus_for_each_dev+0x78/0xd0 > [ 9.831643] driver_attach+0x2c/0x40 > [ 9.831657] bus_add_driver+0x188/0x250 > [ 9.831672] driver_register+0x80/0x13c > [ 9.831688] __platform_driver_register+0x30/0x40 > [ 9.831699] rmem_driver_init+0x28/0x1000 [nvmem_rmem 649243b01e5e28ee94e4dd53bd13b6ececa836f8] > [ 9.831727] do_one_initcall+0x48/0x2bc > [ 9.831740] do_init_module+0x50/0x1f0 > [ 9.831753] load_module+0x1e54/0x2250 > [ 9.831763] __do_sys_init_module+0x2ac/0x2f0 > [ 9.831774] __arm64_sys_init_module+0x24/0x30 > [ 9.831785] invoke_syscall+0x78/0x100 > [ 9.831803] el0_svc_common.constprop.0+0x15c/0x180 > [ 9.831820] do_el0_svc+0x40/0xb0 > [ 9.831836] el0_svc+0x34/0x134 > [ 9.831850] el0t_64_sync_handler+0x114/0x120 > [ 9.831865] el0t_64_sync+0x1a4/0x1a8 > [ 9.831956] rmem: probe of 3ef62ce0.nvram failed with error -17 > > Some background information about the issue could be found here: > https://bugzilla.suse.com/show_bug.cgi?id=1206846 > > Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> > --- > drivers/nvmem/rmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nvmem/rmem.c b/drivers/nvmem/rmem.c > index 80cb187f1481..77c70a47d519 100644 > --- a/drivers/nvmem/rmem.c > +++ b/drivers/nvmem/rmem.c > @@ -70,7 +70,7 @@ static int rmem_probe(struct platform_device *pdev) > > config.dev = dev; > config.priv = priv; > - config.name = "rmem"; > + config.name = dev_name(dev); > config.size = mem->size; > config.reg_read = rmem_read; >
Hi Srini, On 04-11 17:56, Srinivas Kandagatla wrote: > > On 11/04/2023 14:50, Ivan T. Ivanov wrote: > > They could be multiple reserved memory regions, > > so let's make their names unique. > > > > This fixes following kernel error: > > > > [ 9.831285] sysfs: cannot create duplicate filename '/bus/nvmem/devices/rmem0' > > Have you considered using NVMEM_DEVID_AUTO? Thanks, I missed this one. I will rework it and resend. Regards, Ivan
Hi Stefan, On 04-11 18:53, Stefan Wahren wrote: > > Am 11.04.23 um 15:50 schrieb Ivan T. Ivanov: > > They could be multiple reserved memory regions, > > so let's make their names unique. > > > > This fixes following kernel error: > > > > [ 9.831285] sysfs: cannot create duplicate filename '/bus/nvmem/devices/rmem0' > > could you please provide more background information: > > - are two instances of rmem trying to create this file? > - which exact platform is affect (Raspberry Pi 4), because the Hardware name > from the trace is useless? > - could you provide some reliable scenario/config to reproduce this issue? I was sure your will be asking. :-) I am using RPi4[0] for testing this. Device tree is based on sources from here [1]. From this devicetree it is obvious what is happening. Unfortunately right now SUSE Bugzilla is under maintenance, so perhaps you can't see the bug report [2]. In brief I am using latest Tumbleweed on this device and you can imagine that error is happening always. Regards, Ivan [0] Raspberry Pi 4 Model B Rev 1.1 [1] https://github.com/raspberrypi/linux/blob/rpi-6.2.y/arch/arm/boot/dts/bcm2711-rpi.dtsi#L57 [2] https://bugzilla.suse.com/show_bug.cgi?id=1206846
Am 12.04.23 um 09:26 schrieb Ivan T. Ivanov: > Hi Stefan, > > On 04-11 18:53, Stefan Wahren wrote: >> >> Am 11.04.23 um 15:50 schrieb Ivan T. Ivanov: >>> They could be multiple reserved memory regions, >>> so let's make their names unique. >>> >>> This fixes following kernel error: >>> >>> [ 9.831285] sysfs: cannot create duplicate filename '/bus/nvmem/devices/rmem0' >> >> could you please provide more background information: >> >> - are two instances of rmem trying to create this file? >> - which exact platform is affect (Raspberry Pi 4), because the Hardware name >> from the trace is useless? >> - could you provide some reliable scenario/config to reproduce this issue? > > I was sure your will be asking. :-) > > I am using RPi4[0] for testing this. Device tree is based on sources > from here [1]. From this devicetree it is obvious what is happening. Thanks for clarifying. Unfortunately this file is not identical to the mainline file, so the issue can only be triggered with the vendor DTB? > > Unfortunately right now SUSE Bugzilla is under maintenance, so perhaps you > can't see the bug report [2]. In brief I am using latest Tumbleweed on this > device and you can imagine that error is happening always. > > Regards, > Ivan > > [0] Raspberry Pi 4 Model B Rev 1.1 > [1] https://github.com/raspberrypi/linux/blob/rpi-6.2.y/arch/arm/boot/dts/bcm2711-rpi.dtsi#L57 > [2] https://bugzilla.suse.com/show_bug.cgi?id=1206846
Hi, On 04-12 17:10, Stefan Wahren wrote: > > > > I am using RPi4[0] for testing this. Device tree is based on sources > > from here [1]. From this devicetree it is obvious what is happening. > > Thanks for clarifying. Unfortunately this file is not identical to the > mainline file, so the issue can only be triggered with the vendor DTB? > Patch which adds this here [4] is coming ... Regards, Ivan > > [0] Raspberry Pi 4 Model B Rev 1.1 > > [1] https://github.com/raspberrypi/linux/blob/rpi-6.2.y/arch/arm/boot/dts/bcm2711-rpi.dtsi#L57 > > [2] https://bugzilla.suse.com/show_bug.cgi?id=1206846 [4] https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/bcm2711-rpi.dtsi#L56
diff --git a/drivers/nvmem/rmem.c b/drivers/nvmem/rmem.c index 80cb187f1481..77c70a47d519 100644 --- a/drivers/nvmem/rmem.c +++ b/drivers/nvmem/rmem.c @@ -70,7 +70,7 @@ static int rmem_probe(struct platform_device *pdev) config.dev = dev; config.priv = priv; - config.name = "rmem"; + config.name = dev_name(dev); config.size = mem->size; config.reg_read = rmem_read;