Skip to content
Snippets Groups Projects
Commit f2a23808 authored by Jeremy Kerr's avatar Jeremy Kerr Committed by Greg Kroah-Hartman
Browse files

gpio/aspeed-sgpio: don't enable all interrupts by default


[ Upstream commit bf0d394e ]

Currently, the IRQ setup for the SGPIO driver enables all interrupts in
dual-edge trigger mode. Since the default handler is handle_bad_irq, any
state change on input GPIOs will trigger bad IRQ warnings.

This change applies sensible IRQ defaults: single-edge trigger, and all
IRQs disabled.

Signed-off-by: default avatarJeremy Kerr <jk@codeconstruct.com.au>
Fixes: 7db47faa ("gpio: aspeed: Add SGPIO driver")
Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
Acked-by: default avatarAndrew Jeffery <andrew@aj.id.au>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8323d1e0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment