pcmcia pcnet_cs: try setting io_lines to 16 if card setup fails
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 13 Sep 2010 18:23:12 +0000 (20:23 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 15 Sep 2010 15:57:22 +0000 (17:57 +0200)
commitb76dc0546709aef18f123847680108c2fd33f203
tree2d84710244028ee5e7e06e280f056181fd909a92
parenteb838fe109b8f51ba590802761753a2631c3f7f0
pcmcia pcnet_cs: try setting io_lines to 16 if card setup fails

Some pcnet_cs compatible cards require an exact 16-lines match
of the ioport areas specified in CIS, but set the "iolines"
value in the CIS incorrectly. We can easily work around this
issue -- same as we do in serial_cs -- by first trying setting
iolines to the CIS-specified value, and then trying a 16-line
match.

Reported-and-tested-by: Wolfram Sang <w.sang@pengutronix.de>
Hardware-supplied-by: Jochen Frieling <j.frieling@pengutronix.de>
CC: netdev@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/net/pcmcia/pcnet_cs.c