How so? Can you give me an example?
Interesting. I assume this is for buses for which there is a
bus-specific but device-independent suspend procedure defined.
It would seem sensible to me that the PM core should get the bus to
resume such a device before calling a driver probe routine. The
resume should be blocked or deferred while a system suspend is
underway. In fact I think that all driver bind/unbind and probe
operations should be deferred while the system is suspending (i.e. put
on a list to be done after the system resumes).
I didn't think sysfs got involved at all in normal read and write
requests, so I don't know how it would block them...
Normally devices have some sort of queue of pending operations. So
all that is required on suspend is to stop processing the queue and
wait for any currently-underway operations to complete. The blocking
then happens naturally using the normal I/O wait mechanisms.
Paul.
-