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

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 51e9f12163223546bd3aa9f7af6817931f980da8 ]

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: b5e1438cf98a ("ARM: davinci: da830-evm: use gpio descriptor for mmc pins")
Reported-by: David Lechner <david@lechnology.com>
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-da830-evm.c