The ixp2000 driver for the enp2611 was developed on a board with
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 15 May 2006 19:25:29 +0000 (12:25 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Mon, 15 May 2006 19:25:29 +0000 (12:25 -0700)
commit1ea739a5f9f469a57d804ebcf70514b8a5efe9da
tree48269d9f017b7f09eab3577ba78ed81ad9faa7f5
parent9be2f7c38e0bd64e8a0f74ea68df1e73e2ddfcc3
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>
drivers/net/ixp2000/enp2611.c
drivers/net/ixp2000/pm3386.c
drivers/net/ixp2000/pm3386.h