From: Quanyang Wang <quanyang.w...@windriver.com>

The regmap subsystem use mutex lock as its default lock but this will
cause the error that calling sleeping functions in an atomic context
since the irq callbacks "irq_set_type/irq_mask/irq_unmask" for
siul2-s32cc are all using regmap_update_bits.

Add use_raw_spinlock flag to the regmap_config structure siul2_regmap_conf
can switch mutex lock to raw spinlock.

Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com>
---
 drivers/gpio/gpio-siul2-s32cc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-siul2-s32cc.c b/drivers/gpio/gpio-siul2-s32cc.c
index e41bc337921ab..d93704af3eefa 100644
--- a/drivers/gpio/gpio-siul2-s32cc.c
+++ b/drivers/gpio/gpio-siul2-s32cc.c
@@ -550,6 +550,7 @@ static const struct regmap_config siul2_regmap_conf = {
        .reg_bits = 32,
        .reg_stride = 4,
        .cache_type = REGCACHE_FLAT,
+       .use_raw_spinlock = true,
 };
 
 static struct regmap *common_regmap_init(struct platform_device *pdev,
-- 
2.36.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12357): 
https://lists.yoctoproject.org/g/linux-yocto/message/12357
Mute This Topic: https://lists.yoctoproject.org/mt/98152527/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to