forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/jgarzik/libata-dev * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: ata: Report 16/32bit PIO as best we can libata: use ATA_ID_CFA_* pata_legacy: fix no device fail path pata_hpt37x: fix HPT370 DMA timeouts libata: handle SEMB signature better
- Loading branch information
Showing
7 changed files
with
107 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* Copyright (C) 1999-2003 Andre Hedrick <[email protected]> | ||
* Portions Copyright (C) 2001 Sun Microsystems, Inc. | ||
* Portions Copyright (C) 2003 Red Hat Inc | ||
* Portions Copyright (C) 2005-2007 MontaVista Software, Inc. | ||
* Portions Copyright (C) 2005-2009 MontaVista Software, Inc. | ||
* | ||
* TODO | ||
* Look into engine reset on timeout errors. Should not be required. | ||
|
@@ -24,7 +24,7 @@ | |
#include <linux/libata.h> | ||
|
||
#define DRV_NAME "pata_hpt37x" | ||
#define DRV_VERSION "0.6.11" | ||
#define DRV_VERSION "0.6.12" | ||
|
||
struct hpt_clock { | ||
u8 xfer_speed; | ||
|
@@ -444,23 +444,6 @@ static void hpt370_set_dmamode(struct ata_port *ap, struct ata_device *adev) | |
pci_write_config_dword(pdev, addr1, reg | mode); | ||
} | ||
|
||
/** | ||
* hpt370_bmdma_start - DMA engine begin | ||
* @qc: ATA command | ||
* | ||
* The 370 and 370A want us to reset the DMA engine each time we | ||
* use it. The 372 and later are fine. | ||
*/ | ||
|
||
static void hpt370_bmdma_start(struct ata_queued_cmd *qc) | ||
{ | ||
struct ata_port *ap = qc->ap; | ||
struct pci_dev *pdev = to_pci_dev(ap->host->dev); | ||
pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); | ||
udelay(10); | ||
ata_bmdma_start(qc); | ||
} | ||
|
||
/** | ||
* hpt370_bmdma_end - DMA engine stop | ||
* @qc: ATA command | ||
|
@@ -598,7 +581,6 @@ static struct scsi_host_template hpt37x_sht = { | |
static struct ata_port_operations hpt370_port_ops = { | ||
.inherits = &ata_bmdma_port_ops, | ||
|
||
.bmdma_start = hpt370_bmdma_start, | ||
.bmdma_stop = hpt370_bmdma_stop, | ||
|
||
.mode_filter = hpt370_filter, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters