]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: davinci: restore a way to manually specify the GPIO base
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 21 Nov 2018 09:35:17 +0000 (10:35 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 26 Nov 2018 11:15:10 +0000 (16:45 +0530)
commit7ab732b710ce27cc125c92a04cec044f6658df14
tree7ae4e8f86c10b3d103b9d095f9a465e9fdcb4cb1
parent12b83a920a298ab7ee4e052bcc7ba4da8a0f7249
gpio: davinci: restore a way to manually specify the GPIO base

Commit 31c7688a7ae7 ("gpio: davinci: Use dev name for label and
automatic base selection") broke the network support in legacy boot
mode for da850-evm since we can no longer request the MDIO clock GPIO.

Other boards may be broken too, which I haven't tested.

The problem is in the fact that most board files still use the legacy
GPIO API where lines are requested by numbers rather than descriptors.

While this should be fixed eventually, in order to unbreak the board
for now - provide a way to manually specify the GPIO base in platform
data.

Fixes: 31c7688a7ae7 ("gpio: davinci: Use dev name for label and automatic base selection")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/gpio/gpio-davinci.c
include/linux/platform_data/gpio-davinci.h