]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Merge tag 'renesas-da9063-da9210-quirk-for-v4.1' into next
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 16 Mar 2015 21:50:29 +0000 (06:50 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 16 Mar 2015 21:50:29 +0000 (06:50 +0900)
commitde8009f10573ffdd489feab957ab4f71059bbd70
tree575a8dccefb4130cbeb06abc43554a886e9edd0f
parent2b205aa689eeb45da7c6c4cbeda488c99e5d312e
parent46dd8a809effdc7ebe6ec760e3e421d5ac2a40f1
Merge tag 'renesas-da9063-da9210-quirk-for-v4.1' into next

Renesas ARM Based SoC da9063/da9210 Regulator Quirk for v4.1

The r8a7790/lager and r8a7791/koelsch development boards have da9063 and
da9210 regulators.  Both regulators have their interrupt request lines
tied to the same interrupt pin (IRQ2) on the SoC.

After cold boot or da9063-induced restart, both the da9063 and da9210
seem to assert their interrupt request lines.  Hence as soon as one
driver requests this irq, it gets stuck in an interrupt storm, as it
only manages to deassert its own interrupt request line, and the other
driver hasn't installed an interrupt handler yet.

To handle this, install a quirk that masks the interrupts in both the
da9063 and da9210.  This quirk has to run after the i2c master driver
has been initialized, but before the i2c slave drivers are initialized.
As it depends on i2c, select I2C if one of the affected platforms is
enabled in the kernel config.
arch/arm/boot/dts/r8a7790-lager.dts
arch/arm/boot/dts/r8a7791-koelsch.dts
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/Makefile