]> git.baikalelectronics.ru Git - kernel.git/commit
net: bgmac: fix reversed checks for clock control flag
authorRafał Miłecki <rafal@milecki.pl>
Mon, 7 Nov 2016 12:53:27 +0000 (13:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 18:32:06 +0000 (13:32 -0500)
commit149b388e1374f47e4207cbffc36eb12fa5b8583e
tree2cce393d3f0d7352220f1b3927259dbe8a6dd0a3
parent3a2c3387248189dbe2fdbf8097ecd1bffaaf0307
net: bgmac: fix reversed checks for clock control flag

This fixes regression introduced by patch adding feature flags. It was
already reported and patch followed (it got accepted) but it appears it
was incorrect. Instead of fixing reversed condition it broke a good one.

This patch was verified to actually fix SoC hanges caused by bgmac on
BCM47186B0.

Fixes: af747c037d46 ("net: ethernet: bgmac: convert to feature flags")
Fixes: 225eee2e0669 ("net: bgmac: Fix errant feature flag check")
Cc: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c