Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71355
b: refs/heads/master
c: 6a7f62a
h: refs/heads/master
i:
  71353: b118e59
  71351: 2da3d7b
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 18, 2007
1 parent 08910f5 commit 5131cb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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: 942278ef6424c5d661ad0a8202ef60dc0f268a95
refs/heads/master: 6a7f62af60fe903e74a8f8d530c2d5bfea1121bb
14 changes: 5 additions & 9 deletions trunk/drivers/ide/pci/aec62xx.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* linux/drivers/ide/pci/aec62xx.c Version 0.25 Aug 1, 2007
* linux/drivers/ide/pci/aec62xx.c Version 0.26 Sep 1, 2007
*
* Copyright (C) 1999-2002 Andre Hedrick <andre@linux-ide.org>
* Copyright (C) 2007 MontaVista Software, Inc. <source@mvista.com>
Expand Down Expand Up @@ -184,8 +184,6 @@ static unsigned int __devinit init_chipset_aec62xx(struct pci_dev *dev, const ch
static void __devinit init_hwif_aec62xx(ide_hwif_t *hwif)
{
struct pci_dev *dev = hwif->pci_dev;
u8 reg54 = 0, mask = hwif->channel ? 0xf0 : 0x0f;
unsigned long flags;

hwif->set_pio_mode = &aec_set_pio_mode;

Expand All @@ -203,12 +201,10 @@ static void __devinit init_hwif_aec62xx(ide_hwif_t *hwif)

hwif->dma_lost_irq = &aec62xx_dma_lost_irq;

if (dev->device == PCI_DEVICE_ID_ARTOP_ATP850UF) {
spin_lock_irqsave(&ide_lock, flags);
pci_read_config_byte (dev, 0x54, &reg54);
pci_write_config_byte(dev, 0x54, (reg54 & ~mask));
spin_unlock_irqrestore(&ide_lock, flags);
} else if (hwif->cbl != ATA_CBL_PATA40_SHORT) {
if (dev->device == PCI_DEVICE_ID_ARTOP_ATP850UF)
return;

if (hwif->cbl != ATA_CBL_PATA40_SHORT) {
u8 ata66 = 0, mask = hwif->channel ? 0x02 : 0x01;

pci_read_config_byte(hwif->pci_dev, 0x49, &ata66);
Expand Down

0 comments on commit 5131cb0

Please sign in to comment.