linux/drivers/pinctrl/samsung
Krzysztof Kozlowski af0b0baa89 pinctrl: samsung: Fix invalid register offset used for Exynos5433 external interrupts
When setting the pin function for external interrupts, the driver used
wrong IO memory address base.  The pin function register is always under
pctl_base, not the eint_base.

By updating wrong register, the external interrupts for chosen GPIO
would not work at all and some other GPIO might be configured to wrong
value.  For example on Exynos5433-based boards, the external interrupts
for gpf{1-5}-X GPIOs should not work at all (driver toggled reserved
registers from ALIVE bank instead).

Platforms other than Exynos5433 should not be affected as eint_base
equals pctl_base in such case.

Fixes: 8b1bd11c1f ("pinctrl: samsung: Add the support the multiple IORESOURCE_MEM for one pin-bank")
Cc: <stable@vger.kernel.org>
Reported-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2017-07-18 19:02:44 +02:00
..
Kconfig pinctrl: samsung: Split Exynos drivers per ARMv7 and ARMv8 2017-06-07 20:40:47 +02:00
Makefile pinctrl: samsung: Split Exynos drivers per ARMv7 and ARMv8 2017-06-07 20:40:47 +02:00
pinctrl-exynos5440.c pinctrl: samsung: Clean up modular vs. non-modular distinctions 2017-05-23 16:49:17 +02:00
pinctrl-exynos-arm64.c pinctrl: samsung: Split Exynos drivers per ARMv7 and ARMv8 2017-06-07 20:40:47 +02:00
pinctrl-exynos-arm.c pinctrl: samsung: Explicitly cast pointer returned by of_iomap() to iomem 2017-06-07 20:40:48 +02:00
pinctrl-exynos.c pinctrl: samsung: Fix invalid register offset used for Exynos5433 external interrupts 2017-07-18 19:02:44 +02:00
pinctrl-exynos.h pinctrl: samsung: Split Exynos drivers per ARMv7 and ARMv8 2017-06-07 20:40:47 +02:00
pinctrl-s3c24xx.c pinctrl: samsung: Fix NULL pointer exception on external interrupts on S3C24xx 2017-07-18 18:09:05 +02:00
pinctrl-s3c64xx.c pinctrl: samsung: Fix NULL pointer exception on external interrupts on S3C24xx 2017-07-18 18:09:05 +02:00
pinctrl-samsung.c pinctrl: samsung: Fix NULL pointer exception on external interrupts on S3C24xx 2017-07-18 18:09:05 +02:00
pinctrl-samsung.h pinctrl: samsung: Fix NULL pointer exception on external interrupts on S3C24xx 2017-07-18 18:09:05 +02:00