]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: davinci: board-da850-evm: fix GPIO lookup for MMC/SD
authorSekhar Nori <nsekhar@ti.com>
Tue, 24 Apr 2018 14:35:04 +0000 (20:05 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:56:06 +0000 (14:56 +0200)
commit86a931d9e9da87d50e8552a7a5942dcd88489525
tree19e2d93345457dddc4e2437414c745e5bf67fe9d
parentb23f3135b65f11c601b0190febdd38d4cdf54530
ARM: davinci: board-da850-evm: fix GPIO lookup for MMC/SD

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 67c6b6ff221f807180aea6dd597246f87e1dd98a ]

The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that
mmc can correctly lookup the wp and cp gpios. Also fix the GPIO numbers
as they are not offsets within a bank.

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

Fixes: bdf0e8364fd3 ("ARM: davinci: da850-evm: use gpio descriptor for mmc pins")
Reviewed-by: David Lechner <david@lechnology.com>
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/mach-davinci/board-da850-evm.c