OSDN Git Service

net: stmmac: dwmac-qcom-ethqos: Respect phy-mode and TX delay
authorAndrew Halaney <ahalaney@redhat.com>
Tue, 11 Apr 2023 20:04:07 +0000 (15:04 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Apr 2023 10:50:47 +0000 (12:50 +0200)
commit164a9ebe97420cbe801140bb3de039695e09e205
treed6c250a376c9eff11e7582a60d05dfd3fceec975
parent33719b57f52e5b761234373f98f55f4e036d61c9
net: stmmac: dwmac-qcom-ethqos: Respect phy-mode and TX delay

The driver currently sets a MAC TX delay of 2 ns no matter what the
phy-mode is. If the phy-mode indicates the phy is in charge of the
TX delay (rgmii-txid, rgmii-id), don't do it in the MAC.

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c