I2C support for IPMI

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

 



Hi Corey:

* Corey Minyard <cminyard at mvista.com> [2005-01-19 22:11:23 -0600]:
> Mark M. Hoffman wrote:
> 
> >
> >Well, wait_event_interruptible_timeout() schedules, so at a quick glance
> >this will not work for i2c-ibm_iic at least.  But more generally...
> > 
> >
> I think I got that one.  If you look at the function in the patch, I 
> made some changes to that.

I'm sorry but I don't see it.  All I see is that you modified the function
iic_wait_for_tc() to not schedule, but only if it's in polling mode.  The
interrupt mode code is unchanged.

> >I started to rewrite i2c-i801 [1] to use interrupts rather than pure
> >polling as it does now, so I'm interested to know: how can the panic-time
> >operation work for bus drivers that need interrupts?  
> > 
> >
> What I have done in the IPMI driver is when you wait for an operation, 
> if you are in a panic then call the interrupt handler continuously until 
> the operation completes.  Sort of like the network polling does.

So e.g. i2c-ibm_iic would need similar changes too, right?

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux