From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH] arm64: iommu: Refactoring common code. Date: Tue, 11 Mar 2014 17:36:21 +0100 Message-ID: <201403111736.22104.arnd@arndb.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Ritesh Harjani Cc: Catalin Marinas , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , Will Deacon List-Id: iommu@lists.linux-foundation.org On Monday 10 March 2014, Ritesh Harjani wrote: > > Hi Everyone, > > Please find the following patch as refactoring of the common code out > from arch/arm/mm/dma-mapping.c to lib/iommu-helper.c > > This is just an initial version of patch to get more details and to > know if this is how we want to plan refactoring iommu code to > lib/iommu-helper. > > Please let me know the changes/suggestion which you think in this ? > I find this hard to review. Can you try splitting it up into two patches, where the first one rearranges the code with minimum moves, and the second just moves unmodified functions to the new file? For the changes to be useful, I think we need to move more code into iommu-helper.c, and I would personally prefer to drop the 'lib_' prefix. Arnd