Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-19 Thread Simon Horman
On Wed, Sep 19, 2018 at 11:21:42AM +0200, Marek Vasut wrote: > On 09/19/2018 11:13 AM, Simon Horman wrote: > > On Tue, Sep 18, 2018 at 02:52:53PM +0200, Geert Uytterhoeven wrote: > >> On Tue, Sep 18, 2018 at 2:23 PM Marek Vasut wrote: > >>> Rather than hard-coding the quirk topology, which

Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-19 Thread Geert Uytterhoeven
Hi Marek, On Wed, Sep 19, 2018 at 11:36 AM Marek Vasut wrote: > On 09/19/2018 11:30 AM, Geert Uytterhoeven wrote: > > On Wed, Sep 19, 2018 at 11:28 AM Geert Uytterhoeven > > wrote: > >> On Wed, Sep 19, 2018 at 11:22 AM Marek Vasut wrote: > >>> On 09/19/2018 11:13 AM, Simon Horman wrote: >

Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-19 Thread Marek Vasut
On 09/19/2018 11:30 AM, Geert Uytterhoeven wrote: > Hi Marek, > > On Wed, Sep 19, 2018 at 11:28 AM Geert Uytterhoeven > wrote: >> On Wed, Sep 19, 2018 at 11:22 AM Marek Vasut wrote: >>> On 09/19/2018 11:13 AM, Simon Horman wrote: Marek, these days checkpatch complains if the author of the

Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-19 Thread Geert Uytterhoeven
Hi Marek, On Wed, Sep 19, 2018 at 11:22 AM Marek Vasut wrote: > On 09/19/2018 11:13 AM, Simon Horman wrote: > > Marek, these days checkpatch complains if the author of the patch does not > > have a signed offline, and the inconsistency between your > > from and Sign-off the email address trips

Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-19 Thread Marek Vasut
On 09/19/2018 11:13 AM, Simon Horman wrote: > On Tue, Sep 18, 2018 at 02:52:53PM +0200, Geert Uytterhoeven wrote: >> On Tue, Sep 18, 2018 at 2:23 PM Marek Vasut wrote: >>> Rather than hard-coding the quirk topology, which stopped scaling, >>> parse the information from DT. The code looks for all

Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-19 Thread Simon Horman
On Tue, Sep 18, 2018 at 02:52:53PM +0200, Geert Uytterhoeven wrote: > On Tue, Sep 18, 2018 at 2:23 PM Marek Vasut wrote: > > 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 --

Re: [PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-18 Thread Geert Uytterhoeven
On Tue, Sep 18, 2018 at 2:23 PM Marek Vasut wrote: > 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

[PATCH V6] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-18 Thread Marek Vasut
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.