Skip to content

Commit 478b676

Browse files
wenslinusw
authored andcommitted
pinctrl: sunxi: a83t: Fix IRQ offset typo for PH11
Pin PH11 is used on various A83T board to detect a change in the OTG port's ID pin, as in when an OTG host cable is plugged in. The incorrect offset meant the gpiochip/irqchip was activating the wrong pin for interrupts. Fixes: 4730f33 ("pinctrl: sunxi: add allwinner A83T PIO controller support") Cc: <stable@vger.kernel.org> Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 614b186 commit 478b676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/sunxi/pinctrl-sun8i-a83t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ static const struct sunxi_desc_pin sun8i_a83t_pins[] = {
568568
SUNXI_PIN(SUNXI_PINCTRL_PIN(H, 11),
569569
SUNXI_FUNCTION(0x0, "gpio_in"),
570570
SUNXI_FUNCTION(0x1, "gpio_out"),
571-
SUNXI_FUNCTION_IRQ_BANK(0x6, 2, 1)), /* PH_EINT11 */
571+
SUNXI_FUNCTION_IRQ_BANK(0x6, 2, 11)), /* PH_EINT11 */
572572
};
573573

574574
static const struct sunxi_pinctrl_desc sun8i_a83t_pinctrl_data = {

0 commit comments

Comments
 (0)