mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
pata_ali: Fix regression with old devices
Making the new stuff work broke some of the old chipsets. We need to go back to the old set up values for these it seems. Unfortunately even with documentation this is basically a mix of cargoculting and guesswork. Chased down to the exact line by Gianluca. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
be315d4615
commit
d6250a03fa
1 changed files with 3 additions and 1 deletions
|
@ -453,7 +453,9 @@ static void ali_init_chipset(struct pci_dev *pdev)
|
||||||
/* Clear CD-ROM DMA write bit */
|
/* Clear CD-ROM DMA write bit */
|
||||||
tmp &= 0x7F;
|
tmp &= 0x7F;
|
||||||
/* Cable and UDMA */
|
/* Cable and UDMA */
|
||||||
pci_write_config_byte(pdev, 0x4B, tmp | 0x09);
|
if (pdev->revision >= 0xc2)
|
||||||
|
tmp |= 0x01;
|
||||||
|
pci_write_config_byte(pdev, 0x4B, tmp | 0x08);
|
||||||
/*
|
/*
|
||||||
* CD_ROM DMA on (0x53 bit 0). Enable this even if we want
|
* CD_ROM DMA on (0x53 bit 0). Enable this even if we want
|
||||||
* to use PIO. 0x53 bit 1 (rev 20 only) - enable FIFO control
|
* to use PIO. 0x53 bit 1 (rev 20 only) - enable FIFO control
|
||||||
|
|
Loading…
Reference in a new issue