Commit ee1da69
net: stmmac: fix DMA error when resume with specific PHY
When suspend is performed, "Power down" cmd (PWD) is send to PHY BMCR register.
Some phy (RTL8211F) cut RXC clock. And when resume is called we perform
firstly SWR reset (in stmmac_hw_setup) and after with resume PHY (phy_start),
this sequence is wrong because SWR is failed due to RXC off.
This patch consist to resume firstly PHY and after we perform SWR reset
Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
Change-Id: Id7b0c552c34b4e4a407c016fbcbd6e3f7080634d
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/141914
Reviewed-by: CITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: Christophe ROULLIER <christophe.roullier@st.com>
Reviewed-by: CIBUILD <smet-aci-builds@lists.codex.cro.st.com>
Reviewed-by: Alexandre TORGUE <alexandre.torgue@st.com>
Tested-by: Christophe ROULLIER <christophe.roullier@st.com>1 parent c6b63cb commit ee1da69
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4488 | 4488 | | |
4489 | 4489 | | |
4490 | 4490 | | |
4491 | | - | |
4492 | | - | |
4493 | | - | |
4494 | 4491 | | |
4495 | 4492 | | |
4496 | 4493 | | |
| |||
4516 | 4513 | | |
4517 | 4514 | | |
4518 | 4515 | | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
4519 | 4520 | | |
4520 | 4521 | | |
4521 | 4522 | | |
| |||
4608 | 4609 | | |
4609 | 4610 | | |
4610 | 4611 | | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
4611 | 4615 | | |
4612 | 4616 | | |
4613 | 4617 | | |
| |||
4618 | 4622 | | |
4619 | 4623 | | |
4620 | 4624 | | |
4621 | | - | |
4622 | | - | |
4623 | | - | |
4624 | 4625 | | |
4625 | 4626 | | |
4626 | 4627 | | |
| |||
0 commit comments