diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-29 13:48:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-29 13:48:21 -0400 |
commit | f73b0a08eae0e28c50db5dd5ab8245546918bfb6 (patch) | |
tree | eddc8c063acc7c70a975a0dadf26655159704b22 /drivers/ata/pata_sil680.c | |
parent | 6b06d2cc6d52830e3e0c001006b26255f47184dd (diff) | |
parent | 225036314e768bbfe8331ea9b0e91ca101afe427 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: (86 commits)
SPIN_LOCK_UNLOCKED cleanup in drivers/ata/pata_winbond.c
drivers/ata/pata_cmd640.c: fix build with CONFIG_PM=n
pata_hpt37x: Further small fixes
pata_hpt3x2n: Add HPT371N support and other bits
ata: printk warning fixes
libata: separate ATA_EHI_DID_RESET into DID_SOFTRESET and DID_HARDRESET
ahci: consolidate common port flags
ata_timing: ensure t->cycle is always correct
libata: add missing call to ->cable_detect() in new EH path
pata_amd: remove contamination added during cable_detect conversion
libata: Handle drives that require a spin-up command before first access
libata: HPA support
libata: kill probe_ent and related helpers
libata: convert the remaining PATA drivers to new init model
libata: convert the remaining SATA drivers to new init model
libata: convert ata_pci_init_native_mode() users to new init model
libata: convert drivers with combined SATA/PATA ports to new init model
libata: add init helpers including ata_pci_prepare_native_host()
libata: convert native PCI host handling to new init model
libata: convert legacy PCI host handling to new init model
...
Diffstat (limited to 'drivers/ata/pata_sil680.c')
-rw-r--r-- | drivers/ata/pata_sil680.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index dab2889a556f..6770820cfca9 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/libata.h> | 33 | #include <linux/libata.h> |
34 | 34 | ||
35 | #define DRV_NAME "pata_sil680" | 35 | #define DRV_NAME "pata_sil680" |
36 | #define DRV_VERSION "0.4.5" | 36 | #define DRV_VERSION "0.4.6" |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * sil680_selreg - return register base | 39 | * sil680_selreg - return register base |
@@ -91,12 +91,6 @@ static int sil680_cable_detect(struct ata_port *ap) { | |||
91 | return ATA_CBL_PATA40; | 91 | return ATA_CBL_PATA40; |
92 | } | 92 | } |
93 | 93 | ||
94 | static int sil680_pre_reset(struct ata_port *ap) | ||
95 | { | ||
96 | ap->cbl = sil680_cable_detect(ap); | ||
97 | return ata_std_prereset(ap); | ||
98 | } | ||
99 | |||
100 | /** | 94 | /** |
101 | * sil680_bus_reset - reset the SIL680 bus | 95 | * sil680_bus_reset - reset the SIL680 bus |
102 | * @ap: ATA port to reset | 96 | * @ap: ATA port to reset |
@@ -119,7 +113,7 @@ static int sil680_bus_reset(struct ata_port *ap,unsigned int *classes) | |||
119 | 113 | ||
120 | static void sil680_error_handler(struct ata_port *ap) | 114 | static void sil680_error_handler(struct ata_port *ap) |
121 | { | 115 | { |
122 | ata_bmdma_drive_eh(ap, sil680_pre_reset, sil680_bus_reset, NULL, ata_std_postreset); | 116 | ata_bmdma_drive_eh(ap, ata_std_prereset, sil680_bus_reset, NULL, ata_std_postreset); |
123 | } | 117 | } |
124 | 118 | ||
125 | /** | 119 | /** |
@@ -257,6 +251,7 @@ static struct ata_port_operations sil680_port_ops = { | |||
257 | .thaw = ata_bmdma_thaw, | 251 | .thaw = ata_bmdma_thaw, |
258 | .error_handler = sil680_error_handler, | 252 | .error_handler = sil680_error_handler, |
259 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | 253 | .post_internal_cmd = ata_bmdma_post_internal_cmd, |
254 | .cable_detect = sil680_cable_detect, | ||
260 | 255 | ||
261 | .bmdma_setup = ata_bmdma_setup, | 256 | .bmdma_setup = ata_bmdma_setup, |
262 | .bmdma_start = ata_bmdma_start, | 257 | .bmdma_start = ata_bmdma_start, |