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

2018-06-13 Thread Marek Vasut
On 06/13/2018 01:28 PM, Geert Uytterhoeven wrote: > Hi Marek, Hi, [...] But wait, since we control which machines this code runs on , can't we assure they have valid DTs ? This situation with invalid DT starts to look a bit hypothetical to me. >>> >>> That assumes you keep the

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

2018-06-11 Thread Marek Vasut
On 06/11/2018 04:30 PM, Geert Uytterhoeven wrote: > Hi Marek, > > On Mon, Jun 11, 2018 at 4:19 PM Marek Vasut wrote: >> On 06/11/2018 04:10 PM, Geert Uytterhoeven wrote: >>> On Mon, Jun 11, 2018 at 4:04 PM Marek Vasut wrote: On 06/11/2018 03:49 PM, Geert Uytterhoeven wrote: > On Mon,

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

2018-06-11 Thread Geert Uytterhoeven
Hi Marek, On Mon, Jun 11, 2018 at 4:19 PM Marek Vasut wrote: > On 06/11/2018 04:10 PM, Geert Uytterhoeven wrote: > > On Mon, Jun 11, 2018 at 4:04 PM Marek Vasut wrote: > >> On 06/11/2018 03:49 PM, Geert Uytterhoeven wrote: > >>> On Mon, Jun 11, 2018 at 3:39 PM Marek Vasut wrote: > On

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

2018-06-11 Thread Geert Uytterhoeven
Hi Marek, On Mon, Jun 11, 2018 at 4:04 PM Marek Vasut wrote: > On 06/11/2018 03:49 PM, Geert Uytterhoeven wrote: > > On Mon, Jun 11, 2018 at 3:39 PM Marek Vasut wrote: > >> On 06/11/2018 03:03 PM, Geert Uytterhoeven wrote: > >>> On Mon, Jun 11, 2018 at 2:15 PM Marek Vasut wrote: > On

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

2018-06-11 Thread Marek Vasut
On 06/11/2018 03:49 PM, Geert Uytterhoeven wrote: > Hi Marek, Hi, > On Mon, Jun 11, 2018 at 3:39 PM Marek Vasut wrote: >> On 06/11/2018 03:03 PM, Geert Uytterhoeven wrote: >>> On Mon, Jun 11, 2018 at 2:15 PM Marek Vasut wrote: On 06/11/2018 11:56 AM, Geert Uytterhoeven wrote: > On

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

2018-06-11 Thread Geert Uytterhoeven
Hi Marek, On Mon, Jun 11, 2018 at 3:39 PM Marek Vasut wrote: > On 06/11/2018 03:03 PM, Geert Uytterhoeven wrote: > > On Mon, Jun 11, 2018 at 2:15 PM Marek Vasut wrote: > >> On 06/11/2018 11:56 AM, Geert Uytterhoeven wrote: > >>> On Mon, Jun 4, 2018 at 7:59 PM Marek Vasut wrote: > Rather

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

2018-06-11 Thread Marek Vasut
On 06/11/2018 03:03 PM, Geert Uytterhoeven wrote: > Hi Marek, Hi, > On Mon, Jun 11, 2018 at 2:15 PM Marek Vasut wrote: >> On 06/11/2018 11:56 AM, Geert Uytterhoeven wrote: >>> On Mon, Jun 4, 2018 at 7:59 PM Marek Vasut wrote: Rather than hard-coding the quirk topology, which stopped

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

2018-06-11 Thread Geert Uytterhoeven
Hi Marek, On Mon, Jun 11, 2018 at 2:15 PM Marek Vasut wrote: > On 06/11/2018 11:56 AM, Geert Uytterhoeven wrote: > > On Mon, Jun 4, 2018 at 7:59 PM Marek Vasut wrote: > >> Rather than hard-coding the quirk topology, which stopped scaling, > >> parse the information from DT. The code looks for

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

2018-06-11 Thread Marek Vasut
On 06/11/2018 11:56 AM, Geert Uytterhoeven wrote: > Hi Marek, Hi, > On Mon, Jun 4, 2018 at 7:59 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 -- da9036 and da9210 -- and

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

2018-06-11 Thread Geert Uytterhoeven
Hi Marek, On Mon, Jun 4, 2018 at 7:59 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 -- da9036 and da9210 -- and checks if their IRQ line is tied da9063 > to the same pin. If

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

2018-06-05 Thread Marek Vasut
On 06/05/2018 10:07 AM, Simon Horman wrote: > On Mon, Jun 04, 2018 at 07:59:11PM +0200, 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 -- da9036 and da9210 -- and checks if their

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

2018-06-05 Thread Marek Vasut
On 06/05/2018 11:21 AM, Wolfram Sang wrote: > Hi Marek, > > On Tue, Jun 05, 2018 at 10:07:28AM +0200, Simon Horman wrote: >> On Mon, Jun 04, 2018 at 07:59:11PM +0200, Marek Vasut wrote: >>> Rather than hard-coding the quirk topology, which stopped scaling, >>> parse the information from DT. The

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

2018-06-05 Thread Wolfram Sang
Hi Marek, On Tue, Jun 05, 2018 at 10:07:28AM +0200, Simon Horman wrote: > On Mon, Jun 04, 2018 at 07:59:11PM +0200, 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 -- da9036

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

2018-06-05 Thread Simon Horman
On Mon, Jun 04, 2018 at 07:59:11PM +0200, 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 -- da9036 and da9210 -- and checks if their IRQ line is tied > to the same pin. If so, the

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

2018-06-04 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 -- da9036 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.