net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs
authorFurong Xu <0x1207@gmail.com>
Tue, 31 Oct 2023 02:27:29 +0000 (10:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2023 09:13:55 +0000 (09:13 +0000)
commitdb456d90a4c1b43b6251fa4348c8adc59b583274
tree1707b5082a8965f66b9ced84d0566b63cce94a55
parente8ae8ad479e2d037daa33756e5e72850a7bd37a9
net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs

From XGMAC Core 3.20 and later, each Flexible PPS has individual PPSEN bit
to select Fixed mode or Flexible mode. The PPSEN must be set, or it stays
in Fixed PPS mode by default.
XGMAC Core prior 3.20, only PPSEN0(bit 4) is writable. PPSEN{1,2,3} are
read-only reserved, and they are already in Flexible mode by default, our
new code always set PPSEN{1,2,3} do not make things worse ;-)

Fixes: 95eaf3cd0a90 ("net: stmmac: dwxgmac: Add Flexible PPS support")
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Furong Xu <0x1207@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c