Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] Add intr_mask() / intr_unmask() interface to mask / unmask individual interrupt sources




> On Nov 30, 2019, at 2:06 PM, Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
> 
> On Sat, Nov 30, 2019 at 02:02:12PM -0800, Jason Thorpe wrote:
>> No, because the upcoming changes to the i2c layer would not allow for it. 
> 
> Ha, I didn't notice that. I have drivers in the arm world which use
> i2c from interrupt context too :(

You just need to be able to defer to the i2c work to a soft int, then you'll be fine.  If your interrupts are edge-sensitive, then this doesn't require any intr_mask / intr_unmask.

-- thorpej



Home | Main Index | Thread Index | Old Index