linux-stable/drivers/pinctrl/intel
Mika Westerberg 96147db1e1 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: a60eac3239 ("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>
2018-09-20 08:21:52 -07:00
..
Kconfig pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
Makefile pinctrl: intel: Add Ice Lake PCH pin controller support 2018-06-29 14:51:26 +02:00
pinctrl-baytrail.c pinctrl: baytrail: actually print the apparently misconfigured pin 2018-08-03 19:14:50 +02:00
pinctrl-broxton.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-cannonlake.c pinctrl: cannonlake: Fix gpio base for GPP-E 2018-09-18 16:35:22 -07:00
pinctrl-cedarfork.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-cherryview.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-denverton.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-geminilake.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-icelake.c pinctrl: intel: Add Ice Lake PCH pin controller support 2018-06-29 14:51:26 +02:00
pinctrl-intel.c pinctrl: intel: Do pin translation in other GPIO operations as well 2018-09-20 08:21:52 -07:00
pinctrl-intel.h pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-lewisburg.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00
pinctrl-merrifield.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
pinctrl-sunrisepoint.c pinctrl: intel: Convert to use SPDX identifier 2018-07-02 15:52:10 +02:00