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)
commitd2b13233879ca1268a1c027d4573109e5a777811
treeacc735de4c01701dfc0e6d4610ef8803abae6e52
parent0622cab0341cac6b30da177b0faa39fae0680e71
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: 9cde94506eac ("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