Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29216
b: refs/heads/master
c: 852ee16
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 1, 2006
1 parent eeb6a0b commit 51e5b4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e82cbdb9a3791f781462c9d00e3486e8fb7e58a8
refs/heads/master: 852ee16a914fb3ada2f81e222677c04defc2f15f
12 changes: 9 additions & 3 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2132,9 +2132,11 @@ void ata_bus_reset(struct ata_port *ap)
static int sata_phy_resume(struct ata_port *ap)
{
unsigned long timeout = jiffies + (HZ * 5);
u32 sstatus;
u32 scontrol, sstatus;

scr_write_flush(ap, SCR_CONTROL, 0x300);
scontrol = scr_read(ap, SCR_CONTROL);
scontrol = (scontrol & 0x0f0) | 0x300;
scr_write_flush(ap, SCR_CONTROL, scontrol);

/* Wait for phy to become ready, if necessary. */
do {
Expand Down Expand Up @@ -2247,10 +2249,14 @@ int ata_std_softreset(struct ata_port *ap, int verbose, unsigned int *classes)
*/
int sata_std_hardreset(struct ata_port *ap, int verbose, unsigned int *class)
{
u32 scontrol;

DPRINTK("ENTER\n");

/* Issue phy wake/reset */
scr_write_flush(ap, SCR_CONTROL, 0x301);
scontrol = scr_read(ap, SCR_CONTROL);
scontrol = (scontrol & 0x0f0) | 0x301;
scr_write_flush(ap, SCR_CONTROL, scontrol);

/*
* Couldn't find anything in SATA I/II specs, but AHCI-1.1
Expand Down

0 comments on commit 51e5b4b

Please sign in to comment.