Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77233
b: refs/heads/master
c: a530201
h: refs/heads/master
i:
  77231: 2a5ff60
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent 3626e6c commit a6b077c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: aea5d375600f132537adf45942c0fbdcd25eb995
refs/heads/master: a530201afed5074dac69b29c519a1df59da97945
12 changes: 6 additions & 6 deletions trunk/drivers/ide/pci/cy82c693.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* linux/drivers/ide/pci/cy82c693.c Version 0.42 Oct 23, 2007
* linux/drivers/ide/pci/cy82c693.c Version 0.43 Nov 7, 2007
*
* Copyright (C) 1998-2000 Andreas S. Krebs (akrebs@altavista.net), Maintainer
* Copyright (C) 1998-2002 Andre Hedrick <andre@linux-ide.org>, Integrator
Expand Down Expand Up @@ -182,10 +182,7 @@ static void cy82c693_dma_enable (ide_drive_t *drive, int mode, int single)

if (mode>2) /* make sure we set a valid mode */
mode = 2;

if (mode > drive->id->tDMA) /* to be absolutly sure we have a valid mode */
mode = drive->id->tDMA;


index = (HWIF(drive)->channel==0) ? CY82_INDEX_CHANNEL0 : CY82_INDEX_CHANNEL1;

#if CY82C693_DEBUG_LOGS
Expand Down Expand Up @@ -250,7 +247,10 @@ static int cy82c693_ide_dma_on (ide_drive_t *drive)

mmode = id->dma_mword & (id->dma_mword >> 8);
smode = id->dma_1word & (id->dma_1word >> 8);


mmode &= ATA_MWDMA2;
smode &= ATA_SWDMA2;

if (mmode != 0) {
/* enable multi */
cy82c693_dma_enable(drive, (mmode >> 1), 0);
Expand Down

0 comments on commit a6b077c

Please sign in to comment.