diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-26 22:18:22 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-26 22:18:22 -0500 |
| commit | 6d272940537e834848d88c11b428e9973b8fa2bc (patch) | |
| tree | f01b6d173c62e5f9daeb50937ff6d1d17e4320f6 /drivers/ata/pata_sil680.c | |
| parent | f4d53cedce872fe1439818d15e067b497b5d466f (diff) | |
| parent | e190222d04cb1119c62876ac87cf9b9403ba3bd5 (diff) | |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (21 commits)
libata: bump transfer chunk size if it's odd
libata: Return proper ATA INT status in pata_bf54x driver
pata_ali: trim trailing whitespace (fix checkpatch complaints)
pata_isapnp: Polled devices
pata_hpt37x: Fix cable detect bug spotted by Sergei
pata_ali: Lots of problems still showing up with small ATAPI DMA
pata_ali: Add Mitac 8317 and derivatives
libata-core: List more documentation sources for reference
ata_piix: Invalid use of writel/readl with iomap
sata_sil24: fix sg table sizing
pata_jmicron: fix disabled port handling in jmicron_pre_reset()
pata_sil680: kill bogus reset code (take 2)
ata_piix: port enable for the first SATA controller of ICH8 is 0xf not 0x3
ata_piix: only enable the first port on apple macbook pro
ata_piix: reorganize controller IDs
pata_sis.c: Add Packard Bell EasyNote K5305 to laptops
libata-scsi: be tolerant of 12-byte ATAPI commands in 16-byte CDBs
libata: use ATA_HORKAGE_STUCK_ERR for ATAPI tape drives
libata: workaround DRQ=1 ERR=1 for ATAPI tape drives
libata: remove unused functions
...
Diffstat (limited to 'drivers/ata/pata_sil680.c')
| -rw-r--r-- | drivers/ata/pata_sil680.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 5c1e9cb59ecb..503245a1eafa 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.7" | 36 | #define DRV_VERSION "0.4.8" |
| 37 | 37 | ||
| 38 | #define SIL680_MMIO_BAR 5 | 38 | #define SIL680_MMIO_BAR 5 |
| 39 | 39 | ||
| @@ -94,34 +94,6 @@ static int sil680_cable_detect(struct ata_port *ap) { | |||
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | /** | 96 | /** |
| 97 | * sil680_bus_reset - reset the SIL680 bus | ||
| 98 | * @link: ATA link to reset | ||
| 99 | * @deadline: deadline jiffies for the operation | ||
| 100 | * | ||
| 101 | * Perform the SIL680 housekeeping when doing an ATA bus reset | ||
| 102 | */ | ||
| 103 | |||
| 104 | static int sil680_bus_reset(struct ata_link *link, unsigned int *classes, | ||
| 105 | unsigned long deadline) | ||
| 106 | { | ||
| 107 | struct ata_port *ap = link->ap; | ||
| 108 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | ||
| 109 | unsigned long addr = sil680_selreg(ap, 0); | ||
| 110 | u8 reset; | ||
| 111 | |||
| 112 | pci_read_config_byte(pdev, addr, &reset); | ||
| 113 | pci_write_config_byte(pdev, addr, reset | 0x03); | ||
| 114 | udelay(25); | ||
| 115 | pci_write_config_byte(pdev, addr, reset); | ||
| 116 | return ata_std_softreset(link, classes, deadline); | ||
| 117 | } | ||
| 118 | |||
| 119 | static void sil680_error_handler(struct ata_port *ap) | ||
| 120 | { | ||
| 121 | ata_bmdma_drive_eh(ap, ata_std_prereset, sil680_bus_reset, NULL, ata_std_postreset); | ||
| 122 | } | ||
| 123 | |||
| 124 | /** | ||
| 125 | * sil680_set_piomode - set initial PIO mode data | 97 | * sil680_set_piomode - set initial PIO mode data |
| 126 | * @ap: ATA interface | 98 | * @ap: ATA interface |
| 127 | * @adev: ATA device | 99 | * @adev: ATA device |
| @@ -249,7 +221,7 @@ static struct ata_port_operations sil680_port_ops = { | |||
| 249 | 221 | ||
| 250 | .freeze = ata_bmdma_freeze, | 222 | .freeze = ata_bmdma_freeze, |
| 251 | .thaw = ata_bmdma_thaw, | 223 | .thaw = ata_bmdma_thaw, |
| 252 | .error_handler = sil680_error_handler, | 224 | .error_handler = ata_bmdma_error_handler, |
| 253 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | 225 | .post_internal_cmd = ata_bmdma_post_internal_cmd, |
| 254 | .cable_detect = sil680_cable_detect, | 226 | .cable_detect = sil680_cable_detect, |
| 255 | 227 | ||
