]> 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)
commit1c4eefeca6ea15f7ee90b6a302e86d436b5ea50f
tree7adb83120ea801fc50d2dd227612171401a180ba
parentaa8c65484a1fcd60d9797f707db64f7acc1cf074
Revert "net/ibm/emac: wrong bit is used for STA control"

This reverts commit 1d6d7535f4c59ce59f08d72ad9677130165b5d45.

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