]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: shmobile: Rework the PMIC IRQ line quirk
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 18 Sep 2018 12:23:40 +0000 (14:23 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 19 Sep 2018 09:11:46 +0000 (11:11 +0200)
commit6d14d4d313d09dabdb06b4a9f4e5fe4305051e9b
tree13d45c09227e338e766ed50c6e661d3b95df11ed
parentabf3bf537d298db18ad929ceb71c0353d6794f42
ARM: shmobile: Rework the PMIC IRQ line quirk

Rather than hard-coding the quirk topology, which stopped scaling,
parse the information from DT. The code looks for all compatible
PMICs -- da9063 and da9210 -- and checks if their IRQ line is tied
to the same pin. If so, the code sends a matching sequence to the
PMIC to deassert the IRQ.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> (on Koelsch)
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c