Re: [PATCH 1/2] ARM: EXYNOS: Add a platform bus notifier to set dma masks for Exynos5440

2013-06-16 Thread Thomas Abraham
On 18 April 2013 21:00, Russell King - ARM Linux wrote: > On Thu, Apr 04, 2013 at 07:51:43PM +0900, Kukjin Kim wrote: >> +static u64 dma_mask64 = DMA_BIT_MASK(64); > ... >> + if (event != BUS_NOTIFY_ADD_DEVICE) >> + return NOTIFY_DONE; >> + >> + dev->dma_mask = &dma_mask64; > >

Re: [PATCH 1/2] ARM: EXYNOS: Add a platform bus notifier to set dma masks for Exynos5440

2013-04-18 Thread Russell King - ARM Linux
On Thu, Apr 04, 2013 at 07:51:43PM +0900, Kukjin Kim wrote: > +static u64 dma_mask64 = DMA_BIT_MASK(64); ... > + if (event != BUS_NOTIFY_ADD_DEVICE) > + return NOTIFY_DONE; > + > + dev->dma_mask = &dma_mask64; Sharing the dma mask in this way is a potential issue should you hav

[PATCH 1/2] ARM: EXYNOS: Add a platform bus notifier to set dma masks for Exynos5440

2013-04-04 Thread Kukjin Kim
From: Thomas Abraham Use a platform bus notifier callback function to set the correct dma_mask and coherent_dma_mask for every device registered on Exynos5440 based machine. Signed-off-by: Thomas Abraham Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos/mach-exynos5-dt.c | 23 +