Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: add a new phy_device flag to keep preamble before sfd

Add a new flag, PHY_F_KEEP_PREAMBLE_BEFORE_SFD, to indicate that the PHY
shall not remove the preamble before the SFD if it supports it. MACs
that do not support receiving frames without a preamble can set this
flag.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260120203905.23805-2-eichest@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Stefan Eichenberger and committed by
Jakub Kicinski
2153e151 31d44a37

+3 -2
+3 -2
include/linux/phy.h
··· 810 810 }; 811 811 812 812 /* Generic phy_device::dev_flags */ 813 - #define PHY_F_NO_IRQ 0x80000000 814 - #define PHY_F_RXC_ALWAYS_ON 0x40000000 813 + #define PHY_F_NO_IRQ 0x80000000 814 + #define PHY_F_RXC_ALWAYS_ON 0x40000000 815 + #define PHY_F_KEEP_PREAMBLE_BEFORE_SFD 0x20000000 815 816 816 817 #define to_phy_device(__dev) container_of_const(to_mdio_device(__dev), struct phy_device, mdio) 817 818