[PATCH] pinctrl: msm: fix gpio-hog related boot issues
Christian Lamparter
chunkeey at gmail.com
Thu Mar 29 07:05:47 PDT 2018
On Thu 29 Mar 2018 14:23:35 CEST Christian Lamparter wrote:
> Ok I see, I was aware of ACPI but not that a pinctrl-msm based driver is
> using it. Well, I thinks is possible to use is_acpi_device_node() or
> !is_of_node() to detect whenever we are dealing with a OF or not:
>
> would it be ok to do something like this?
>
> | if (!is_of_node(chip->of_node)) {
oops, this should be:
if (!is_of_node(pctrl->dev->fwnode)) {
> | /*
> | * (lengthy note about gpiochip_add_pin_range and OF with
> | * reference to Documentation/devicetree/bindings/gpio/gpio.txt
> | * - TBD)
> | */
> | ret = gpiochip_add_pin_range(&pctrl->chip,
> | [...]
> | }
More information about the linux-arm-kernel
mailing list