]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: freescale: ucc_geth: Hardcode the preamble length to 7 bytes
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 3 Dec 2024 12:43:18 +0000 (13:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2024 13:41:53 +0000 (13:41 +0000)
commitdba25f75383fd8c2fe6f0390aa7f7a3b0dd72a63
tree7b465a6e67fc3ce485aa42ffbe602320a88fc418
parent270ec339126a09564fab67209da8330a20fe446f
net: freescale: ucc_geth: Hardcode the preamble length to 7 bytes

The preamble length can be configured in ucc_geth, however it just
ends-up always being configured to 7 bytes, as nothing ever changes the
default value of 7.

Make that value the default value when the MACCFG2 register gets
initialized, and remove the code to configure that value altogether.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/freescale/ucc_geth.h