Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76927
b: refs/heads/master
c: 0f06978
h: refs/heads/master
i:
  76925: 69ba359
  76923: 0437e4d
  76919: b749db4
  76911: 2e7315b
  76895: 73be53a
  76863: 3c5b37f
  76799: 7464370
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jan 23, 2008
1 parent ca28bf3 commit ce8e065
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0eaea364edec4132fe42ef33fe87edb15f00507b
refs/heads/master: 0f069788c32ea7af108c6032dfb0594cc718bde8
9 changes: 4 additions & 5 deletions trunk/drivers/ata/pata_serverworks.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_serverworks"
#define DRV_VERSION "0.4.2"
#define DRV_VERSION "0.4.3"

#define SVWKS_CSB5_REVISION_NEW 0x92 /* min PCI_REVISION_ID for UDMA5 (A2.0) */
#define SVWKS_CSB6_REVISION 0xa0 /* min PCI_REVISION_ID for UDMA4 (A1.0) */
Expand Down Expand Up @@ -102,15 +102,15 @@ static int osb4_cable(struct ata_port *ap) {
}

/**
* csb4_cable - CSB5/6 cable detect
* csb_cable - CSB5/6 cable detect
* @ap: ATA port to check
*
* Serverworks default arrangement is to use the drive side detection
* only.
*/

static int csb_cable(struct ata_port *ap) {
return ATA_CBL_PATA80;
return ATA_CBL_PATA_UNK;
}

struct sv_cable_table {
Expand Down Expand Up @@ -231,7 +231,6 @@ static unsigned long serverworks_csb_filter(struct ata_device *adev, unsigned lo
return ata_pci_default_filter(adev, mask);
}


/**
* serverworks_set_piomode - set initial PIO mode data
* @ap: ATA interface
Expand All @@ -243,7 +242,7 @@ static unsigned long serverworks_csb_filter(struct ata_device *adev, unsigned lo
static void serverworks_set_piomode(struct ata_port *ap, struct ata_device *adev)
{
static const u8 pio_mode[] = { 0x5d, 0x47, 0x34, 0x22, 0x20 };
int offset = 1 + (2 * ap->port_no) - adev->devno;
int offset = 1 + 2 * ap->port_no - adev->devno;
int devbits = (2 * ap->port_no + adev->devno) * 4;
u16 csb5_pio;
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
Expand Down

0 comments on commit ce8e065

Please sign in to comment.