kernel_samsung_a53x/drivers/net/ethernet/freescale
Wei Fang 7fc967d5e2 net: fec: avoid lock evasion when reading pps_enable
[ Upstream commit 3b1c92f8e5371700fada307cc8fd2c51fa7bc8c1 ]

The assignment of pps_enable is protected by tmreg_lock, but the read
operation of pps_enable is not. So the Coverity tool reports a lock
evasion warning which may cause data race to occur when running in a
multithread environment. Although this issue is almost impossible to
occur, we'd better fix it, at least it seems more logically reasonable,
and it also prevents Coverity from continuing to issue warnings.

Fixes: 278d24047891 ("net: fec: ptp: Enable PPS output based on ptp clock")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://lore.kernel.org/r/20240521023800.17102-1-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:09 +01:00
..
dpaa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpaa2 dpaa2-eth: increase the needed headroom to account for alignment 2024-11-18 12:11:10 +01:00
enetc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fman Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fs_enet Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_main.c net: fec: fix the unhandled context fault from smmu 2024-11-18 12:13:01 +01:00
fec_mpc52xx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fec_mpc52xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_mpc52xx_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_ptp.c net: fec: avoid lock evasion when reading pps_enable 2024-11-19 12:27:09 +01:00
fsl_pq_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gianfar.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
gianfar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gianfar_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucc_geth.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
ucc_geth.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucc_geth_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgmac_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00