lkml.org 
[lkml]   [2018]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 237/496] ARM: davinci: fix the GPIO lookup for omapl138-hawk
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

    [ Upstream commit c4dc56be7e26040bfc60ce73425353516a356955 ]

    The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that
    mmc can correctly lookup the wp and cp gpios.

    Note that it is the gpio-davinci driver that sets the gpiochip label to
    davinci_gpio.0.

    Fixes: c69f43fb4f26 ("ARM: davinci: hawk: use gpio descriptor for mmc pins")
    Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    [nsekhar@ti.com: add a note on where the chip label is set]
    Signed-off-by: Sekhar Nori <nsekhar@ti.com>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/arm/mach-davinci/board-omapl138-hawk.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/arch/arm/mach-davinci/board-omapl138-hawk.c
    +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c
    @@ -127,8 +127,8 @@ static struct gpiod_lookup_table mmc_gpi
    .dev_id = "da830-mmc.0",
    .table = {
    /* CD: gpio3_12: gpio60: chip 1 contains gpio range 32-63*/
    - GPIO_LOOKUP("davinci_gpio.1", 28, "cd", GPIO_ACTIVE_LOW),
    - GPIO_LOOKUP("davinci_gpio.1", 29, "wp", GPIO_ACTIVE_LOW),
    + GPIO_LOOKUP("davinci_gpio.0", 28, "cd", GPIO_ACTIVE_LOW),
    + GPIO_LOOKUP("davinci_gpio.0", 29, "wp", GPIO_ACTIVE_LOW),
    },
    };


    \
     
     \ /
      Last update: 2018-05-28 12:52    [W:4.040 / U:0.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site