powerbook hang from post-sleep cdrom access - fix
Benjamin Herrenschmidt
bh40 at calva.net
Thu Jul 27 20:36:11 EST 2000
>
>Should be called from the IDE notify chain perhaps. See the last function
>in ide-pmac().
Yep, this should be done juste before the pmac_ide_dma_onoff() call in
ide-pmac.c/idepmac_notify_sleep(). It should be done regardless of the
disk beeing in a bay or not since new machines will ultimately support
sleep on desktop boxes too. Something like
switch(drive->media) {
case ide_disk:
// spin up the disk
break;
case ide_cdrom:
// do whatever you need here
break;
case ide_floppy:
// do whatever you need here
break;
}
Note that at his point, IDE interrupts have been re-enabled, so we should
be careful about the way the IDE layer is called from here.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list