]> git.baikalelectronics.ru Git - kernel.git/commit
net: bgmac: Fix SOF bit checking
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 23 Jun 2016 21:23:12 +0000 (14:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 08:22:17 +0000 (04:22 -0400)
commit2733ac5be54bea88e00a073995151255957f8fa7
treeacc735de4c01701dfc0e6d4610ef8803abae6e52
parent898bbd71d42c423a1e42632d79dc9ab83780d3a2
net: bgmac: Fix SOF bit checking

We are checking for the Start of Frame bit in the ctl1 word, while this
bit is set in the ctl0 word instead. Read the ctl0 word and update the
check to verify that.

Fixes: 69bb3140d3df ("bgmac: implement scatter/gather support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c