Skip to content

driver core: Add ability for arch code to setup pdev_archdata

Kumar Gala linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3driver core: Add ability for arch code to setup pdev_archdataarch/alpha/include/asm/platform_device.h arch/arm/include/asm/platform_device.h arch/avr32/include/asm/platform_device.h +20 more+32 -03 replies
2/3powerpc: implement arch_setup_pdev_archdataarch/powerpc/include/asm/platform_device.h+15 -12 replies
3/3powerpc: Dont require a dma_ops struct to set dma maskarch/powerpc/include/asm/dma-mapping.h+2 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] driver core: Add ability for arch code to setup pdev_archdata

On PPC we need to set the dma_mask pointer for platform_devices to point to the pdev_archdata. We can't wait for a bus_notifier as we need the dma_mask setup before the platform_device_add happens so that the bus_notifiers can check the dma_mask to determine if we need things like the SWIOTLB dma_ops.

The patch series introduces an arch specific call out (arch_setup_pdev_archdata) and provide an implementation on PPC to handle our specific issue.

- k