]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fec: do not allow enabling PPS and PEROUT simultaneously
authorWei Fang <wei.fang@nxp.com>
Tue, 25 Nov 2025 08:52:09 +0000 (16:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:24:56 +0000 (06:24 +0900)
commitca2964a7cb1ee87d4663cf4d40cfc506283c4fe4
tree549ef2587bf4fab891c5f79047b35262271e5ded
parent10bc6ce79eaab8d2466a40c728d945744869ca54
net: fec: do not allow enabling PPS and PEROUT simultaneously

[ Upstream commit c0a1f3d7e128e8d1b6c0fe09c68eac5ebcf677c8 ]

In the current driver, PPS and PEROUT use the same channel to generate
the events, so they cannot be enabled at the same time. Otherwise, the
later configuration will overwrite the earlier configuration. Therefore,
when configuring PPS, the driver will check whether PEROUT is enabled.
Similarly, when configuring PEROUT, the driver will check whether PPS
is enabled.

Fixes: 350749b909bf ("net: fec: Add support for periodic output signal of PPS")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20251125085210.1094306-4-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/fec_ptp.c