From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: mpc8568e-mds: pci-e is broken
Date: Thu, 24 Jan 2008 17:00:12 +0300 [thread overview]
Message-ID: <20080124140012.GA19781@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0801231701110.1762@blarg.am.freescale.net>
On Wed, Jan 23, 2008 at 05:02:10PM -0600, Kumar Gala wrote:
> Anton,
>
> Can you try this patch and see if it resolves the issue for you.. (You'll
> still get the Apple FW messages)
Yup, that patch fixes it.
Thanks,
> - k
>
> diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
> index 4005739..bf13c21 100644
> --- a/arch/powerpc/sysdev/fsl_pci.c
> +++ b/arch/powerpc/sysdev/fsl_pci.c
> @@ -133,22 +133,23 @@ void fsl_pcibios_fixup_bus(struct pci_bus *bus)
> struct pci_controller *hose = (struct pci_controller *) bus->sysdata;
> int i;
>
> - /* deal with bogus pci_bus when we don't have anything connected on PCIe */
> - if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
> - if (bus->parent) {
> - for (i = 0; i < 4; ++i)
> - bus->resource[i] = bus->parent->resource[i];
> - }
> - }
> -
> - if (fsl_pcie_bus_fixup &&
> - (bus->parent == hose->bus) &&
> - early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) {
> + if ((bus->parent == hose->bus) &&
> + ((fsl_pcie_bus_fixup &&
> + early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) ||
> + (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK)))
> + {
> for (i = 0; i < 4; ++i) {
> - if (bus->resource[i] && bus->parent->resource[i]) {
> - bus->resource[i]->start = bus->parent->resource[i]->start;
> - bus->resource[i]->end = bus->parent->resource[i]->end;
> - bus->resource[i]->flags = bus->parent->resource[i]->flags;
> + struct resource *res = bus->resource[i];
> + struct resource *par = bus->parent->resource[i];
> + if (res) {
> + res->start = 0;
> + res->end = 0;
> + res->flags = 0;
> + }
> + if (res && par) {
> + res->start = par->start;
> + res->end = par->end;
> + res->flags = par->flags;
> }
> }
> }
>
--
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.net/bd2
prev parent reply other threads:[~2008-01-24 14:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-23 19:37 mpc8568e-mds: pci-e is broken Anton Vorontsov
2008-01-23 19:42 ` Kumar Gala
2008-01-23 19:50 ` Anton Vorontsov
2008-01-23 22:04 ` Kumar Gala
2008-01-23 23:02 ` Kumar Gala
2008-01-24 14:00 ` Anton Vorontsov [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=20080124140012.GA19781@localhost.localdomain \
--to=avorontsov@ru.mvista.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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).