diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-10-03 13:23:18 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:45 -0400 |
commit | 681c80b5d96076f447e8101ac4325c82d8dce508 (patch) | |
tree | 82cbcc887b5bbdd7c4ed48f38a3e97762cac98db /drivers/ata/pdc_adma.c | |
parent | 237d8440cb2b104a3b97fc971a9bce67960bb616 (diff) |
libata: correct handling of SRST reset sequences
Correct handling of SRST reset sequences. After an SRST it is undefined
whether the drive has gone back to PIO0. In order to talk safely we should
talk slowly and carefully until we know.
Thus when we do the reset if the controller has a pio setup method we call it
to flip back to PIO 0 and a known state. After the reset completes the
identify will then be done at the safe speed and the drive/controller will
pick suitable faster modes and reconfigure the controller to these timings.
As a side effect it means we force the controller to PIO 0 as we bring it up
which fixes funnies on a few systems where the BIOS firmware leaves us in an
interesting choice of modes, or embedded boxes with no firmware which come up
in random states.
For smart controllers there is nothing to do - they know about this
internally.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pdc_adma.c')
0 files changed, 0 insertions, 0 deletions