]> git.baikalelectronics.ru Git - kernel.git/commit
net: sh_eth: fix the condition to fix the cur_tx/dirty_rx
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 20 Jun 2012 15:26:34 +0000 (15:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2012 04:50:37 +0000 (21:50 -0700)
commitf388737738d8da6e70979454f8b5fabb3a84ee42
treee539d0faac592762c2c196436fa516a395e5094f
parent681ac0e70d75d0c0b77a1b73fc5613db6c54809a
net: sh_eth: fix the condition to fix the cur_tx/dirty_rx

The following commit couldn't work if the RMCR is not set to 1.

"net: sh_eth: fix the rxdesc pointer when rx descriptor empty happens"
commit id 418c8ead0b1f4af3865c15a5bfd3c15fd18f845c

If RMCR is not set, the controller will clear the EDRRR after it received
a frame. In this case, the driver doesn't need to fix the value of
cur_rx/dirty_rx. The driver only needs it when the controll detects
receive descriptors are empty.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c