]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Fix sleeping function called from invalid context for RTC quirk
authorTony Lindgren <tony@atomide.com>
Thu, 2 Jul 2020 17:41:02 +0000 (10:41 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 2 Jul 2020 17:47:43 +0000 (10:47 -0700)
commit960e4447137d5d8fde3b7c8b0f7376eb4090e706
tree18580e1f7fc08b904e95710ce6ddf7450dd38235
parent5fa4118396d10fc8f3093cca24785f9cf974aadd
bus: ti-sysc: Fix sleeping function called from invalid context for RTC quirk

With CONFIG_DEBUG_ATOMIC_SLEEP enabled we can see the following with RTC probe:

BUG: sleeping function called from invalid context at drivers/bus/ti-sysc.c:1736
...
(sysc_quirk_rtc) from [<c060d01c>] (sysc_write_sysconfig+0x1c/0x60)
(sysc_write_sysconfig) from [<c060d9f4>] (sysc_enable_module+0x11c/0x274)
(sysc_enable_module) from [<c060f37c>] (sysc_probe+0xe9c/0x1380)
(sysc_probe) from [<c06e9384>] (platform_drv_probe+0x48/0x98)

Fixes: 76a3703e8a32 ("bus: ti-sysc: Handle module unlock quirk needed for some RTC")
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c