From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379929; b=GVCBwsd310tkm2zKIxP9cNeQ/4cikP513E6Qn1i5xlHARpoaQUuRgWMjJArhlv0bi1gp nh6hpP8QbG9aaQRK2aUQkJ8TbRueSR1yAeuhj6vvwVJPUPUNaeCQ8s//LH8n6wLJKI0Aj 6dYi6A6SQsMQ7T1iPKhHgrpepBnuKxjdQzXm4DwdP14eaINuOkVU7U3Gdhsq5d9iBHLiH u1f6f3uStdJiPsgRbf6i/bQD3mgtYCdU/0FMCahXMMWqO26BGS3wYJQrtIBFuokPzMsgb Nqz+K2fpvYHu3l2SsT9lHZjy1AnEPi7Iip2Aoa8jxMiKYQrItUVMxadZWOgN/u1N+GQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379929; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=e0pxYZAPiwkIYjm0SFq+FIll7uo/tK6GsklD2pEf2W4=; b=vAfJp3+8uV456upUIPOEE848Nrvh0XgNdPCcYpzC+BRVm0r1e6Kcqvzm4B6bINfxpQtG bWYusUX2XONZI4ueGY7x176V9AwEq/2QXHh4OStZ2ot0++YaMF9EWn9vUM8YDsFMdPhuY zlQ80ORtO7HSiAD+caeQtFx6PzWP3LICJwV0sJgbiQqdvMpVpJ9ZT9algjGUJJhM3iKCH tjvE0P57xho1CDZ15rrFUeYnaB+YDQIVNmacpYq4NwUCGv1CEiW1/T0pxyk8sLkxRve/u VOeHnUMR7zBMKbBARYRmDklNHmfUcU0zZWgzv0TmjHjGAqXaIqiOIGochieMJP1W7yw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MXUrXmgl; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BA14606A322; Fri, 4 Dec 2026 10:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MXUrXmgl Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64DC41F000C2; Fri, 4 Dec 2026 10:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379928; bh=e0pxYZAPiwkIYjm0SFq+FIll7uo/tK6GsklD2pEf2W4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MXUrXmglGo0kzTdeGdVHYgBJmhyJnqvo64YIU6M7tBbmQ+DVWOVcVQUM3+MBQf8aM /otg1RpXmt5D+RTxRLanVaDjmw1goveEb53VLGuE8n/Ndm8BlWH4gd3HWKwTJDph+R Hp3THysZjC9InoZmPnR4vxvxbN7pWgwdVQ1xzDg8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rosen Penev , Linus Walleij , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 7.3 030/742] gpio: mvebu: name regmaps to fix debugfs collisions Date: Fri, 4 Dec 2026 18:58:14 +0900 Message-ID: <20261204100635.854543826@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rosen Penev [ Upstream commit 4d305c2273123119c27d6e4c822215e650c451e3 ] Each marvell,armada-370-gpio node provides both 'gpio' and 'pwm' register windows, and the driver creates one regmap per window on the same platform device. The shared regmap_config was unnamed, so both maps defaulted their debugfs directory to dev_name(), e.g. debugfs: 'f1018100.gpio' already exists in 'regmap' because the PWM regmap (and on Armada XP the per-CPU regmap) claimed the same directory as the GPIO regmap. Give each regmap a distinct .name so the debugfs directories become '.gpio', '.percpu' and '.pwm'. This only affects debugfs naming; register access is unchanged. Assisted-by: opencode:big-pickle Signed-off-by: Rosen Penev Reviewed-by: Linus Walleij Link: https://patch.msgid.link/20260905004334.177074-1-rosenp@gmail.com Signed-off-by: Bartosz Golaszewski Stable-dep-of: 42269cdb3d3b ("gpio: mvebu: fix sleeping-while-atomic in mvebu_gpio_level_irq_mask()") Signed-off-by: Sasha Levin --- drivers/gpio/gpio-mvebu.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index a2796240fe14b..267e6d5bacd0d 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -599,6 +599,21 @@ static void mvebu_gpio_irq_handler(struct irq_desc *desc) } static const struct regmap_config mvebu_gpio_regmap_config = { + .name = "gpio", + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, +}; + +static const struct regmap_config mvebu_gpio_percpu_regmap_config = { + .name = "percpu", + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, +}; + +static const struct regmap_config mvebu_pwm_regmap_config = { + .name = "pwm", .reg_bits = 32, .reg_stride = 4, .val_bits = 32, @@ -868,7 +883,7 @@ static int mvebu_pwm_probe(struct platform_device *pdev, return PTR_ERR(base); mvpwm->regs = devm_regmap_init_mmio(&pdev->dev, base, - &mvebu_gpio_regmap_config); + &mvebu_pwm_regmap_config); if (IS_ERR(mvpwm->regs)) return PTR_ERR(mvpwm->regs); @@ -1135,7 +1150,7 @@ static int mvebu_gpio_probe_raw(struct platform_device *pdev, mvchip->percpu_regs = devm_regmap_init_mmio(&pdev->dev, base, - &mvebu_gpio_regmap_config); + &mvebu_gpio_percpu_regmap_config); if (IS_ERR(mvchip->percpu_regs)) return PTR_ERR(mvchip->percpu_regs); } -- 2.53.0