]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sata_nv: make sure link is brough up online when skipping hardreset
authorTejun Heo <tj@kernel.org>
Wed, 14 Oct 2009 02:18:28 +0000 (11:18 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:21:48 +0000 (16:21 -0800)
commit7613217197c8927891e554c1734c1c417b22672b
tree987f82df8fb22142936fb8786803f047a2028431
parent32f4683db485b809264115327a2a34fe51d4e7ba
sata_nv: make sure link is brough up online when skipping hardreset

commit 6489e3262e6b188a1a009b65e8a94b7aa17645b7 upstream.

prereset doesn't bring link online if hardreset is about to happen and
nv_hardreset() may skip if conditions are not right so softreset may
be entered with non-working link status if the system firmware didn't
bring it up before entering OS code which can happen during resume.
This patch makes nv_hardreset() to bring up the link if it's skipping
reset.

This bug was reported by frodone@gmail.com in the following bug entry.

  http://bugzilla.kernel.org/show_bug.cgi?id=14329

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: frodone@gmail.com
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/sata_nv.c