* [PATCH] arcnet: remove check for CONFIG_SA1100_CT6001
@ 2014-05-27 19:53 Paul Bolle
2014-05-31 0:21 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Paul Bolle @ 2014-05-27 19:53 UTC (permalink / raw)
To: netdev, linux-kernel
A check for CONFIG_SA1100_CT6001 was added in v2.6.11. But the related
Kconfig symbol was never added to the tree. Remove this check and do
some related cleaning up.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
Entirely untested.
arcnet was new for me (as are a lot of things). So I did a rather wide
search of Red Hat's (and Fedora's) bugzilla. I got no hit that suggested
anyone, ever, used arcnet. Is there any indication that people still
care about arcnet?
include/linux/com20020.h | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/include/linux/com20020.h b/include/linux/com20020.h
index 5dcfb944b6ce..c35e864b1ada 100644
--- a/include/linux/com20020.h
+++ b/include/linux/com20020.h
@@ -35,24 +35,17 @@ extern const struct net_device_ops com20020_netdev_ops;
#define ARCNET_TOTAL_SIZE 8
/* various register addresses */
-#ifdef CONFIG_SA1100_CT6001
-#define BUS_ALIGN 2 /* 8 bit device on a 16 bit bus - needs padding */
-#else
-#define BUS_ALIGN 1
-#endif
-
-
-#define _INTMASK (ioaddr+BUS_ALIGN*0) /* writable */
-#define _STATUS (ioaddr+BUS_ALIGN*0) /* readable */
-#define _COMMAND (ioaddr+BUS_ALIGN*1) /* standard arcnet commands */
-#define _DIAGSTAT (ioaddr+BUS_ALIGN*1) /* diagnostic status register */
-#define _ADDR_HI (ioaddr+BUS_ALIGN*2) /* control registers for IO-mapped memory */
-#define _ADDR_LO (ioaddr+BUS_ALIGN*3)
-#define _MEMDATA (ioaddr+BUS_ALIGN*4) /* data port for IO-mapped memory */
-#define _SUBADR (ioaddr+BUS_ALIGN*5) /* the extended port _XREG refers to */
-#define _CONFIG (ioaddr+BUS_ALIGN*6) /* configuration register */
-#define _XREG (ioaddr+BUS_ALIGN*7) /* extra registers (indexed by _CONFIG
- or _SUBADR) */
+#define _INTMASK (ioaddr+0) /* writable */
+#define _STATUS (ioaddr+0) /* readable */
+#define _COMMAND (ioaddr+1) /* standard arcnet commands */
+#define _DIAGSTAT (ioaddr+1) /* diagnostic status register */
+#define _ADDR_HI (ioaddr+2) /* control registers for IO-mapped memory */
+#define _ADDR_LO (ioaddr+3)
+#define _MEMDATA (ioaddr+4) /* data port for IO-mapped memory */
+#define _SUBADR (ioaddr+5) /* the extended port _XREG refers to */
+#define _CONFIG (ioaddr+6) /* configuration register */
+#define _XREG (ioaddr+7) /* extra registers (indexed by _CONFIG
+ or _SUBADR) */
/* in the ADDR_HI register */
#define RDDATAflag 0x80 /* next access is a read (not a write) */
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arcnet: remove check for CONFIG_SA1100_CT6001
2014-05-27 19:53 [PATCH] arcnet: remove check for CONFIG_SA1100_CT6001 Paul Bolle
@ 2014-05-31 0:21 ` David Miller
2014-05-31 0:26 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2014-05-31 0:21 UTC (permalink / raw)
To: pebolle; +Cc: netdev, linux-kernel
From: Paul Bolle <pebolle@tiscali.nl>
Date: Tue, 27 May 2014 21:53:44 +0200
> A check for CONFIG_SA1100_CT6001 was added in v2.6.11. But the related
> Kconfig symbol was never added to the tree. Remove this check and do
> some related cleaning up.
>
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arcnet: remove check for CONFIG_SA1100_CT6001
2014-05-31 0:21 ` David Miller
@ 2014-05-31 0:26 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2014-05-31 0:26 UTC (permalink / raw)
To: pebolle; +Cc: netdev, linux-kernel
From: David Miller <davem@davemloft.net>
Date: Fri, 30 May 2014 17:21:09 -0700 (PDT)
> From: Paul Bolle <pebolle@tiscali.nl>
> Date: Tue, 27 May 2014 21:53:44 +0200
>
>> A check for CONFIG_SA1100_CT6001 was added in v2.6.11. But the related
>> Kconfig symbol was never added to the tree. Remove this check and do
>> some related cleaning up.
>>
>> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
>
> Applied to net-next, thanks.
Reverted, you missed more references to BUS_ALIGN in com20020.c:
drivers/net/arcnet/com20020.c: In function ‘com20020_check’:
drivers/net/arcnet/com20020.c:120:22: error: ‘BUS_ALIGN’ undeclared (first use in this function)
drivers/net/arcnet/com20020.c:120:22: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/arcnet/com20020.c: In function ‘com20020_found’:
drivers/net/arcnet/com20020.c:182:35: error: ‘BUS_ALIGN’ undeclared (first use in this function)
For a driver that builds on x86, there is no excuse not to have at least
build tested this patch.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-31 0:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 19:53 [PATCH] arcnet: remove check for CONFIG_SA1100_CT6001 Paul Bolle
2014-05-31 0:21 ` David Miller
2014-05-31 0:26 ` David Miller
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).