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

Jason Thorpe <[email protected]>
Newsgroups gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.ports.i386
Message-ID <[email protected]>

> 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.

-- thorpej
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.