diff options
author | Mikael Pettersson <mikpe@it.uu.se> | 2007-03-11 16:19:27 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:15:59 -0400 |
commit | 799331fda03f969b781553b786f38b83ec3bb608 (patch) | |
tree | b6ed373e9e45991540969972d82dccdd91ac0f75 /drivers | |
parent | 8cdfb29c0cd8018f92214c11c631d8926f4cb032 (diff) |
sata_promise: add missing cable_detect hooks
The recent change which moved cable detection from
pdc_pre_reset() to the new ->cable_detect hook only
added the hook for SATAII chips, leaving SATAI chips
and the 20619 without the hook. Fixed by this patch.
Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/sata_promise.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 78df5464e015..04287c80d8e9 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #include "sata_promise.h" | 45 | #include "sata_promise.h" |
46 | 46 | ||
47 | #define DRV_NAME "sata_promise" | 47 | #define DRV_NAME "sata_promise" |
48 | #define DRV_VERSION "2.01" | 48 | #define DRV_VERSION "2.02" |
49 | 49 | ||
50 | 50 | ||
51 | enum { | 51 | enum { |
@@ -194,6 +194,7 @@ static const struct ata_port_operations pdc_old_sata_ops = { | |||
194 | .thaw = pdc_thaw, | 194 | .thaw = pdc_thaw, |
195 | .error_handler = pdc_error_handler, | 195 | .error_handler = pdc_error_handler, |
196 | .post_internal_cmd = pdc_post_internal_cmd, | 196 | .post_internal_cmd = pdc_post_internal_cmd, |
197 | .cable_detect = pdc_cable_detect, | ||
197 | .data_xfer = ata_data_xfer, | 198 | .data_xfer = ata_data_xfer, |
198 | .irq_handler = pdc_interrupt, | 199 | .irq_handler = pdc_interrupt, |
199 | .irq_clear = pdc_irq_clear, | 200 | .irq_clear = pdc_irq_clear, |
@@ -220,6 +221,7 @@ static const struct ata_port_operations pdc_pata_ops = { | |||
220 | .thaw = pdc_thaw, | 221 | .thaw = pdc_thaw, |
221 | .error_handler = pdc_error_handler, | 222 | .error_handler = pdc_error_handler, |
222 | .post_internal_cmd = pdc_post_internal_cmd, | 223 | .post_internal_cmd = pdc_post_internal_cmd, |
224 | .cable_detect = pdc_cable_detect, | ||
223 | .data_xfer = ata_data_xfer, | 225 | .data_xfer = ata_data_xfer, |
224 | .irq_handler = pdc_interrupt, | 226 | .irq_handler = pdc_interrupt, |
225 | .irq_clear = pdc_irq_clear, | 227 | .irq_clear = pdc_irq_clear, |