[PATCH v2 1/3] drivers/fsi: Add slave interrupt polling

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Feb 4 07:33:46 AEDT 2017


On Fri, 2017-02-03 at 10:18 -0600, eajames wrote:
> The problem here is that there is no hardware irq. FSI is using GPIO 
> lines to access slave registers. The only indication that we have an 
> interrupt is a bit set in the "slave interrupt status register". So
> we 
> have to poll that register and handle the results. I'm not aware of
> any 
> way to turn that into a kernel irq and use the existing kernel 
> framework. But if it can be done, agreed, we should implement that!

The existing kernel i2c framework doesn't require IRQs.

You can poll, which sucks, but you can. With delays of course.

Also, if you know your i2c bit freq, you can always use a timer.

Cheers,
Ben.




More information about the openbmc mailing list