]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: manage irq better on single port card
authorstephen hemminger <shemminger@vyatta.com>
Fri, 23 Sep 2011 11:13:40 +0000 (11:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Sep 2011 04:51:06 +0000 (00:51 -0400)
commit5f9fda1ab0dbb2bf20becf048053e06168c3b32c
tree7aef2da8ad51fa6766cec0f6e59d045c7e8ae4ee
parente9729135d9daabfe7426acbad3486aa1bd3e41eb
sky2: manage irq better on single port card

Most sky2 hardware only has a single port, although some variations of the
chip support two interfaces.  For the single port case, use the standard
Ethernet driver convention of allocating IRQ when device is brought up
rather than at probe time.

Also, change the error handling of dual port cards so that if second
port can not be brought up, then just fail. No point in continuing, since
the failure is most certainly because of out of memory.

The dual port sky2 device has a single irq and a single status ring,
therefore it has a single NAPI object shared by both ports.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c