From: Nathan Lynch <ntl@pobox.com>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [PATCH v4 4/7] Add support for 750CL Holly board
Date: Tue, 8 May 2007 11:45:13 -0500 [thread overview]
Message-ID: <20070508164513.GD19780@localdomain> (raw)
In-Reply-To: <1178573318.2990.206.camel@zod.rchland.ibm.com>
Hi Josh-
I see this has been picked up by Paul already, but there are a couple
minor things I noticed as I was reading the patch.
> +int holly_exclude_device(u_char bus, u_char devfn)
> +{
> + if (bus == 0 && PCI_SLOT(devfn) == 0)
> + return PCIBIOS_DEVICE_NOT_FOUND;
> + else
> + return PCIBIOS_SUCCESSFUL;
> +}
This function could be static, I think? Looks like it's assigned to
ppc_md.pci_exclude_device and called through that.
> +static void __init holly_init_IRQ(void)
> +{
> + struct mpic *mpic;
> + phys_addr_t mpic_paddr = 0;
> + struct device_node *tsi_pic;
> +#ifdef CONFIG_PCI
> + unsigned int cascade_pci_irq;
> + struct device_node *tsi_pci;
> + struct device_node *cascade_node = NULL;
> +#endif
> +
> + tsi_pic = of_find_node_by_type(NULL, "open-pic");
> + if (tsi_pic) {
> + unsigned int size;
> + const void *prop = of_get_property(tsi_pic, "reg", &size);
> + mpic_paddr = of_translate_address(tsi_pic, prop);
> + }
You don't actually need 'size' there; it's legal to pass NULL to
of_get_property.
next prev parent reply other threads:[~2007-05-08 16:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-07 21:22 [PATCH v4 0/7] Add support for 750CL Holly board Josh Boyer
2007-05-07 21:25 ` [PATCH v4 1/7] Add tsi108_pci.h for common PCI functions Josh Boyer
2007-05-08 1:15 ` Olof Johansson
2007-05-07 21:26 ` [PATCH v4 2/7] Generalize tsi108 PHY types Josh Boyer
2007-05-08 1:15 ` Olof Johansson
2007-05-07 21:27 ` [PATCH v4 3/7] Generalize tsi108 PCI setup Josh Boyer
2007-05-08 1:16 ` Olof Johansson
2007-05-07 21:28 ` [PATCH v4 4/7] Add support for 750CL Holly board Josh Boyer
2007-05-08 1:21 ` Olof Johansson
2007-05-08 16:45 ` Nathan Lynch [this message]
2007-05-08 17:01 ` Josh Boyer
2007-05-08 23:47 ` Benjamin Herrenschmidt
2007-05-07 21:29 ` [PATCH v4 5/7] Holly defconfig Josh Boyer
2007-05-07 21:31 ` [PATCH v4 6/7] Holly DTS Josh Boyer
2007-05-07 21:32 ` [PATCH v4 7/7] Holly bootwrapper Josh Boyer
2007-05-08 0:16 ` David Gibson
2007-05-08 1:07 ` Josh Boyer
2007-05-08 1:07 ` David Gibson
2007-05-08 3:45 ` [PATCH v4 0/7] Add support for 750CL Holly board Zang Roy-r61911
2007-05-08 10:46 ` Josh Boyer
2007-05-08 13:49 ` Zang Roy-r61911
2007-05-09 2:19 ` Zang Roy-r61911
2007-05-09 2:34 ` Josh Boyer
2007-05-09 2:52 ` Zang Roy-r61911
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=20070508164513.GD19780@localdomain \
--to=ntl@pobox.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--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).