libata-eh.c (2695e36616c3ece5e8e30666868fc7c90dc3fc75) libata-eh.c (4ccd3329a2e51473a86547a55f9e5f98f8f65b33)
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>

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

2162 * drives from sleeping mode.
2163 */
2164 dev->pio_mode = XFER_PIO_0;
2165 dev->flags &= ~ATA_DFLAG_SLEEPING;
2166
2167 if (ata_link_offline(link))
2168 continue;
2169
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>

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

2162 * drives from sleeping mode.
2163 */
2164 dev->pio_mode = XFER_PIO_0;
2165 dev->flags &= ~ATA_DFLAG_SLEEPING;
2166
2167 if (ata_link_offline(link))
2168 continue;
2169
2170 /* apply class override and convert UNKNOWN to NONE */
2170 /* apply class override */
2171 if (lflags & ATA_LFLAG_ASSUME_ATA)
2172 classes[dev->devno] = ATA_DEV_ATA;
2173 else if (lflags & ATA_LFLAG_ASSUME_SEMB)
2174 classes[dev->devno] = ATA_DEV_SEMB_UNSUP; /* not yet */
2171 if (lflags & ATA_LFLAG_ASSUME_ATA)
2172 classes[dev->devno] = ATA_DEV_ATA;
2173 else if (lflags & ATA_LFLAG_ASSUME_SEMB)
2174 classes[dev->devno] = ATA_DEV_SEMB_UNSUP; /* not yet */
2175 else if (classes[dev->devno] == ATA_DEV_UNKNOWN)
2176 classes[dev->devno] = ATA_DEV_NONE;
2177 }
2178
2179 /* record current link speed */
2180 if (sata_scr_read(link, SCR_STATUS, &sstatus) == 0)
2181 link->sata_spd = (sstatus >> 4) & 0xf;
2182
2183 if (postreset)
2184 postreset(link, classes);

--- 628 unchanged lines hidden ---
2175 }
2176
2177 /* record current link speed */
2178 if (sata_scr_read(link, SCR_STATUS, &sstatus) == 0)
2179 link->sata_spd = (sstatus >> 4) & 0xf;
2180
2181 if (postreset)
2182 postreset(link, classes);

--- 628 unchanged lines hidden ---