Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-28 Thread Linus Walleij
On Tue, Mar 21, 2017 at 11:43 PM, Julia Cartwright wrote: > The 104-idi-48 gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. B

Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-28 Thread William Breathitt Gray
On Tue, Mar 28, 2017 at 11:11:59AM +0200, Linus Walleij wrote: >On Wed, Mar 22, 2017 at 1:44 PM, William Breathitt Gray > wrote: >> On Tue, Mar 21, 2017 at 05:43:07PM -0500, Julia Cartwright wrote: >>>The 104-idi-48 gpio driver currently implements an irq_chip for handling >>>interrupts; due to how

Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-28 Thread Linus Walleij
On Wed, Mar 22, 2017 at 1:44 PM, William Breathitt Gray wrote: > On Tue, Mar 21, 2017 at 05:43:07PM -0500, Julia Cartwright wrote: >>The 104-idi-48 gpio driver currently implements an irq_chip for handling >>interrupts; due to how irq_chip handling is done, it's necessary for the >>irq_chip method

Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-22 Thread Julia Cartwright
On Wed, Mar 22, 2017 at 08:44:14AM -0400, William Breathitt Gray wrote: > On Tue, Mar 21, 2017 at 05:43:07PM -0500, Julia Cartwright wrote: > >The 104-idi-48 gpio driver currently implements an irq_chip for handling > >interrupts; due to how irq_chip handling is done, it's necessary for the > >irq_

Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-22 Thread William Breathitt Gray
On Tue, Mar 21, 2017 at 05:43:07PM -0500, Julia Cartwright wrote: >The 104-idi-48 gpio driver currently implements an irq_chip for handling >interrupts; due to how irq_chip handling is done, it's necessary for the >irq_chip methods to be invoked from hardirq context, even on a a >real-time kernel.

[PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-21 Thread Julia Cartwright
The 104-idi-48 gpio driver currently implements an irq_chip for handling interrupts; due to how irq_chip handling is done, it's necessary for the irq_chip methods to be invoked from hardirq context, even on a a real-time kernel. Because the spinlock_t type becomes a "sleeping" spinlock w/ RT kerne