From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbaHSMk6 (ORCPT ); Tue, 19 Aug 2014 08:40:58 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:64342 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660AbaHSMk4 (ORCPT ); Tue, 19 Aug 2014 08:40:56 -0400 From: Arnd Bergmann To: Catalin Marinas Subject: Re: [PATCH v9 02/12] PCI: OF: Parse and map the IRQ when adding the PCI device. Date: Tue, 19 Aug 2014 14:39:56 +0200 User-Agent: KMail/1.12.2 (Linux/3.8.0-35-generic; KDE/4.3.2; x86_64; ; ) Cc: Liviu Dudau , Liviu Dudau , Wei Yang , Bjorn Helgaas , Will Deacon , Benjamin Herrenschmidt , Russell King , Tanmay Inamdar , Grant Likely , Sinan Kaya , Jingoo Han , Kukjin Kim , Suravee Suthikulanit , "linux-pci" , "linux-arch" , LKML , Device Tree ML , LAKML References: <1407860725-25202-1-git-send-email-Liviu.Dudau@arm.com> <20140818213054.GB13147@bart.dudau.co.uk> <20140818220906.GJ24600@localhost> In-Reply-To: <20140818220906.GJ24600@localhost> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201408191439.56493.arnd@arndb.de> X-Provags-ID: V02:K0:xWv9Z0ZQ4gQec/rLBh8FKbTuWzd4fyEZ1bRF7RhyBhI sEvnWhe9zYvdBkRVbFe3Ea8hx31wU2z6X8mAoR9MWtCUgZuPMD UAGgKslq7Zc21auoLy3FINL8S+7Izoj70My798yyAHA5J4jx7P p4uF2ysxOCSNYqqeqNq94VBvTGXq9rxr3rIuK0Dm3vus1ZP8Sh nyLfpF02SOw9Rd+VtzUgmrlNmQVXN2VtAcNoQ3vtajPpXm7+lZ ltDxDU2Uz6+CHWkQaNTrlY/51eevE1pcRptnM1+CPcaF0br9oO dWqB4Xu9s5WsSQuVVRPb55yMDKlAxm9m3sJFjd2SKF1hbHmWny DyKp7YdXNvS1gURbaQvDzbNWMpHr8sNtFHj0C6foB X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 19 August 2014, Catalin Marinas wrote: > On Mon, Aug 18, 2014 at 10:30:54PM +0100, Liviu Dudau wrote: > > At this point I would like to hear more from people doing the conversion of > > the drivers. I cannot answer fully for all arm or arm64 drivers. > > As I read the description of pcibios_add_device(), it is meant as an > architecture hook. While it's nice to generalise this, I'm not sure we > we can find a common denominator. For example, we may want to call > set_dma_ops() as powerpc does but the ops would be arm64 specific (so > even the __weak implementation may not be used by any architecture). Right. I'm a strong advocate of the idea of having no architecture specific parts in the PCI support, but I can see the set_dma_ops() call as a good reason to make an exception here. We could add another layer of indirection for the purpose of API purity here, to call an architecture specific DMA setup function, but it doesn't really add that much benefits, in particular when the DMA setup is currently in flux as well. Arnd