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=1796385991; b=QzRQOyEf2wu72U3L2UUsmqO5eZWWEqnbi5GuRLtW+c4Gt52ftOZN4FkZEL0kY2P+IYFC s5uAUo/nWjDswamkvDrjIH7qDERtjgc1UNuVgqwi5chjyqJE3cRc0qvlvjAHKfdjQlu6A PeHKF9+qspL8nevbRWB/N+/vPhwt1UtGkI9XyxfRHaGLlFV2aTGMI8vfj7m8pSFU1qJYb JP6e0hcBqhm3J97KBZY81KwirW3cHgzIyeUs9qX5LBQsuL2gGW/eQWogP+NWa0Q/C2Nqq caSktSsDbPZvGZeR4DdQJlFQAor2aDN+RiFtZmDIJGa2dKJm0b1j8CMYnQhBH1N96AQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385991; 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=JqOA6dWJWrwXGEwHeMPL4FWoxyK31uVj4HnNopvM/PQ=; b=sAson/Zohu8K9yngCroeDQNIhgtgxs8Q/AIpqfqn5nAkRlCjvhcd7hj5O9vf0dnqv3B2 zZlrCMwu4UrkWlFh2AmcDhEKT/Qi7TSaOH20IUmlAEBaNqNFXM4GWHoEwjQAUp+UsDXKa rxgZPJg5Vpn5fvaUhfBTVzyxgeEmS/mpaHpbFjcDE548j3GbIvdf8ZTAHd0Wvj6PxqD2i ScAYcEjV9+fu3M7IoniSkg9ZCNwjPLPv8toJnWppg7hSYvWXXMPdO3+ifuMnqHipmLytz Y8eYLA/uyR7pylyf0gEszl5I7w7i4FX9ScR5F5WV3FzFelh+Eyb6RMoSR5kqq1Zyq9A== 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=JkKcv3VE; 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 67509606A322; Fri, 4 Dec 2026 12:06: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=JkKcv3VE Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7EFC1F000CE; Fri, 4 Dec 2026 12:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385991; bh=JqOA6dWJWrwXGEwHeMPL4FWoxyK31uVj4HnNopvM/PQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JkKcv3VE7c7LYhyRrKso/K2MSgvMj1QWVkf43rBBopRK+9Jo3G1vCQdfKvhPi7ymu Jia6TaIK9cRTfrJxsxsz99+A+0K1efmI5epqtjy/8MDUj73OQWsmP5ujhXL4owG51w 7ornWw605CQqI2FYqBLo7zzWWMbn6Hgjqo3HQ6qo= 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.6 0780/1167] gpio: mvebu: fix sleeping-while-atomic in mvebu_gpio_level_irq_mask() Date: Fri, 4 Dec 2026 19:03:27 +0900 Message-ID: <20261204100722.432885929@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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 6.6-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 af60639e69b25..4a90ef79cdca2 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