aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_sil24.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-05-15 07:57:47 -0400
committerTejun Heo <htejun@gmail.com>2006-05-15 07:57:47 -0400
commit81952c5497b40ae56835bd0d6537f8c6bdea07e7 (patch)
treefa2db695c56e481c271c7249197ad3b4a98b6087 /drivers/scsi/sata_sil24.c
parent34bf21704c848fe00c516d1c8f163db08b70b137 (diff)
[PATCH] libata: use new SCR and on/offline functions
Use new SCR and on/offline functions. Note that for LLDD which know it implements SCR callbacks, SCR functions are guaranteed to succeed and ata_port_online() == !ata_port_offline(). Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/sata_sil24.c')
-rw-r--r--drivers/scsi/sata_sil24.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c
index 45b9e37c191..bedc787dafd 100644
--- a/drivers/scsi/sata_sil24.c
+++ b/drivers/scsi/sata_sil24.c
@@ -464,7 +464,7 @@ static int sil24_softreset(struct ata_port *ap, unsigned int *class)
464 464
465 DPRINTK("ENTER\n"); 465 DPRINTK("ENTER\n");
466 466
467 if (!sata_dev_present(ap)) { 467 if (ata_port_offline(ap)) {
468 DPRINTK("PHY reports no device\n"); 468 DPRINTK("PHY reports no device\n");
469 *class = ATA_DEV_NONE; 469 *class = ATA_DEV_NONE;
470 goto out; 470 goto out;
@@ -531,7 +531,7 @@ static int sil24_hardreset(struct ata_port *ap, unsigned int *class)
531 sata_set_spd(ap); 531 sata_set_spd(ap);
532 532
533 tout_msec = 100; 533 tout_msec = 100;
534 if (sata_dev_present(ap)) 534 if (ata_port_online(ap))
535 tout_msec = 5000; 535 tout_msec = 5000;
536 536
537 writel(PORT_CS_DEV_RST, port + PORT_CTRL_STAT); 537 writel(PORT_CS_DEV_RST, port + PORT_CTRL_STAT);
@@ -544,7 +544,7 @@ static int sil24_hardreset(struct ata_port *ap, unsigned int *class)
544 msleep(100); 544 msleep(100);
545 545
546 if (tmp & PORT_CS_DEV_RST) { 546 if (tmp & PORT_CS_DEV_RST) {
547 if (!sata_dev_present(ap)) 547 if (ata_port_offline(ap))
548 return 0; 548 return 0;
549 reason = "link not ready"; 549 reason = "link not ready";
550 goto err; 550 goto err;