From: Grant Grundler <grundler@parisc-linux.org>
To: Grant Grundler <grundler@parisc-linux.org>,
akpm@osdl.org, greg@kroah.com,
linux-pci@atrey.karlin.mff.cuni.cz,
linux-pcmcia@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pcibios_bus_to_resource for parisc [Was: Re: [PATCH 8/8] pci and yenta: pcibios_bus_to_resource]
Date: Sun, 24 Jul 2005 19:28:40 -0600 [thread overview]
Message-ID: <20050725012840.GB18659@colo.lackof.org> (raw)
In-Reply-To: <20050723195411.GC11065@dominikbrodowski.de>
On Sat, Jul 23, 2005 at 09:54:11PM +0200, Dominik Brodowski wrote:
> Oh, yes, I seem to have missed it. Sorry. Does this patch look good?
Yes.
Acked-by: Grant Grundler <grundler@parisc-linux.org>
I'll commit this to the cvs.parisc-linux.org tree as well.
Willy can let me deal with the collision if it's not trivial
on his next merge.
thanks,
grant
>
>
> Add pcibios_bus_to_resource for parisc.
>
> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
>
> Index: 2.6.13-rc3-git2/arch/parisc/kernel/pci.c
> ===================================================================
> --- 2.6.13-rc3-git2.orig/arch/parisc/kernel/pci.c
> +++ 2.6.13-rc3-git2/arch/parisc/kernel/pci.c
> @@ -255,8 +255,26 @@ void __devinit pcibios_resource_to_bus(s
> pcibios_link_hba_resources(&hba->lmmio_space, bus->resource[1]);
> }
>
> +void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
> + struct pci_bus_region *region)
> +{
> + struct pci_bus *bus = dev->bus;
> + struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);
> +
> + if (res->flags & IORESOURCE_MEM) {
> + res->start = PCI_HOST_ADDR(hba, region->start);
> + res->end = PCI_HOST_ADDR(hba, region->end);
> + }
> +
> + if (res->flags & IORESOURCE_IO) {
> + res->start = region->start;
> + res->end = region->end;
> + }
> +}
> +
> #ifdef CONFIG_HOTPLUG
> EXPORT_SYMBOL(pcibios_resource_to_bus);
> +EXPORT_SYMBOL(pcibios_bus_to_resource);
> #endif
>
> /*
next prev parent reply other threads:[~2005-07-25 1:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 22:21 [PATCH 8/8] pci and yenta: pcibios_bus_to_resource Dominik Brodowski
2005-07-11 22:28 ` Russell King
2005-07-18 19:42 ` Grant Grundler
2005-07-23 19:54 ` [PATCH] pcibios_bus_to_resource for parisc [Was: Re: [PATCH 8/8] pci and yenta: pcibios_bus_to_resource] Dominik Brodowski
2005-07-25 1:28 ` Grant Grundler [this message]
2005-07-26 23:50 ` [PATCH 8/8] pci and yenta: pcibios_bus_to_resource Greg KH
2005-07-29 21:20 ` Dominik Brodowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050725012840.GB18659@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=linux-pcmcia@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®