Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-14 Thread Baolin Wang
On 14 June 2016 at 22:43, Catalin Marinas wrote: > On Tue, Jun 07, 2016 at 05:22:25PM +0800, Baolin Wang wrote: >> On 7 June 2016 at 17:15, Robin Murphy wrote: >> > Please elaborate on the situation that you're attempting to address here >> > (please don't let it be the ongoing Designware USB cat

Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-14 Thread Catalin Marinas
On Tue, Jun 07, 2016 at 05:22:25PM +0800, Baolin Wang wrote: > On 7 June 2016 at 17:15, Robin Murphy wrote: > > Please elaborate on the situation that you're attempting to address here > > (please don't let it be the ongoing Designware USB catastrophe ;)) > > Yes, like you mentioned, we met probl

Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-13 Thread Baolin Wang
On 7 June 2016 at 16:43, Arnd Bergmann wrote: > On Tuesday, June 7, 2016 4:29:21 PM CEST Baolin Wang wrote: >> Now on ARM64 platform, it will set 'dummy_dma_ops' for device dma_ops if >> it did not call 'arch_setup_dma_ops' at device creation time by issuing >> platform_device_alloc() function, th

Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-09 Thread Arnd Bergmann
On Tuesday, June 7, 2016 4:29:21 PM CEST Baolin Wang wrote: > Now on ARM64 platform, it will set 'dummy_dma_ops' for device dma_ops if > it did not call 'arch_setup_dma_ops' at device creation time by issuing > platform_device_alloc() function, that will cause failure when setting > the dma mask fo

Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-07 Thread Baolin Wang
On 7 June 2016 at 17:15, Robin Murphy wrote: > On 07/06/16 09:29, Baolin Wang wrote: >> >> Now on ARM64 platform, it will set 'dummy_dma_ops' for device dma_ops if >> it did not call 'arch_setup_dma_ops' at device creation time by issuing >> platform_device_alloc() function, that will cause failur

Re: [PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-07 Thread Robin Murphy
On 07/06/16 09:29, Baolin Wang wrote: Now on ARM64 platform, it will set 'dummy_dma_ops' for device dma_ops if it did not call 'arch_setup_dma_ops' at device creation time by issuing platform_device_alloc() function, that will cause failure when setting the dma mask for device. Yes, that's rath

[PATCH] arm64: Implement arch_setup_pdev_archdata hook

2016-06-07 Thread Baolin Wang
Now on ARM64 platform, it will set 'dummy_dma_ops' for device dma_ops if it did not call 'arch_setup_dma_ops' at device creation time by issuing platform_device_alloc() function, that will cause failure when setting the dma mask for device. Hence We need to hook the archdata to setup proper dma_op