Skip to content

Commit f5c9c30

Browse files
ozbenhgregkh
authored andcommitted
Revert "net/ibm/emac: wrong bit is used for STA control"
[ Upstream commit 5b3279e ] This reverts commit 624ca9c. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7fafda1 commit f5c9c30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/ibm/emac

‎drivers/net/ethernet/ibm/emac/emac.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ struct emac_regs {
231231
#define EMAC_STACR_PHYE 0x00004000
232232
#define EMAC_STACR_STAC_MASK 0x00003000
233233
#define EMAC_STACR_STAC_READ 0x00001000
234-
#define EMAC_STACR_STAC_WRITE 0x00000800
234+
#define EMAC_STACR_STAC_WRITE 0x00002000
235235
#define EMAC_STACR_OPBC_MASK 0x00000C00
236236
#define EMAC_STACR_OPBC_50 0x00000000
237237
#define EMAC_STACR_OPBC_66 0x00000400

0 commit comments

Comments
 (0)