sata_via.c (f632265d0ffb5acf331252d98c64939849d96bb2) sata_via.c (97750cebb3000a9cc08f8ce8dc8c7143be7d7201)
1/*
2 * sata_via.c - VIA Serial ATA controllers
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2003-2004 Red Hat, Inc. All rights reserved.

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

344 goto skip_scr;
345
346 /* Resume phy. This is the old SATA resume sequence */
347 svia_scr_write(link, SCR_CONTROL, 0x300);
348 svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */
349
350 /* wait for phy to become ready, if necessary */
351 do {
1/*
2 * sata_via.c - VIA Serial ATA controllers
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2003-2004 Red Hat, Inc. All rights reserved.

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

344 goto skip_scr;
345
346 /* Resume phy. This is the old SATA resume sequence */
347 svia_scr_write(link, SCR_CONTROL, 0x300);
348 svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */
349
350 /* wait for phy to become ready, if necessary */
351 do {
352 msleep(200);
352 ata_msleep(link->ap, 200);
353 svia_scr_read(link, SCR_STATUS, &sstatus);
354 if ((sstatus & 0xf) != 1)
355 break;
356 } while (time_before(jiffies, timeout));
357
358 /* open code sata_print_link_status() */
359 svia_scr_read(link, SCR_STATUS, &sstatus);
360 svia_scr_read(link, SCR_CONTROL, &scontrol);

--- 313 unchanged lines hidden ---
353 svia_scr_read(link, SCR_STATUS, &sstatus);
354 if ((sstatus & 0xf) != 1)
355 break;
356 } while (time_before(jiffies, timeout));
357
358 /* open code sata_print_link_status() */
359 svia_scr_read(link, SCR_STATUS, &sstatus);
360 svia_scr_read(link, SCR_CONTROL, &scontrol);

--- 313 unchanged lines hidden ---