lkml.org 
[lkml]   [2020]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 190/717] pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller
    Date
    From: Yangtao Li <frank@allwinnertech.com>

    [ Upstream commit 6de7ed693c631d4689acfe90c434147598d75543 ]

    A100's pin starts with PB, so it should start with 1.

    Fixes: 473436e7647d6 ("pinctrl: sunxi: add support for the Allwinner A100 pin controller")
    Signed-off-by: Yangtao Li <frank@allwinnertech.com>
    Link: https://lore.kernel.org/r/9db51667bf9065be55beafd56e5c319e3bbe8310.1604988979.git.frank@allwinnertech.com
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c b/drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c
    index 19cfd1e76ee2c..e69f6da40dc0a 100644
    --- a/drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c
    +++ b/drivers/pinctrl/sunxi/pinctrl-sun50i-a100.c
    @@ -677,7 +677,7 @@ static const struct sunxi_desc_pin a100_pins[] = {
    SUNXI_FUNCTION_IRQ_BANK(0x6, 6, 19)),
    };

    -static const unsigned int a100_irq_bank_map[] = { 0, 1, 2, 3, 4, 5, 6};
    +static const unsigned int a100_irq_bank_map[] = { 1, 2, 3, 4, 5, 6, 7};

    static const struct sunxi_pinctrl_desc a100_pinctrl_data = {
    .pins = a100_pins,
    --
    2.27.0


    \
     
     \ /
      Last update: 2020-12-28 15:10    [W:3.284 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site