On Wednesday, April 19, 2006 4:45 PM, James Bottomley wrote: > > I haven't followed all the paths, but I'm fairly certain > mptspi_ioc_reset can be invoked from interrupt context, can't it? In > which case it has to use spi_schedule_dv() to get the necessary user > context to perform the DV. > Yes, it appears that all calling functions of MptResetHandlers[], pass the sleepFlag. Therefore its a possibility that at some time it could be called at interrupt time, but mostly like not. Thanks for pointing out that. We need to quiese io before and after calling spi_schedule_dv(), therefore I prefer if we spawn a work thread from mptspi, then call mptspi_dv_device. Attached updated patch. Signed-off-by: Eric Moore <Eric.Moore@xxxxxxxx>
Attachment:
spi_dv_fix.patch
Description: spi_dv_fix.patch