[U-Boot] [RFC PATCH v1 3/9] sparc: Use microseconds instead of ticks for timeout

Francois Retief fgretief at spaceteq.co.za
Wed Oct 29 09:53:01 CET 2014


We now use the generic delay method which specifies the timeout as
microseconds instead of ticks.

Signed-off-by: Francois Retief <fgretief at spaceteq.co.za>
---

 drivers/net/greth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/greth.c b/drivers/net/greth.c
index c817af4..7784684 100644
--- a/drivers/net/greth.c
+++ b/drivers/net/greth.c
@@ -237,7 +237,7 @@ int greth_init_phy(greth_priv * dev, bd_t * bis)
        debug("GRETH PHY ADDRESS: %d\n", phyaddr);

        /* X msecs to ticks */
-       timeout = usec2ticks(GRETH_PHY_TIMEOUT_MS * 1000);
+       timeout = GRETH_PHY_TIMEOUT_MS * 1000;

        /* Get system timer0 current value
         * Total timeout is 5s
--
1.9.3


________________________________
Disclaimer and confidentiality note – refer to our website for further details: www.spaceteq.co.za <http://www.spaceteq.co.za/home/emaildisclaimer/>


More information about the U-Boot mailing list