]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: xway: fix gpio-hog related boot issues
authorMartin Schiller <ms@dev.tdt.de>
Fri, 14 Dec 2018 07:48:25 +0000 (08:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Dec 2018 22:11:18 +0000 (23:11 +0100)
commit9b4924da4711674e62d97d4f5360446cc78337af
treed431b3f59908dfa0d715e49dbdad4e5407119530
parent7f07675c117aac08c403ee02d4a865f76a0ce55a
pinctrl: xway: fix gpio-hog related boot issues

This patch is based on commit a86caa9ba5d7 ("pinctrl: msm: fix gpio-hog
related boot issues").

It fixes the issue that the gpio ranges needs to be defined before
gpiochip_add().

Therefore, we also have to swap the order of registering the pinctrl
driver and registering the gpio chip.

You also have to add the "gpio-ranges" property to the pinctrl device
node to get it finally working.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-xway.c