From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de ([212.227.17.8]:60107 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759493Ab3BGX2k (ORCPT ); Thu, 7 Feb 2013 18:28:40 -0500 From: Arnd Bergmann To: Andrew Murray Subject: Re: [PATCH v2 19/27] pci: PCIe driver for Marvell Armada 370/XP systems Date: Thu, 7 Feb 2013 23:27:52 +0000 Cc: Thomas Petazzoni , Andrew Murray , Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Jason Cooper , Andrew Lunn , Gregory Clement , Maen Suleiman , Lior Amsalem , Thierry Reding , "Eran Ben-Avi" , Nadav Haklai , Shadi Ammouri , Tawfik Bayouk , Stephen Warren , Jason Gunthorpe , "Russell King - ARM Linux" References: <1359399397-29729-1-git-send-email-thomas.petazzoni@free-electrons.com> <20130207183743.5c97d8b8@skate> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Message-Id: <201302072327.52328.arnd@arndb.de> Sender: linux-pci-owner@vger.kernel.org List-ID: On Thursday 07 February 2013, Andrew Murray wrote: > I'm not sure if the device pin part of the map is correct (I always > forget how this works) - but I know this would definately work: > > interrupt-map-mask = <0xf800 0 0 7> > interrupt-map = <0x0800 0 0 1 &mpic 58 > 0x0800 0 0 2 &mpic 58 > 0x0800 0 0 3 &mpic 58 > 0x0800 0 0 4 &mpic 58 > 0x1000 0 0 1 &mpic 59 > 0x1000 0 0 2 &mpic 59 > 0x1000 0 0 3 &mpic 59 > 0x1000 0 0 4 &mpic 59 > .... If all the pins are routed to the same interrupt, you can leave the pin out of the map-mask and save a bunch of lines in the interrupt-map, at least by the spec. I have not looked at the source code to see if that is how Linux implements the lookup, but that can be fixed if necessary. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Thu, 7 Feb 2013 23:27:52 +0000 Subject: [PATCH v2 19/27] pci: PCIe driver for Marvell Armada 370/XP systems In-Reply-To: References: <1359399397-29729-1-git-send-email-thomas.petazzoni@free-electrons.com> <20130207183743.5c97d8b8@skate> Message-ID: <201302072327.52328.arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thursday 07 February 2013, Andrew Murray wrote: > I'm not sure if the device pin part of the map is correct (I always > forget how this works) - but I know this would definately work: > > interrupt-map-mask = <0xf800 0 0 7> > interrupt-map = <0x0800 0 0 1 &mpic 58 > 0x0800 0 0 2 &mpic 58 > 0x0800 0 0 3 &mpic 58 > 0x0800 0 0 4 &mpic 58 > 0x1000 0 0 1 &mpic 59 > 0x1000 0 0 2 &mpic 59 > 0x1000 0 0 3 &mpic 59 > 0x1000 0 0 4 &mpic 59 > .... If all the pins are routed to the same interrupt, you can leave the pin out of the map-mask and save a bunch of lines in the interrupt-map, at least by the spec. I have not looked at the source code to see if that is how Linux implements the lookup, but that can be fixed if necessary. Arnd