Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144847
b: refs/heads/master
c: 6f9c1ea
h: refs/heads/master
i:
  144845: 288e04f
  144843: 35fef43
  144839: 5d636aa
  144831: ddaa80f
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed May 11, 2009
1 parent e27d3c7 commit fa0774a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 6ad58b245a543461bd55d51b8303f555419687b2
refs/heads/master: 6f9c1ea2c1cea2de3e5670a7cd98d9f7316b0952
13 changes: 13 additions & 0 deletions trunk/drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -3507,6 +3507,8 @@ static void ata_eh_handle_port_suspend(struct ata_port *ap)
*/
static void ata_eh_handle_port_resume(struct ata_port *ap)
{
struct ata_link *link;
struct ata_device *dev;
unsigned long flags;
int rc = 0;

Expand All @@ -3521,6 +3523,17 @@ static void ata_eh_handle_port_resume(struct ata_port *ap)

WARN_ON(!(ap->pflags & ATA_PFLAG_SUSPENDED));

/*
* Error timestamps are in jiffies which doesn't run while
* suspended and PHY events during resume isn't too uncommon.
* When the two are combined, it can lead to unnecessary speed
* downs if the machine is suspended and resumed repeatedly.
* Clear error history.
*/
ata_for_each_link(link, ap, HOST_FIRST)
ata_for_each_dev(dev, link, ALL)
ata_ering_clear(&dev->ering);

ata_acpi_set_state(ap, PMSG_ON);

if (ap->ops->port_resume)
Expand Down

0 comments on commit fa0774a

Please sign in to comment.