libata-eh.c (e199e6136ce6b151e6638ae93dca60748424d900) libata-eh.c (e2f3d75fc0e4a0d03c61872bad39ffa2e74a04ff)
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>

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

3230 struct ata_port *ap = link->ap;
3231 struct ata_eh_context *ehc = &link->eh_context;
3232 struct ata_device *dev;
3233
3234 /* skip disabled links */
3235 if (link->flags & ATA_LFLAG_DISABLED)
3236 return 1;
3237
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>

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

3230 struct ata_port *ap = link->ap;
3231 struct ata_eh_context *ehc = &link->eh_context;
3232 struct ata_device *dev;
3233
3234 /* skip disabled links */
3235 if (link->flags & ATA_LFLAG_DISABLED)
3236 return 1;
3237
3238 /* skip if explicitly requested */
3239 if (ehc->i.flags & ATA_EHI_NO_RECOVERY)
3240 return 1;
3241
3238 /* thaw frozen port and recover failed devices */
3239 if ((ap->pflags & ATA_PFLAG_FROZEN) || ata_link_nr_enabled(link))
3240 return 0;
3241
3242 /* reset at least once if reset is requested */
3243 if ((ehc->i.action & ATA_EH_RESET) &&
3244 !(ehc->i.flags & ATA_EHI_DID_RESET))
3245 return 0;

--- 562 unchanged lines hidden ---
3242 /* thaw frozen port and recover failed devices */
3243 if ((ap->pflags & ATA_PFLAG_FROZEN) || ata_link_nr_enabled(link))
3244 return 0;
3245
3246 /* reset at least once if reset is requested */
3247 if ((ehc->i.action & ATA_EH_RESET) &&
3248 !(ehc->i.flags & ATA_EHI_DID_RESET))
3249 return 0;

--- 562 unchanged lines hidden ---