From: Magnus Damm <magnus.damm@gmail.com>
To: netdev@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>,
lethal@linux-sh.org, nico@cam.org, akpm@linux-foundation.org
Subject: [PATCH 03/04] smc91x: add insw/outsw to default config V2
Date: Fri, 22 Feb 2008 19:55:24 +0900 [thread overview]
Message-ID: <20080222105524.7408.24180.sendpatchset@clockwork.opensource.se> (raw)
In-Reply-To: <20080222105456.7408.11277.sendpatchset@clockwork.opensource.se>
This patch makes sure SMC_insw()/SMC_outsw() are defined for the
default configuration. Without this change BUG()s will be triggered
when using 16-bit only platform data and the default configuration.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
drivers/net/smc91x.h | 2 ++
1 file changed, 2 insertions(+)
--- 0003/drivers/net/smc91x.h
+++ work/drivers/net/smc91x.h 2008-02-22 15:25:39.000000000 +0900
@@ -476,6 +476,8 @@ static inline void LPD7_SMC_outsw (unsig
#define SMC_outb(v, a, r) writeb(v, (a) + (r))
#define SMC_outw(v, a, r) writew(v, (a) + (r))
#define SMC_outl(v, a, r) writel(v, (a) + (r))
+#define SMC_insw(a, r, p, l) readsw((a) + (r), p, l)
+#define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l)
#define SMC_insl(a, r, p, l) readsl((a) + (r), p, l)
#define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l)
next prev parent reply other threads:[~2008-02-22 11:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-22 10:54 [PATCH 00/04] smc91x: request bus width using platform data V2 Magnus Damm
2008-02-22 10:55 ` [PATCH 01/04] smc91x: pass along private " Magnus Damm
2008-02-22 14:26 ` Nicolas Pitre
2008-03-05 11:18 ` Jeff Garzik
2008-02-22 10:55 ` [PATCH 02/04] smc91x: introduce platform data flags V2 Magnus Damm
2008-02-22 14:32 ` Nicolas Pitre
2008-02-22 10:55 ` Magnus Damm [this message]
2008-02-22 14:33 ` [PATCH 03/04] smc91x: add insw/outsw to default config V2 Nicolas Pitre
2008-02-22 10:55 ` [PATCH 04/04] smc91x: make superh use " Magnus Damm
2008-02-22 14:35 ` Nicolas Pitre
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=20080222105524.7408.24180.sendpatchset@clockwork.opensource.se \
--to=magnus.damm@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=lethal@linux-sh.org \
--cc=netdev@vger.kernel.org \
--cc=nico@cam.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).