]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/libata-eh.c
Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb...
[karo-tx-linux.git] / drivers / ata / libata-eh.c
index 26598941e1b3a3e7a0830fc4db6518c32359e6a9..e60437cd0d192efeb68ffdb93c7e0fd0a0f62423 100644 (file)
@@ -2625,6 +2625,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
         */
        while (ata_eh_reset_timeouts[max_tries] != ULONG_MAX)
                max_tries++;
+       if (link->flags & ATA_LFLAG_RST_ONCE)
+               max_tries = 1;
        if (link->flags & ATA_LFLAG_NO_HRST)
                hardreset = NULL;
        if (link->flags & ATA_LFLAG_NO_SRST)