ia64/xen-unstable

annotate patches/linux-2.6.16.13/fix-ide-cd-pio-mode.patch @ 11154:bb37d167c82e

[XEND] xc_save/xc_restore open the libxc interface independently
of their parent. This is required now that the interface fd is
marked for close-on-exec.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Aug 15 19:04:43 2006 +0100 (2006-08-15)
parents ad33b3882867
children
rev   line source
cl349@10171 1 diff -ru ../pristine-linux-2.6.16.13/drivers/ide/ide-lib.c ./drivers/ide/ide-lib.c
cl349@10171 2 --- ../pristine-linux-2.6.16.13/drivers/ide/ide-lib.c 2006-05-02 22:38:44.000000000 +0100
cl349@10171 3 +++ ./drivers/ide/ide-lib.c 2006-05-24 18:37:05.000000000 +0100
cl349@10171 4 @@ -410,10 +410,10 @@
cl349@10171 5 {
cl349@10171 6 u64 addr = BLK_BOUNCE_HIGH; /* dma64_addr_t */
cl349@10171 7
cl349@10171 8 - if (!PCI_DMA_BUS_IS_PHYS) {
cl349@10171 9 - addr = BLK_BOUNCE_ANY;
cl349@10171 10 - } else if (on && drive->media == ide_disk) {
cl349@10171 11 - if (HWIF(drive)->pci_dev)
cl349@10171 12 + if (on && drive->media == ide_disk) {
cl349@10171 13 + if (!PCI_DMA_BUS_IS_PHYS)
cl349@10171 14 + addr = BLK_BOUNCE_ANY;
cl349@10171 15 + else if (HWIF(drive)->pci_dev)
cl349@10171 16 addr = HWIF(drive)->pci_dev->dma_mask;
cl349@10171 17 }
cl349@10171 18