Skip to content
  • Tejun Heo's avatar
    libata: don't set IORDY for reset · 0d9e6659
    Tejun Heo authored
    
    
    Before issuing reset, libata configures xfermode to PIO0 which makes
    some drivers turn on IORDY which may cause the controller to lock up
    if the port is not occupied.  IORDY isn't necessary at this point
    anyway.  Make ata_pio_need_iordy() return zero if it's being called
    for reset.
    
    This fixes bko#11703.  Reported and tracked down by Daniel Gnoutcheff
    and Constantine Gavrilov.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reported-by: default avatarDaniel Gnoutcheff <gnoutchd@union.edu>
    Cc: Constantine Gavrilov <constantine.gavrilov@gmail.com>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    0d9e6659