]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pmac: Fix DMA ops for MacIO devices
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 18 Jun 2009 19:20:51 +0000 (19:20 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jun 2009 04:37:25 +0000 (14:37 +1000)
commitf44ae600fa04fbcab3bcd5a5fa94482bac140bc3
treecb5ec643b9e201f353fd764d22b9942324f85fd1
parente76e44812b91861c08c1d5278117b3299ba9237d
powerpc/pmac: Fix DMA ops for MacIO devices

The macio_dev's created to map devices inside the MacIO ASICs
don't have proper dma_ops. This causes crashes on some machines
since the SCSI code calls dma_map_* on our behalf using the
device we hang from.

This fixes it by copying the parent PCI device dma_ops into
the macio_dev when creating it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/macio_asic.c