libata-eh.c (4fb4615bc9465e7098665fa9616b6ac1f495f895) libata-eh.c (ca77329fb713b7fea6a307068e0dd0248e7aa640)
1/*
2 * libata-eh.c - libata error handling
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2006 Tejun Heo <htejun@gmail.com>

--- 2614 unchanged lines hidden (view full) ---

2623 /* configure transfer mode if necessary */
2624 if (ehc->i.flags & ATA_EHI_SETMODE) {
2625 rc = ata_set_mode(link, &dev);
2626 if (rc)
2627 goto dev_fail;
2628 ehc->i.flags &= ~ATA_EHI_SETMODE;
2629 }
2630
1/*
2 * libata-eh.c - libata error handling
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2006 Tejun Heo <htejun@gmail.com>

--- 2614 unchanged lines hidden (view full) ---

2623 /* configure transfer mode if necessary */
2624 if (ehc->i.flags & ATA_EHI_SETMODE) {
2625 rc = ata_set_mode(link, &dev);
2626 if (rc)
2627 goto dev_fail;
2628 ehc->i.flags &= ~ATA_EHI_SETMODE;
2629 }
2630
2631 if (ehc->i.action & ATA_EHI_LPM)
2632 ata_link_for_each_dev(dev, link)
2633 ata_dev_enable_pm(dev, ap->pm_policy);
2634
2631 /* this link is okay now */
2632 ehc->i.flags = 0;
2633 continue;
2634
2635dev_fail:
2636 nr_failed_devs++;
2637 if (ata_eh_handle_dev_fail(dev, rc))
2638 nr_disabled_devs++;

--- 209 unchanged lines hidden ---
2635 /* this link is okay now */
2636 ehc->i.flags = 0;
2637 continue;
2638
2639dev_fail:
2640 nr_failed_devs++;
2641 if (ata_eh_handle_dev_fail(dev, rc))
2642 nr_disabled_devs++;

--- 209 unchanged lines hidden ---