OSDN Git Service

net: bgmac: Fix SOF bit checking
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 23 Jun 2016 21:23:12 +0000 (14:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:37:18 +0000 (14:37 +0200)
commitf01babed64e64f2043e163c3f071aae783d135d8
treeb456c689b8c0b98bb342b0286541e154f96473b6
parent992048f8ae84df92373e5424fd3fcc3748ac5d87
net: bgmac: Fix SOF bit checking

commit d2b13233879ca1268a1c027d4573109e5a777811 upstream.

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>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bgmac.c