On Thu, 2009-11-19 at 07:49 -0800, Chuck Tuffli wrote: > > No, you can't assume that right now, unfortunately. We've been wanting > > to implement a flush_tx() callback for a long time now but nobody did so > > far. Some drivers might flush in the pre_scan() callback, but I think > > that isn't actually correct because the nullfunc frame we might send > > might pass other frames on the hw queues/fifos. > > OK. I agree that flushing isn't ideal, so the alternative is for > someone to wait until IO finishes. I think we should actually flush the queues. > Can the driver sleep until it is ready to scan (I'm guessing no)? Yes, pre_scan() can sleep, and a flush() callback would also be able to sleep. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part