Thread (15 messages) 15 messages, 6 authors, 2008-06-04

Re: [PATCH] SMSC LAN911x and LAN921x vendor driver

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2008-05-19 16:23:01

Possibly related (same subject, not in this thread)

On Mon, 2008-05-19 at 13:34 +0100, Steve Glendinning wrote:
Attached is a driver for SMSC's LAN911x and LAN921x families of embedded
ethernet controllers.
[...]
 drivers/net/Kconfig    |   13 +
 drivers/net/Makefile   |    1 +
 drivers/net/smsc911x.c | 2285 ++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/smsc911x.h |  389 ++++++++
Maybe you should patch the MAINTAINERS file as well since it's not clear
from the file header who is maintaining it.
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/drivers/net/smsc911x.h
[...]
+/* platform_device configuration data, should be assigned to
+ * the platform_device's dev.platform_data */
+struct smsc911x_platform_config {
+	unsigned int irq_polarity;
+	unsigned int irq_type;
+};
BTW, how could this structure be used in the platform specific code
(arch/arm/mach-*/* in my case)? This header file cannot be included
since it is not under the include/ directory and redefining the
structure for each platform is prone to errors (and too much
duplication). I can see other drivers place a header file (maybe only
containing the structure definition) in include/linux/ or include/asm-*/
(the latter if it is specific to only one architecture which I don't
think it is the case here). 

-- 
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help