From: boojin.kim@samsung.com (Boojin Kim) Date: Wed, 17 Aug 2011 10:33:27 +0900 Subject: [PATCH] amba: consolidate PrimeCell magic In-Reply-To: References: <1313402104-27024-1-git-send-email-linus.walleij@stericsson.com> <001601cc5be9$275a5200$760ef600$%kim@samsung.com> <000101cc5bf5$c38bdca0$4aa395e0$%kim@samsung.com> Message-ID: <000c01cc5c7d$aa14f7b0$fe3ee710$%kim@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Linus Walleij wrote: > > Actually, I tested this patch after applying my patches that uses > > 'dma-pl330' driver instead of the samsung specific 's3c-pl330' > driver. > > 'dma-pl330' driver is registered as 'amba_device'. So, this has > already > > checked on 'drivers/amba/bus.c' as your notice. > > But, 's3c-pl330' driver is registered as 'platform_device'. So, This > check > > is required. > > In my opinion, This check can be deleted if caller device is > registered as > > 'amba_device'. > > My latest (v2) version of the patch deletes the check. > > But doing that is dependent on the s3c-pl330 going away and > being replaced by the dmaengine driver, else I think we shall try to > keep the check (I will have to make it work without > dereferencing the amba_device or it will break). > > Is it your plan to replace s3c-pl330 with the drivers/dma/pl330.c > driver, so I can safely delete this code? > > Thanks, > Linus Walleij Yes, I made some patches that replaces s3c-pl330 with dma-pl330. And they are waiting to merge mainline. So, You can remove this code because the patches are forecasted to merge soon. Thanks, Boojin Kim