linux-hardened/arch/arm/mach-shmobile
Wolfram Sang c2f321126e ARM: shmobile: fix regulator quirk for Gen2
The current implementation only works if the da9xxx devices are added
before their drivers are registered. Only then it can apply the fixes to
both devices. Otherwise, the driver for the first device gets probed
before the fix for the second device can be applied. This is what
fails when using the IP core switcher or when having the i2c master
driver as a module.

So, we need to disable both da9xxx once we detected one of them. We now
use i2c_transfer with hardcoded i2c_messages and device addresses, so we
don't need the da9xxx client devices to be instantiated. Because the
fixup is used on specific boards only, the addresses are not going to
change.

Fixes: 663fbb5215 ("ARM: shmobile: R-Car Gen2: Add da9063/da9210 regulator quirk")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> (r8a7791/koelsch)
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2016-09-02 10:15:38 +02:00
..
common.h ARM: shmobile: smp: Add function to prioritize DT SMP 2016-06-29 14:43:11 +02:00
emev2.h ARM: shmobile: emev2: Move declaration of emev2_smp_ops to emev2.h 2016-02-19 14:45:31 +09:00
headsmp-scu.S Second Round of Renesas ARM Based SoC Cleanup for v4.6 2016-02-26 22:37:32 +01:00
headsmp.S ARM: shmobile: Remove shmobile_boot_arg 2016-02-17 18:27:21 +09:00
Kconfig Second Round of Renesas ARM Based SoC Updates for v4.8 2016-07-06 22:21:11 -07:00
Makefile ARM: shmobile: r8a7792: basic SoC support 2016-06-29 14:42:01 +02:00
platsmp-apmu.c ARM: shmobile: apmu: Add APMU DT support via Enable method 2016-06-29 14:42:48 +02:00
platsmp-apmu.h ARM: shmobile: Separate APMU resource data into CPU dependant part 2014-11-04 09:31:23 +09:00
platsmp-scu.c ARM: shmobile: Consolidate SCU mapping code 2016-02-17 21:24:29 +09:00
platsmp.c ARM: shmobile: smp: Add function to prioritize DT SMP 2016-06-29 14:43:11 +02:00
pm-r8a7779.c soc: renesas: rcar-sysc: Move SYSC interrupt config to rcar-sysc driver 2016-06-29 14:37:08 +02:00
pm-rcar-gen2.c Merge branch 'rcar-sysc-for-v4.8' into HEAD 2016-06-29 14:41:43 +02:00
pm-rmobile.c ARM: shmobile: pm-rmobile: Postpone call to pm_genpd_init() 2016-05-30 09:39:42 +09:00
pm-rmobile.h ARM: shmobile: Remove obsolete legacy PM Domain leftovers 2015-09-14 09:58:08 +09:00
r8a7779.h ARM: use const and __initconst for smp_operations 2015-12-01 22:17:45 +01:00
r8a7790.h ARM: use const and __initconst for smp_operations 2015-12-01 22:17:45 +01:00
r8a7791.h ARM: use const and __initconst for smp_operations 2015-12-01 22:17:45 +01:00
rcar-gen2.h ARM: shmobile: Consolidate the pm code for R-Car Gen2 2015-03-17 08:05:13 +09:00
regulator-quirk-rcar-gen2.c ARM: shmobile: fix regulator quirk for Gen2 2016-09-02 10:15:38 +02:00
setup-emev2.c ARM: shmobile: emev2: Move declaration of emev2_smp_ops to emev2.h 2016-02-19 14:45:31 +09:00
setup-r7s72100.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
setup-r8a73a4.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
setup-r8a7740.c arm: Remove unnecessary of_platform_populate with default match table 2016-06-23 14:58:37 -05:00
setup-r8a7778.c clk: renesas: Rename header file renesas.h 2016-03-15 18:12:14 -07:00
setup-r8a7779.c clk: renesas: Rename header file renesas.h 2016-03-15 18:12:14 -07:00
setup-r8a7790.c ARM: shmobile: r8a7790: Prioritize DT APMU support 2016-06-29 14:43:26 +02:00
setup-r8a7791.c ARM: shmobile: r8a7791: Prioritize DT APMU support 2016-06-29 14:43:40 +02:00
setup-r8a7792.c ARM: shmobile: r8a7792: basic SoC support 2016-06-29 14:42:01 +02:00
setup-r8a7793.c ARM: shmobile: r8a7793: proper constness with __initconst 2015-11-22 17:13:13 -08:00
setup-r8a7794.c ARM: shmobile: r8a7794: Reserve memory as other R-Car Gen2 SoCs 2014-09-16 15:01:58 +09:00
setup-rcar-gen2.c ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H 2016-06-29 14:42:03 +02:00
setup-sh73a0.c arm: Remove unnecessary of_platform_populate with default match table 2016-06-23 14:58:37 -05:00
sh73a0.h ARM: use const and __initconst for smp_operations 2015-12-01 22:17:45 +01:00
smp-emev2.c ARM: SoC platform updates for v4.6 2016-03-20 14:57:08 -07:00
smp-r8a7779.c soc: renesas: Move pm-rcar to drivers/soc/renesas/rcar-sysc 2016-04-22 17:23:13 +10:00
smp-r8a7790.c soc: renesas: Move pm-rcar to drivers/soc/renesas/rcar-sysc 2016-04-22 17:23:13 +10:00
smp-r8a7791.c ARM: use const and __initconst for smp_operations 2015-12-01 22:17:45 +01:00
smp-sh73a0.c ARM: shmobile: Consolidate SCU mapping code 2016-02-17 21:24:29 +09:00
suspend.c ARM: shmobile: Add includes providing forward declarations 2016-02-04 15:09:29 +01:00
timer.c ARM: shmobile: timer: Drop support for Cortex A8 2016-04-20 08:55:09 +10:00