]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: fix misreporting of transmit abort
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 20 Jun 2013 21:13:42 +0000 (01:13 +0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2013 07:10:21 +0000 (00:10 -0700)
commit1e5699dbe3f98c8e34387af950b9506d03456760
treeedd6f21e3ce428d0828a2023f2e65f58c827c788
parent080433477d8cf5a9e6bfdc0b12071b7222a7f1ba
sh_eth: fix misreporting of transmit abort

Due to obviously missing braces, EESR.TABT (transmit abort) interrupt may be
reported even if it hasn't happened, just when EESR.TWB (transmit descriptor
write-back) interrupt happens. Luckily (?), EESR.TWB is disabled by the driver
via the TRIMD register and all the interrupt masks, so that transmit abort is
never actually logged...

Put the braces where they should be and fix the incoherent comment, while at it.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c