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=1796379931; b=EE4Cn5QQ6RfxuDu3bOr1T67d/vNnzaGTFW0M2mDa3D8HhhzYKk8K+Py88ie4rqqPEWnS LwqVEfsGHi8C2Jxo5YOWR1aZgHbAprsB9+ly8zFqDq5IBXgNmlmjhaybOub4MJHzsvoLf zls3z6WhAurokLeAfL0qIwH8JQJUldipoEe4CsGdv890INRXwYpgxDtqX6VSOimeT4kDQ n6zwziOG0Ow2JZymBLyEVVOUcOkTlCcWImaW6wOQFvhuwK0L+Giwmkyk1O3V7qUiuL1LK RJGYbtCdYOeRldeSP9CMVI4nyiM+sjT3pfAhZLCaazyeAuHixjFhbXTGdW8OchPWQ5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379931; 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=P6fI/fb3sDsrrKA1qSTDO8urXp7CEV4HDMzpuaRcpFA=; b=h7Yj6reTdcHNHiES7lzouS4fO8AJ0FQsBrDBb6pZt72qpzTGM4B097CdRsNLdiM7VAxO Akm+zsVdtGVsOZt5YPfhhas7hxXiwufhCNeGtJS39EM3bxEmRx6cUNrQzQQyORDuAvXiE ap3Eg/ifVQ3ThA0ZJZPsTx+6PqsE0uAff5v89iz5Xoj2cojLInthkwFZUflF32lCnXpMP VEKE1YaqIT/PaLOeQpAmpzTdYwAV2G6F9mqnJOo2U1gOFMOgPzs9Z0B7FKWViD/+CmWUE Fc6Ve+HH9MIHYvO13qMwZZ4dg6RTnr24kN8rFZZs7Qcde6hf91ZOoz2JJbJbTkF9xJg== 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=K8Fswvkm; 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 5060C606A330; Fri, 4 Dec 2026 10:25:31 +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=K8Fswvkm Received: by smtp.kernel.org (Postfix) with ESMTPSA id B98261F000C2; Fri, 4 Dec 2026 10:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379931; bh=P6fI/fb3sDsrrKA1qSTDO8urXp7CEV4HDMzpuaRcpFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=K8Fswvkm1DgjkYtxh9dSqWX3l7jc0DcCWrUub4LBTIIOAUvF6xnNxEwKjHfF1jmzI RsmLegabxfKYa7ip0zK6InE36qgquinvvP28Xptci8WnU9IBnN+FE5Z4q8Ume1vSws 5fg749uKjDzpaxDg4wVvTL7UZRrnmZy+2TGcM/0o= 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 7.3 031/742] gpio: mvebu: fix sleeping-while-atomic in mvebu_gpio_level_irq_mask() Date: Fri, 4 Dec 2026 18:58:15 +0900 Message-ID: <20261204100635.879143087@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: 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 7.3-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 267e6d5bacd0d..92ce02441cc99 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -603,6 +603,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 = { @@ -610,6 +611,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