powerpc/ps3: Set driver coherent_dma_mask
Takashi Iwai
Reviewed-byQuoted 7 lines · Geoff Levand
Set the
coherent_dma_maskfor the PS3 ehci, ohci, and snd devices.Silences
WARN_ON_ONCEmessages emitted by thedma_alloc_attrs()routine.Reported-by Fredrik Noring <[email protected]>Signed-off-by Geoff Levand <[email protected]>
For sound bits,
Reviewed-by Takashi Iwai <[email protected]>
thanks,
Takashi
Quoted 89 lines
---
Hi Michael,This just silences some warnings. Can you take it through the powerpc tree?
(quoted diff) +0
-1-Geoff drivers/usb/host/ehci-ps3.c | 6 ++++-- drivers/usb/host/ohci-ps3.c | 6 ++++-- sound/ppc/snd_ps3.c | 5 +++++ 3 files changed, 13 insertions(+), 4 deletions(-)drivers/usb/host/ehci-ps3.c +4
-2@@ -86,7 +86,7 @@ static int ps3_ehci_probe(struct ps3_system_bus_device *dev)int result;struct usb_hcd *hcd;unsigned int virq; -static u64 dummy_mask =DMA_BIT_MASK (32 ); +static u64 dummy_mask;if (usb_disabled ()) { result = -ENODEV ;@@ -131,7 +131,9 @@ static int ps3_ehci_probe(struct ps3_system_bus_device *dev) goto fail_irq; } - dev->core.dma_mask = &dummy_mask;/* FIXME: for improper usb code */ + dummy_mask =DMA_BIT_MASK (32 ); + dev->core.dma_mask = &dummy_mask; +dma_set_coherent_mask (&dev->core, dummy_mask); hcd =usb_create_hcd (&ps3_ehci_hc_driver, &dev->core,dev_name (&dev->core));drivers/usb/host/ohci-ps3.c +4
-2@@ -69,7 +69,7 @@ static int ps3_ohci_probe(struct ps3_system_bus_device *dev)int result;struct usb_hcd *hcd;unsigned int virq; -static u64 dummy_mask =DMA_BIT_MASK (32 ); +static u64 dummy_mask;if (usb_disabled ()) { result = -ENODEV ;@@ -115,7 +115,9 @@ static int ps3_ohci_probe(struct ps3_system_bus_device *dev) goto fail_irq; } - dev->core.dma_mask = &dummy_mask;/* FIXME: for improper usb code */ + dummy_mask =DMA_BIT_MASK (32 ); + dev->core.dma_mask = &dummy_mask; +dma_set_coherent_mask (&dev->core, dummy_mask); hcd =usb_create_hcd (&ps3_ohci_hc_driver, &dev->core,dev_name (&dev->core));sound/ppc/snd_ps3.c +5
-0@@ -930,6 +930,7 @@ static int snd_ps3_driver_probe(struct ps3_system_bus_device *dev) {int i, ret;u64 lpar_addr, lpar_size; +static u64 dummy_mask;if (WARN_ON (!firmware_has_feature (FW_FEATURE_PS3_LV1 )))return -ENODEV ;@@ -970,6 +971,10 @@ static int snd_ps3_driver_probe(struct ps3_system_bus_device *dev) goto clean_mmio; } + dummy_mask =DMA_BIT_MASK (32 ); + dev->core.dma_mask = &dummy_mask; +dma_set_coherent_mask (&dev->core, dummy_mask); +snd_ps3_audio_set_base_addr (dev->d_region->bus_addr);/* CONFIG_SND_PS3_DEFAULT_START_DELAY */ Signature · 1 line
2.14.1
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html