driver core: Add ability for arch code to setup pdev_archdata
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | driver core: Add ability for arch code to setup pdev_archdataarch/ arch/ arch/ +20 more | +32 | 3 replies | |
| 2/3 | powerpc: implement arch_setup_pdev_archdataarch/ | +15 | 2 replies | |
| 3/3 | powerpc: Dont require a dma_ops struct to set dma maskarch/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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