Searched hist:"96147 db1e1dff83679e71ac92193cbcab761a14c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/pinctrl/intel/ |
H A D | pinctrl-intel.c | diff 96147db1e1dff83679e71ac92193cbcab761a14c Tue Sep 18 10:36:21 CDT 2018 Mika Westerberg <mika.westerberg@linux.intel.com> pinctrl: intel: Do pin translation in other GPIO operations as well
For some reason I thought GPIOLIB handles translation from GPIO ranges to pinctrl pins but it turns out not to be the case. This means that when GPIOs operations are performed for a pin controller having a custom GPIO base such as Cannon Lake and Ice Lake incorrect pin number gets used internally.
Fix this in the same way we did for lock/unlock IRQ operations and translate the GPIO number to pin before using it.
Fixes: a60eac3239f0 ("pinctrl: intel: Allow custom GPIO base for pad groups") Reported-by: Rajat Jain <rajatja@google.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Tested-by: Rajat Jain <rajatja@google.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|