Port-amd64 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 Sat, Nov 30, 2019 at 02:14:50PM -0800, Jason Thorpe wrote:
> 
> 
> > 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.

I don't remmeber, I'll have to check this.
Anyway, adding intr_mask/intr_unmask to arm will be needed too (and it may be
easier than for xen ...)

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index