Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22810
b: refs/heads/master
c: 09c7ad7
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Mar 23, 2006
1 parent 3340807 commit 9859c87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c74ffd072fbe44b6039223982f2dc76840ac4f5
refs/heads/master: 09c7ad79dc62c499bb03d1ee92f838db2fc776c5
10 changes: 10 additions & 0 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,9 +2001,19 @@ static unsigned int ata_bus_softreset(struct ata_port *ap,
* status is checked. Because waiting for "a while" before
* checking status is fine, post SRST, we perform this magic
* delay here as well.
*
* Old drivers/ide uses the 2mS rule and then waits for ready
*/
msleep(150);


/* Before we perform post reset processing we want to see if
the bus shows 0xFF because the odd clown forgets the D7 pulldown
resistor */

if (ata_check_status(ap) == 0xFF)
return 1; /* Positive is failure for some reason */

ata_bus_post_reset(ap, devmask);

return 0;
Expand Down

0 comments on commit 9859c87

Please sign in to comment.