> >On the Lombard, the ADB devices are apparently reprobed and reset before > >pmud restores the device state. If BenH is doing something differently on > >the iBook that prevents pmud from finding the device after sleep we'd > >better save the device state in the kernel and restore it there to be > >safe. > > My recent kernels made ADB probing asynchronous. Not yet merged in the > main tree but it will definitely kill the pmud script. I guess proper
This isn't about the script but the trackpad save/restore code inside pmud. Anyway, blocking the read or returning -EAGAIN while the device is unavaliable is something we need anyway IMNSHO. > management of the trackpad should be done in the kernel driver (and I > may have other reasons for that, I'm not sure it's always safe to read > the trackpad registers, looks like this would explain the old problem You mean they made a device that works just like a regular ADB device but can't be read from at all times? Hard to believe even for Apple. Caching ADB registers inside the kernel - will that work with /dev/adb access or just ioctls? Michael