]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net/ibm/emac: wrong bit is used for STA control"
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 7 Dec 2018 04:05:04 +0000 (15:05 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Dec 2018 06:37:27 +0000 (22:37 -0800)
commit106d149dd8c0e40ac06f761fa33e7943f3894c33
tree7adb83120ea801fc50d2dd227612171401a180ba
parent7bb70ddfd8596ffaf32fe47bdc1681eb0d1e799d
Revert "net/ibm/emac: wrong bit is used for STA control"

This reverts commit 57f64bc8f6dfd472d1414cedcad4e3b55132c0df.

This commit is completely bogus. The STACR register has two formats, old
and new, depending on the version of the IP block used. There's a pair of
device-tree properties that can be used to specify the format used:

has-inverted-stacr-oc
has-new-stacr-staopc

What this commit did was to change the bit definition used with the old
parts to match the new parts. This of course breaks the driver on all
the old ones.

Instead, the author should have set the appropriate properties in the
device-tree for the variant used on his board.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/emac/emac.h