From: Martyn Welch <martyn.welch@gefanuc.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH] powerpc/86xx: Run sbc310 USB fixup code only on the appropriate platform.
Date: Fri, 13 Mar 2009 11:35:08 +0000 [thread overview]
Message-ID: <20090313113258.6583.64155.stgit@ubuntu8041.localdomain> (raw)
Patch to limit NEC fixup to SBC310, following similar patch to SBC610 by Tony Breeds: 368a12117dd8abf6eaefa37c21ac313b517128b9
Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
---
Hi Kumar,
The sbc310 patches have been added to your next tree. This patch is
needed to stop the same problem occuring as occured with the sbc610.
arch/powerpc/platforms/86xx/gef_sbc310.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/platforms/86xx/gef_sbc310.c b/arch/powerpc/platforms/86xx/gef_sbc310.c
index 0f20172..ba3ce43 100644
--- a/arch/powerpc/platforms/86xx/gef_sbc310.c
+++ b/arch/powerpc/platforms/86xx/gef_sbc310.c
@@ -153,6 +153,10 @@ static void __init gef_sbc310_nec_fixup(struct pci_dev *pdev)
{
unsigned int val;
+ /* Do not do the fixup on other platforms! */
+ if (!machine_is(gef_sbc310))
+ return;
+
printk(KERN_INFO "Running NEC uPD720101 Fixup\n");
/* Ensure only ports 1 & 2 are enabled */
next reply other threads:[~2009-03-13 11:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 11:35 Martyn Welch [this message]
2009-03-19 8:57 ` [PATCH] powerpc/86xx: Run sbc310 USB fixup code only on the appropriate platform Kumar Gala
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=20090313113258.6583.64155.stgit@ubuntu8041.localdomain \
--to=martyn.welch@gefanuc.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