diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-05-15 21:25:29 +0200 |
---|---|---|
committer | Stephen Hemminger <shemminger@osdl.org> | 2006-05-15 21:25:29 +0200 |
commit | 1ea739a5f9f469a57d804ebcf70514b8a5efe9da (patch) | |
tree | 48269d9f017b7f09eab3577ba78ed81ad9faa7f5 /drivers/net/ixp2000/pm3386.h | |
parent | Revert "[PATCH] i386: export: memory more than 4G through /proc/iomem" (diff) | |
download | linux-1ea739a5f9f469a57d804ebcf70514b8a5efe9da.tar.xz linux-1ea739a5f9f469a57d804ebcf70514b8a5efe9da.zip |
The ixp2000 driver for the enp2611 was developed on a board with
three gigabit ports, but some enp2611 models only have two ports
(and only one onboard PM3386.) The current driver assumes there
are always three ports and so it doesn't work on the two-port
version of the board at all.
This patch adds a bit of logic to the enp2611 driver to limit the
number of ports to 2 if the second PM3386 isn't detected.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers/net/ixp2000/pm3386.h')
-rw-r--r-- | drivers/net/ixp2000/pm3386.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/pm3386.h b/drivers/net/ixp2000/pm3386.h index fe92bb056ac4..cc4183dca911 100644 --- a/drivers/net/ixp2000/pm3386.h +++ b/drivers/net/ixp2000/pm3386.h @@ -13,6 +13,7 @@ #define __PM3386_H void pm3386_reset(void); +int pm3386_port_count(void); void pm3386_init_port(int port); void pm3386_get_mac(int port, u8 *mac); void pm3386_set_mac(int port, u8 *mac); |