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=1796388732; b=pYj5ghPyy53MxmjuJ0MTIMoW4xbpMwI7UKBy0mrcm7XHuPSCR40e2y7k+F/TeqQZ5lEp u8a1ILr/hCO8ED2cPkI5HAOZ4yX4GWRX85U4W5kossK72cR5h6RoTMZBuVK8OpNDhAqas xpJpiaAeMpwxZpNiJQUTM4ApaqrZXGSQobzzwSa9c1Z6Vk8EBX4hAbtsyPoGeQriV1NuE MGMpV7AEeNAS5A3yNvOgkrXYw4JFthH8k2kMlgXgMvHAJSbTpRzvyVOvR95QzkUBw2z58 1gQ249JOjApLxhVEOS/QC7h3Tn6JA3jsrrdllaON9Hkn9gge29dSDK0xIE431TCTMgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388732; 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=nh1SNN9V1xWKzY9JoND1BdXMB0JTyLNtEVbSNdd1phU=; b=TbpXzwqVsMog8wjNvJryjrNtPTtEnELeKZ8XwGPMOsdoMK+mD1NQxBHbfhddQMvT+48p jzTvLYTVwM6FM0pTAWzyI3WVnfG8AZHTsu3I8J3bGVq1PB1a8JFjOu1HG58g8zwowAiF5 LVKV5PqCqzlRsz2exGB9DHvGXSMPe6yzIeP7iefexcjr+wnKSEDf1zd0hmEx7jBRRU/sp EbNQLtAIBuxjOtXhVzwdQ73HY1w8WKzWE0Gy52A/yCxxEfWeNQO5gvtWz0eCG/7DqxAsR v2hzfPN1R4jFQwDwY7hfTnRVZ6KqN51rC/yOzGiWMk3byEMe+pP58CQ+lWAFGtUGKAA== 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=zWbK2sWE; 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 43CFB606A32D; Fri, 4 Dec 2026 12:52:12 +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=zWbK2sWE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F3C11F000CE; Fri, 4 Dec 2026 12:52:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388731; bh=nh1SNN9V1xWKzY9JoND1BdXMB0JTyLNtEVbSNdd1phU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=zWbK2sWE8I7I+2/rafvnHzQIk7fnaH0/9XjQXzfm63NROywlyOfQ+lzjKmYNGFUcF idaajL8/fPDDXJIzHH7aFABw8f08vD2ymfHNLUqHgb+ooEVWTSIACA3Z/een1AHAIU 8J40KNtjojVbiaTvHK7n771YcF7xU5XfK9w0smU8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Linus Walleij , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 6.1 0732/1059] gpio: mvebu: fix sleeping-while-atomic in mvebu_gpio_level_irq_mask() Date: Fri, 4 Dec 2026 19:04:23 +0900 Message-ID: <20261204100702.932632443@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bartosz Golaszewski [ Upstream commit 42269cdb3d3b46ba6e80f31d0e00d0bdcff1d8d4 ] mvebu_gpio_write_level_mask() is called with a raw spinlock taken but the underlying regmap uses a standard spinlock which can sleep on RT_PREEMPT kernels. Add the .use_raw_spinlock attribute to the appropriate regmap config. Cc: stable@vger.kernel.org Fixes: 2233bf7a92e7 ("gpio: mvebu: switch to regmap for register access") Fixes: 4d305c227312 ("gpio: mvebu: name regmaps to fix debugfs collisions") Closes: https://sashiko.dev/#/bug/linux-6bee0c4f-384c-494c-868e-07c420195d13 Reviewed-by: Linus Walleij Link: https://patch.msgid.link/20261109-gpio-mvebu-sleeping-while-atomic-v2-1-41f070421e70@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/gpio-mvebu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index 8e893aef83d56..399eece49235e 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -607,6 +607,7 @@ static const struct regmap_config mvebu_gpio_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, + .use_raw_spinlock = true, }; static const struct regmap_config mvebu_gpio_percpu_regmap_config = { @@ -614,6 +615,7 @@ static const struct regmap_config mvebu_gpio_percpu_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, + .use_raw_spinlock = true, }; static const struct regmap_config mvebu_pwm_regmap_config = { -- 2.53.0