Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85682
b: refs/heads/master
c: b6966a6
h: refs/heads/master
v: v3
  • Loading branch information
Martin K. Petersen authored and Jeff Garzik committed Feb 15, 2008
1 parent 4381765 commit 9feeb0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 7a3a16fe7ddf0570e2fcf286d7e244a5e1e16f6a
refs/heads/master: b6966a61a8b5df2987856c81f39a8fd014d32a80
8 changes: 4 additions & 4 deletions trunk/drivers/ata/pata_cs5536.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <asm/msr.h>

#define DRV_NAME "pata_cs5536"
#define DRV_VERSION "0.0.6"
#define DRV_VERSION "0.0.7"

enum {
CFG = 0,
Expand Down Expand Up @@ -153,8 +153,8 @@ static void cs5536_set_piomode(struct ata_port *ap, struct ata_device *adev)
struct ata_device *pair = ata_dev_pair(adev);
int mode = adev->pio_mode - XFER_PIO_0;
int cmdmode = mode;
int dshift = ap->port_no ? IDE_D1_SHIFT : IDE_D0_SHIFT;
int cshift = ap->port_no ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT;
int dshift = adev->devno ? IDE_D1_SHIFT : IDE_D0_SHIFT;
int cshift = adev->devno ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT;
u32 dtc, cast, etc;

if (pair)
Expand Down Expand Up @@ -201,7 +201,7 @@ static void cs5536_set_dmamode(struct ata_port *ap, struct ata_device *adev)
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
u32 dtc, etc;
int mode = adev->dma_mode;
int dshift = ap->port_no ? IDE_D1_SHIFT : IDE_D0_SHIFT;
int dshift = adev->devno ? IDE_D1_SHIFT : IDE_D0_SHIFT;

if (mode >= XFER_UDMA_0) {
cs5536_read(pdev, ETC, &etc);
Expand Down

0 comments on commit 9feeb0d

Please sign in to comment.