]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 16 Oct 2009 10:21:32 +0000 (06:21 -0400)
commit6489e3262e6b188a1a009b65e8a94b7aa17645b7
tree6d9e13bb5a57abd06b8373fc2dced674bed152a4
parent5deab536654f95345ea11e8ec6ed5c778df348b5
sata_nv: make sure link is brough up online when skipping hardreset

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
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_nv.c