From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8D3BC433F5 for ; Thu, 21 Apr 2022 14:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389049AbiDUOPh (ORCPT ); Thu, 21 Apr 2022 10:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388301AbiDUOPW (ORCPT ); Thu, 21 Apr 2022 10:15:22 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6C5B3B022; Thu, 21 Apr 2022 07:12:32 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 9CD7068C4E; Thu, 21 Apr 2022 16:12:29 +0200 (CEST) Date: Thu, 21 Apr 2022 16:12:29 +0200 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Russell King , Linus Walleij , Andre Przywara , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Greg Kroah-Hartman , Alan Stern , Laurentiu Tudor , Marek Szyprowski , Robin Murphy , "open list:IOMMU DRIVERS" , Linux ARM , Linux Kernel Mailing List , USB list Subject: Re: [PATCH 6/7] ARM: use the common dma_to_phys/phys_to_dma implementation where possible Message-ID: <20220421141229.GB20492@lst.de> References: <20220421074204.1284072-1-hch@lst.de> <20220421074204.1284072-7-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 10:05:11AM +0200, Arnd Bergmann wrote: > > -unsigned long __pfn_to_bus(unsigned long pfn) > > +#else > > +static inline unsigned long fb_bus_sdram_offset(void) > > { > > - return __pfn_to_phys(pfn) + (fb_bus_sdram_offset() - PHYS_OFFSET); > > + return BUS_OFFSET; > > } > > -EXPORT_SYMBOL(__pfn_to_bus); > > +#endif /* CONFIG_FOOTBRIDGE_ADDIN */ > > I have an older patch to remove CONFIG_FOOTBRIDGE_ADDIN > completely, as it does a couple of other nasty things and there are > apparently no users. Would that help here? For this series it doesn't really make much of a difference. The addin case actually is simpler than the host mode for DMA, But overall CONFIG_FOOTBRIDGE_ADDIN seems to be a collection of special cases, so if it is unused and can be remove that would probably be a good thing.