Skip to content
Snippets Groups Projects
Commit a781bdea authored by larry's avatar larry Committed by Oleksii Kutuzov
Browse files

net: stmmac: mediatek: Disable the RX EEE function of the RTL PHY


[Detail]
The enablement of the RX EEE feature within the RTL PHY is known to
disrupt DMA initialization and software reset operations.

Consequently, to prevent such complications, this feature is disabled
by default.

Change-Id: I801bd5d0f61906d94e6551c064bd7e41273a367d
Signed-off-by: default avatarlarry <larry.li@mediatek.com>
parent 2672e30f
No related branches found
No related tags found
1 merge request!15[UPSTREAM] Add miscellaneous patches from Mediatek's Release 24.0
...@@ -615,6 +615,7 @@ static int mediatek_dwmac_common_data(struct platform_device *pdev, ...@@ -615,6 +615,7 @@ static int mediatek_dwmac_common_data(struct platform_device *pdev,
struct plat_stmmacenet_data *plat, struct plat_stmmacenet_data *plat,
struct mediatek_dwmac_plat_data *priv_plat) struct mediatek_dwmac_plat_data *priv_plat)
{ {
struct device_node *np = pdev->dev.of_node;
int i; int i;
plat->interface = priv_plat->phy_mode; plat->interface = priv_plat->phy_mode;
...@@ -652,6 +653,14 @@ static int mediatek_dwmac_common_data(struct platform_device *pdev, ...@@ -652,6 +653,14 @@ static int mediatek_dwmac_common_data(struct platform_device *pdev,
plat->tx_queues_cfg[i].tbs_en = 1; plat->tx_queues_cfg[i].tbs_en = 1;
} }
/* EEE may lead to FSM error,
* mask PRTYEN bit, if EEE is required
*/
if (of_property_read_bool(np, "snps,en-rx-lpi-clockgating"))
plat->rx_clk_runs_in_lpi = 0;
else
plat->rx_clk_runs_in_lpi = 1;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment