linux-hardened/arch/powerpc
Kumar Gala 6471fc6630 powerpc: Dont require a dma_ops struct to set dma mask
The only reason to require a dma_ops struct is to see if it has
implemented set_dma_mask.  If not we can fall back to setting the mask
directly.

This resolves an issue with how to sequence the setting of a DMA mask
for platform devices.  Before we had an issue in that we have no way of
setting the DMA mask before the various low level bus notifiers get
called that might check it (swiotlb).

So now we can do:

	pdev = platform_device_alloc("foobar", 0);
	dma_set_mask(&pdev->dev, DMA_BIT_MASK(37));
	platform_device_add(pdev);

And expect the right thing to happen with the bus notifiers get called
via platform_device_add.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-07-08 00:21:36 -05:00
..
boot powerpc/p1022ds: Remove fixed-link property from ethernet nodes. 2011-07-08 00:21:34 -05:00
configs powerpc/85xx: Add p2040 RDB board support 2011-07-08 00:21:32 -05:00
include/asm powerpc: Create next_tlbcam_idx percpu variable for FSL_BOOKE 2011-07-08 00:21:34 -05:00
kernel powerpc: Dont require a dma_ops struct to set dma mask 2011-07-08 00:21:36 -05:00
kvm Merge branch 'kvm-updates/2.6.40' of git://git.kernel.org/pub/scm/virt/kvm/kvm 2011-05-23 08:42:08 -07:00
lib Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2011-05-20 13:28:01 -07:00
math-emu powerpc/85xx: Fix SPE float to integer conversion failure 2011-03-15 13:48:15 -05:00
mm powerpc: Create next_tlbcam_idx percpu variable for FSL_BOOKE 2011-07-08 00:21:34 -05:00
oprofile powerpc/oprofile: Handle events that raise an exception without overflowing 2011-05-26 13:38:57 +10:00
platforms powerpc/85xx: Remove stale BUG_ON in mpc85xx_smp_init 2011-07-08 00:21:33 -05:00
sysdev Merge remote branch 'origin/master' into next 2011-06-30 15:23:59 +10:00
xmon powerpc: Remove call sites of MSG_ALL_BUT_SELF 2011-05-19 14:30:46 +10:00
Kconfig powerpc: Add jump label support 2011-07-01 13:48:55 +10:00
Kconfig.debug powerpc/pseries: Re-implement HVSI as part of hvc_vio 2011-06-29 17:48:35 +10:00
Makefile powerpc: Use -mtraceback=no 2011-07-01 13:49:27 +10:00
relocs_check.pl powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00