source: trunk/packages/xen-common/xen-common/patches/linux-2.6.18/fix-ide-cd-pio-mode.patch @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/x-patch
File size: 653 bytes
  • drivers/ide/ide-lib.c

    diff -pruN ../orig-linux-2.6.18/drivers/ide/ide-lib.c ./drivers/ide/ide-lib.c
    old new void ide_toggle_bounce(ide_drive_t *driv 
    408408{
    409409        u64 addr = BLK_BOUNCE_HIGH;     /* dma64_addr_t */
    410410
    411         if (!PCI_DMA_BUS_IS_PHYS) {
    412                 addr = BLK_BOUNCE_ANY;
    413         } else if (on && drive->media == ide_disk) {
    414                 if (HWIF(drive)->pci_dev)
     411        if (on && drive->media == ide_disk) {
     412                if (!PCI_DMA_BUS_IS_PHYS)
     413                        addr = BLK_BOUNCE_ANY;
     414                else if (HWIF(drive)->pci_dev)
    415415                        addr = HWIF(drive)->pci_dev->dma_mask;
    416416        }
    417417
Note: See TracBrowser for help on using the repository browser.