Files
linux-stable-mirror/include/linux
Jianheng ZhangandJakub Kicinski 37e4b8df27 net: stmmac: fix FPE events losing
The status bits of register MAC_FPE_CTRL_STS are clear on read. Using
32-bit read for MAC_FPE_CTRL_STS in dwmac5_fpe_configure() and
dwmac5_fpe_send_mpacket() clear the status bits. Then the stmmac interrupt
handler missing FPE event status and leads to FPE handshaking failure and
retries.
To avoid clear status bits of MAC_FPE_CTRL_STS in dwmac5_fpe_configure()
and dwmac5_fpe_send_mpacket(), add fpe_csr to stmmac_fpe_cfg structure to
cache the control bits of MAC_FPE_CTRL_STS and to avoid reading
MAC_FPE_CTRL_STS in those methods.

Fixes: 5a5586112b ("net: stmmac: support FPE link partner hand-shaking procedure")
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jianheng Zhang <Jianheng.Zhang@synopsys.com>
Link: https://lore.kernel.org/r/CY5PR12MB637225A7CF529D5BE0FBE59CBF81A@CY5PR12MB6372.namprd12.prod.outlook.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-12-04 18:35:19 -08:00
..
2023-10-24 13:08:14 -07:00
2023-11-04 10:22:52 +01:00
2023-11-10 13:54:58 +00:00
2023-11-01 22:33:53 -07:00
2023-10-30 21:48:22 -04:00
2023-10-25 20:19:00 +02:00
2023-11-13 11:02:30 +00:00
2023-11-15 04:18:31 +01:00
2023-11-10 09:20:55 +01:00
2023-11-01 10:02:18 +00:00
2023-12-04 18:35:19 -08:00
2023-11-03 09:16:42 +00:00
2023-10-27 18:04:28 +08:00