]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: intel: Set pin direction properly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jan 2017 12:07:22 +0000 (14:07 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 12:49:05 +0000 (13:49 +0100)
commit4224f1162332a2d0305ebce2197ea436a97d6e2c
tree20731f4618431c5fc27c0f0bfac7c08b34127186
parent7df1f8e0973f670a9290f7f4bbd406b244678890
pinctrl: intel: Set pin direction properly

There are two bits in the PADCFG0 register to configure direction, one per
TX/RX buffers.

For now we wrongly assume that the GPIO is always requested before it is being
used, which is not true when the GPIO is used through irqchip. In this case the
GPIO is never requested and we never enable RX buffer for it.

Fix this by setting both bits accordingly.

Reported-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c