From: Milton Miller <miltonm@bga.com>
To: Jon Loeliger <jdl@freescale.com>
Cc: ppcdev <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH 8/8] Wrote quirk_mpc8641_transparent() to initialize bridge resources.
Date: Mon, 4 Jun 2007 00:55:47 -0500 [thread overview]
Message-ID: <bfe9571d7d435aa6f52ae8d9ec61a1d5@bga.com> (raw)
In-Reply-To: <1180720142.14219.68.camel@ld0161-tx32>
> The 8641 RC poses as a transparent bridge, but does not implement the
> IO_BASE or IO_LIMIT registers in the config space. This means that
> the code which initializes the bridge resources ends up setting the
> IO resources erroneously.
>
> This change sets RC of mpc8641 to be a transparent bridge
> for legacy I/O access and initializes the RC bridge resources
> from the device tree.
>
> Note: The 0x7010 is the device ID of host bridge for MPC8641
> and 0x7011 is the device ID of host bridge fro MPC8641D.
>
...
>
> @@ -339,6 +403,8 @@ static void __devinit early_uli5249(struct pci_dev
> *dev)
> DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x1575, quirk_uli1575);
> DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5288, quirk_uli5288);
> DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, quirk_uli5229);
> +DECLARE_PCI_FIXUP_EARLY(0x1957, 0x7010, quirk_mpc8641_transparent);
> +DECLARE_PCI_FIXUP_EARLY(0x1957, 0x7011, quirk_mpc8641_transparent);
> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AL, 0x5249, early_uli5249);
> #endif /* CONFIG_PCI */
This is totally unreadable. include/linux/pci_ids.h exists for a
reason,
please use it. At least the vendor should be in there.
If you want to define the device id with the same naming convention
but in the local source file, I won't object.
Looking back at the rest of the patch:
>
> +#define GET_64BIT(prop, i) ((((u64) (prop)[(i)]) << 32) |
> (prop)[(i)+1])
Please use the (new) helper of_read_number in prom.h.
milton
PS: how about create instead of wrote in the subject?
next prev parent reply other threads:[~2007-06-04 5:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-01 17:49 [PATCH 8/8] Wrote quirk_mpc8641_transparent() to initialize bridge resources Jon Loeliger
2007-06-04 5:55 ` Milton Miller [this message]
2007-06-04 19:32 ` Jon Loeliger
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=bfe9571d7d435aa6f52ae8d9ec61a1d5@bga.com \
--to=miltonm@bga.com \
--cc=jdl@freescale.com \
--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).