summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLinmao Li <lilinmao@kylinos.cn>2026-07-23 10:11:40 +0800
committerAndi Shyti <andi.shyti@kernel.org>2026-07-25 00:46:09 +0200
commite26e82b04ffdd60d44f2e64db1495855b78e3083 (patch)
tree4a4183841338afb3ed450e0e4f7b6479da838b35 /scripts
parentdeb35336b5bfed5db9231b5348bc1514db930797 (diff)
downloadlinux-next-e26e82b04ffdd60d44f2e64db1495855b78e3083.tar.gz
linux-next-e26e82b04ffdd60d44f2e64db1495855b78e3083.zip
i2c: spacemit: request IRQ after controller initialization
spacemit_i2c_probe() requests the IRQ before it enables the clocks, resets the controller and runs init_completion(). If an interrupt is already pending, the handler runs too early: it reads registers while the clocks are still off and calls complete() on an uninitialized completion. Request the IRQ after the controller and completion are initialized, but still before the adapter is registered. Fixes: 5ea558473fa3 ("i2c: spacemit: add support for SpacemiT K1 SoC") Signed-off-by: Linmao Li <lilinmao@kylinos.cn> Cc: <stable@vger.kernel.org> # v6.15+ Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Reviewed-by: Alex Elder <elder@riscstar.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20260723021140.2293844-1-lilinmao@kylinos.cn
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions