Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-28 Thread Bjorn Andersson
On Tue, Oct 28, 2014 at 9:05 AM, Marc Zyngier wrote: > On 28/10/14 15:41, Bjorn Andersson wrote: >> On Sat, Oct 25, 2014 at 2:22 AM, Marc Zyngier wrote: [..] >> In the Qualcomm pmic we have two interrupt status registers >> "interrupt" and "real-time". I think the "interrupt" status register >> w

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-28 Thread Marc Zyngier
On 28/10/14 15:41, Bjorn Andersson wrote: > On Sat, Oct 25, 2014 at 2:22 AM, Marc Zyngier wrote: >> On Sat, Oct 25 2014 at 12:12:55 am BST, Bjorn Andersson >> wrote: >>> On Fri, Oct 24, 2014 at 10:59 AM, Marc Zyngier wrote: I just pushed out a branch: git://git.kernel.org/pub/scm/linu

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-28 Thread Bjorn Andersson
On Sat, Oct 25, 2014 at 2:22 AM, Marc Zyngier wrote: > On Sat, Oct 25 2014 at 12:12:55 am BST, Bjorn Andersson wrote: >> On Fri, Oct 24, 2014 at 10:59 AM, Marc Zyngier wrote: >>> I just pushed out a branch: >>> git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git >>> irq/irqchip_s

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-27 Thread Stephen Boyd
On 10/25/2014 01:34 AM, Thomas Gleixner wrote: > On Fri, 24 Oct 2014, Stephen Boyd wrote: > >> On 10/24/2014 10:59 AM, Marc Zyngier wrote: >>> Hi Bjorn, >>> >>> On 24/10/14 18:31, Bjorn Andersson wrote: Stephen Boyd talked about the need to be able to mask/unmask interrupts from cli

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-25 Thread Marc Zyngier
On Sat, Oct 25 2014 at 12:12:55 am BST, Bjorn Andersson wrote: > On Fri, Oct 24, 2014 at 10:59 AM, Marc Zyngier wrote: >> I just pushed out a branch: >> git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git >> irq/irqchip_state >> >> Please let me know if that's useful for you. >> >

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-25 Thread Thomas Gleixner
On Fri, 24 Oct 2014, Stephen Boyd wrote: > On 10/24/2014 10:59 AM, Marc Zyngier wrote: > > Hi Bjorn, > > > > On 24/10/14 18:31, Bjorn Andersson wrote: > >> > >> Stephen Boyd talked about the need to be able to mask/unmask interrupts > >> from > >> client code in the Qualcomm platform as well - mo

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-24 Thread Bjorn Andersson
On Fri, Oct 24, 2014 at 10:59 AM, Marc Zyngier wrote: > Hi Bjorn, > > On 24/10/14 18:31, Bjorn Andersson wrote: >> On Tue, Oct 21, 2014 at 2:34 AM, Marc Zyngier wrote: [..] >> I would prefer to see that you had explicit functions for the various things >> that you would like to set and get. It wo

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-24 Thread Stephen Boyd
On 10/24/2014 10:59 AM, Marc Zyngier wrote: > Hi Bjorn, > > On 24/10/14 18:31, Bjorn Andersson wrote: >> >> Stephen Boyd talked about the need to be able to mask/unmask interrupts from >> client code in the Qualcomm platform as well - most likely to block wakeup >> sources(?) > What's wrong with ir

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-24 Thread Marc Zyngier
Hi Bjorn, On 24/10/14 18:31, Bjorn Andersson wrote: > On Tue, Oct 21, 2014 at 2:34 AM, Marc Zyngier wrote: >> Hi all, >> >> On 21/10/14 10:22, Thomas Gleixner wrote: >>> On Thu, 4 Sep 2014, Bjorn Andersson wrote: >>> On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson wrote: > Introdu

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-24 Thread Bjorn Andersson
On Tue, Oct 21, 2014 at 2:34 AM, Marc Zyngier wrote: > Hi all, > > On 21/10/14 10:22, Thomas Gleixner wrote: >> On Thu, 4 Sep 2014, Bjorn Andersson wrote: >> >>> On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson >>> wrote: Introduce the irq_read_line() function to allow device drivers to read

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-21 Thread Feng Kan
On Tue, Oct 21, 2014 at 2:30 AM, Arnd Bergmann wrote: > On Tuesday 21 October 2014 11:22:40 Thomas Gleixner wrote: >> On Thu, 4 Sep 2014, Bjorn Andersson wrote: >> >> > On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson >> > wrote: >> > > Introduce the irq_read_line() function to allow device drive

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-21 Thread Marc Zyngier
Hi all, On 21/10/14 10:22, Thomas Gleixner wrote: > On Thu, 4 Sep 2014, Bjorn Andersson wrote: > >> On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson >> wrote: >>> Introduce the irq_read_line() function to allow device drivers to read >>> the current logical state of an input when the hardware on

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-21 Thread Arnd Bergmann
On Tuesday 21 October 2014 11:22:40 Thomas Gleixner wrote: > On Thu, 4 Sep 2014, Bjorn Andersson wrote: > > > On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson > > wrote: > > > Introduce the irq_read_line() function to allow device drivers to read > > > the current logical state of an input when t

Re: [PATCH] genirq: Introduce irq_read_line()

2014-10-21 Thread Thomas Gleixner
On Thu, 4 Sep 2014, Bjorn Andersson wrote: > On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson > wrote: > > Introduce the irq_read_line() function to allow device drivers to read > > the current logical state of an input when the hardware only exposes > > this through status bits in the interrupt

Re: [PATCH] genirq: Introduce irq_read_line()

2014-09-04 Thread Bjorn Andersson
On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson wrote: > Introduce the irq_read_line() function to allow device drivers to read > the current logical state of an input when the hardware only exposes > this through status bits in the interrupt controller. > > The new function is backed by a new ca

[PATCH] genirq: Introduce irq_read_line()

2014-08-19 Thread Bjorn Andersson
Introduce the irq_read_line() function to allow device drivers to read the current logical state of an input when the hardware only exposes this through status bits in the interrupt controller. The new function is backed by a new callback function in the irq_chip - irq_read_line() - that can be im