[PATCH 6/9] phy: renesas: ethernet serdes: improve stability after reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a slight difference in SerDes hardware behavior between each
version after resetting. This step is to ensure the stable condition of
initialization, especially for R-Car S4 v1.1 .

Signed-off-by: Michael Dege <michael.dege@xxxxxxxxxxx>
---
 drivers/phy/renesas/renesas-ether-serdes.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/phy/renesas/renesas-ether-serdes.c b/drivers/phy/renesas/renesas-ether-serdes.c
index db6426a5fd1d..683409d5e0f9 100644
--- a/drivers/phy/renesas/renesas-ether-serdes.c
+++ b/drivers/phy/renesas/renesas-ether-serdes.c
@@ -265,7 +265,12 @@ static int renesas_eth_serdes_hw_init(struct renesas_eth_serdes_channel *channel

        reset_control_reset(dd->reset);

-       usleep_range(1000, 2000);
+       /* There is a slight difference in SerDes hardware behavior between
+        * each version after resetting. This step is to ensure the stable
+        * condition of initialization, especially for R-Car S4 v1.1.
+        */
+       mdelay(1);
+       iowrite32(0, dd->addr + RENESAS_ETH_SERDES_LOCAL_OFFSET);

        ret = renesas_eth_serdes_common_init_ram(dd);
        if (ret)
--
2.34.1

________________________________

Renesas Electronics Europe GmbH
Registered Office: Arcadiastrasse 10
DE-40472 Duesseldorf
Commercial Registry: Duesseldorf, HRB 3708
Managing Director: Carsten Jauch
VAT-No.: DE 14978647
Tax-ID-No: 105/5839/1793

Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux