From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 05/12] PCI: add pci_swizzle_interrupt_pin() Date: Thu, 11 Dec 2008 18:14:55 +0000 Message-ID: <25771.1229019295@redhat.com> References: <200812111103.10500.bjorn.helgaas@hp.com> <200812110948.20563.bjorn.helgaas@hp.com> <23213.1229007624@redhat.com> <24742.1229016892@redhat.com> Return-path: In-Reply-To: <200812111103.10500.bjorn.helgaas@hp.com> Sender: linux-pci-owner@vger.kernel.org To: Bjorn Helgaas Cc: dhowells@redhat.com, Jesse Barnes , linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, Ivan Kokshaysky , Russell King , Ralf Baechle , Kyle McMartin , Matthew Wilcox , Grant Grundler , Paul Mackerras , Benjamin Herrenschmidt , Paul Mundt , Thomas Gleixner , Ingo Molnar , hpa@zytor.com List-Id: linux-arch.vger.kernel.org Bjorn Helgaas wrote: > +/** > + * pci_swizzle_interrupt_pin - swizzle INTx for device behind bridge > + * @dev: the PCI device > + * @pin: the INTx pin (1=INTA, 2=INTB, 3=INTD, 4=INTD) > + * > + * The PCI-to-PCI bridge specification, section 9.1, requires INTx swizzling > + * for devices behind bridges on add-in cards. This performs the swizzle > + * for one level of bridge. > + */ That's okay. It might be better to put the what before the why, though: * Perform INTx swizzling for a device behind one level of bridge. This is * required by section 9.1 of the PCI-to-PCI bridge specification for devices * behind bridges on add-in cards. David From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.redhat.com ([66.187.237.31]:41441 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755003AbYLKSQ0 (ORCPT ); Thu, 11 Dec 2008 13:16:26 -0500 From: David Howells In-Reply-To: <200812111103.10500.bjorn.helgaas@hp.com> References: <200812111103.10500.bjorn.helgaas@hp.com> <200812110948.20563.bjorn.helgaas@hp.com> <23213.1229007624@redhat.com> <24742.1229016892@redhat.com> Subject: Re: [PATCH 05/12] PCI: add pci_swizzle_interrupt_pin() Date: Thu, 11 Dec 2008 18:14:55 +0000 Message-ID: <25771.1229019295@redhat.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Bjorn Helgaas Cc: dhowells@redhat.com, Jesse Barnes , linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, Ivan Kokshaysky , Russell King , Ralf Baechle , Kyle McMartin , Matthew Wilcox , Grant Grundler , Paul Mackerras , Benjamin Herrenschmidt , Paul Mundt , Thomas Gleixner , Ingo Molnar , hpa@zytor.com Message-ID: <20081211181455.zqxr2fraWsuEKFF6zcVc1x8MCCzYnDcuHti4nyuPysQ@z> Bjorn Helgaas wrote: > +/** > + * pci_swizzle_interrupt_pin - swizzle INTx for device behind bridge > + * @dev: the PCI device > + * @pin: the INTx pin (1=INTA, 2=INTB, 3=INTD, 4=INTD) > + * > + * The PCI-to-PCI bridge specification, section 9.1, requires INTx swizzling > + * for devices behind bridges on add-in cards. This performs the swizzle > + * for one level of bridge. > + */ That's okay. It might be better to put the what before the why, though: * Perform INTx swizzling for a device behind one level of bridge. This is * required by section 9.1 of the PCI-to-PCI bridge specification for devices * behind bridges on add-in cards. David