linux/arch/arm/mach-shmobile
Marek Vasut 5347a02037 ARM: shmobile: Fix R-Car Gen2 regulator quirk
The quirk code currently detects all compatible I2C chips with a shared
IRQ line on all I2C busses, adds them into a list, and registers a bus
notifier. For every chip for which the bus notifier triggers, the quirk
code performs I2C transfer on that I2C bus for all addresses in the list.
The problem is that this may generate transfers to non-existing chips on
systems with multiple I2C busses.

This patch adds a check to verify that the I2C bus to which the chip with
shared IRQ is attached to matches the I2C bus of the chip which triggered
the bus notifier and only starts the I2C transfer if they match.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Tested-by: Nguyen Viet Dung <dung.nguyen.aj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2019-01-07 13:24:07 +01:00
..
common.h ARM: shmobile: Remove unused shmobile_smp_init_fallback_ops() 2018-06-18 12:00:22 +02:00
emev2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
headsmp-apmu.S ARM: shmobile: rcar-gen2: Stop compiling headsmp-apmu on !SMP 2018-06-27 17:08:52 +02:00
headsmp-scu.S ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
headsmp.S ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
Kconfig ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
Makefile ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
platsmp-apmu.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
platsmp-scu.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
platsmp.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
pm-rcar-gen2.c ARM: SoC platform updates for 4.20 2018-10-29 15:37:33 -07:00
r8a7779.h ARM: shmobile: r8a7779: Remove explicit SYSC config and init 2018-06-18 12:00:28 +02:00
rcar-gen2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
regulator-quirk-rcar-gen2.c ARM: shmobile: Fix R-Car Gen2 regulator quirk 2019-01-07 13:24:07 +01:00
setup-emev2.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r7s9210.c ARM: shmobile: Add basic RZ/A2 SoC support 2018-08-27 15:06:42 +02:00
setup-r7s72100.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a73a4.c ARM: shmobile: Always enable ARCH_TIMER on SoCs with A7 and/or A15 2018-07-20 13:44:10 +02:00
setup-r8a7740.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a7778.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a7779.c ARM: shmobile: r8a7779: Remove unused includes 2018-08-27 15:02:54 +02:00
setup-rcar-gen2.c ARM: shmobile: r8a7744: Basic SoC support 2018-09-17 10:47:46 +02:00
setup-sh73a0.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
sh73a0.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
smp-emev2.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
smp-r8a7779.c ARM: shmobile: r8a7779: hide unused r8a7779_platform_cpu_kill 2018-07-20 13:44:09 +02:00
smp-sh73a0.c ARM: shmobile: sh73a0: Remove obsolete inclusion of <asm/smp_twd.h> 2018-11-16 07:27:19 -08:00
suspend.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
timer.c ARM: SoC platform updates for 4.20 2018-10-29 15:37:33 -07:00