]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
davinci_emac: Add Carrier Link OK check in Davinci RX Handler
authorHegde, Vinay <vinay.hegde@ti.com>
Thu, 24 Feb 2011 23:56:28 +0000 (23:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2011 21:16:14 +0000 (13:16 -0800)
commit0a5f38467765ee15478db90d81e40c269c8dda20
tree457eb509ff4266d766cd8ec9de4a0b67d68d9f8f
parentb746f7e52fe33ce66ea0cf6127838eff507839ff
davinci_emac: Add Carrier Link OK check in Davinci RX Handler

This patch adds an additional check in the Davinci EMAC RX Handler,
which tests the __LINK_STATE_NOCARRIER flag along with the
__LINK_STATE_START flag as part EMAC shutting down procedure.

This avoids
WARNING: at drivers/net/davinci_emac.c:1040 emac_rx_handler+0xf8/0x120()
during rtcwake used to suspend the target for a specified duration.

Signed-off-by: Hegde, Vinay <vinay.hegde@ti.com>
Acked-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c