]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: intel: Do pin translation when lock IRQ
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 25 Jul 2018 12:42:08 +0000 (15:42 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 29 Jul 2018 21:28:44 +0000 (23:28 +0200)
commita6f3670b015940bc972f81cef5ef8357200f234a
tree469a24989a9c682809fc581810a0387181a4f746
parentda96e4b0e75c717d1920e8f3aee7de7bf8e265cc
pinctrl: intel: Do pin translation when lock IRQ

Default GPIOLIB callbacks for request and release IRQ do not do a GPIO
to pin translation which is necessary for Intel hardware, such as Intel
Cannonlake. Absence of the translation prevents some pins to be locked
as IRQ due to direction check. Introduce own callbacks to make
translation possible to avoid above issue.

Fixes: 42d47291e29d ("pinctrl: intel: Allow custom GPIO base for pad groups")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c