]> git.baikalelectronics.ru Git - kernel.git/commit
sata_nv: reinstate nv_hardreset() for non generic controllers
authorTejun Heo <tj@kernel.org>
Sat, 27 Sep 2008 22:39:01 +0000 (07:39 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 29 Sep 2008 04:14:34 +0000 (00:14 -0400)
commitdb71303497598de1dd00010700a7e97d43fdd63c
treefbf71c285e390dcc714f633d00000f6792aeb681
parentda811e1133952c637e5da2ecb2b2262445ed0549
sata_nv: reinstate nv_hardreset() for non generic controllers

Commit 29952ca7b14dccbbface603f93241ddbffc1bb1d which tried to remove
hardreset for generic accidentally removed it for all flavors as all
others were inheriting from nv_generic_ops.  This patch reinstates
nv_hardreset() and puts it into nv_common_ops which all flavors
inherit from.  nv_generic_ops now inherits from nv_common_ops and
overrides .hardreset to ATA_OP_NULL.

While at it, explain why nv_hardreset and ATA_OP_NULL override are
necessary.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_nv.c