From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Olof Johansson <olof@lixom.net>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [PATCH] powerpc: fix OF pci flags parsing
Date: Tue, 28 Nov 2006 19:46:37 +1100 [thread overview]
Message-ID: <1164703597.5350.73.camel@localhost.localdomain> (raw)
In-Reply-To: <20061127212129.2484d68d@localhost.localdomain>
On Mon, 2006-11-27 at 21:21 -0600, Olof Johansson wrote:
> For PCI devices with only io ports, of_bus_pci_get_flags() will fall
> through and still mark the resource as IORESOURCE_MEM.
>
>
> Signed-off-by: Olof Johansson <olof@lixom.net>
Oops :-)
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> This should be fine to hold until 2.6.20, since noone (as far as I
> know) has hit it in the wild.
>
>
> diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
> index 346fb7b..0dfbe1c 100644
> --- a/arch/powerpc/kernel/prom_parse.c
> +++ b/arch/powerpc/kernel/prom_parse.c
> @@ -160,9 +160,11 @@ static unsigned int of_bus_pci_get_flags
> switch((w >> 24) & 0x03) {
> case 0x01:
> flags |= IORESOURCE_IO;
> + break;
> case 0x02: /* 32 bits */
> case 0x03: /* 64 bits */
> flags |= IORESOURCE_MEM;
> + break;
> }
> if (w & 0x40000000)
> flags |= IORESOURCE_PREFETCH;
prev parent reply other threads:[~2006-11-28 8:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 3:21 [PATCH] powerpc: fix OF pci flags parsing Olof Johansson
2006-11-28 8:46 ` Benjamin Herrenschmidt [this message]
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=1164703597.5350.73.camel@localhost.localdomain \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=olof@lixom.net \
--cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).