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

Manuel Bouyer <[email protected]>
Newsgroups gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.ports.i386
Message-ID <[email protected]>
On Sat, Nov 30, 2019 at 02:14:50PM -0800, Jason Thorpe wrote:
> 
> 
> > On Nov 30, 2019, at 2:06 PM, Manuel Bouyer <[email protected]> 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 <[email protected]>
     NetBSD: 26 ans d'experience feront toujours la difference
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.