atm: he: use mdelay instead of large udelay constants
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2013 14:21:36 +0000 (15:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 17:26:48 +0000 (13:26 -0400)
ARM cannot handle udelay for more than 2 miliseconds, and
it is rather bad style to block the cpu for 16ms anyway,
so let's use msleep instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Cc: linux-atm-general@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c

index d6891267f5bbcc9be3cc79b4abc5472d8cb6d2d6..507362a76a736b624aab235bf614b2830d677239 100644 (file)
@@ -1055,7 +1055,7 @@ static int he_start(struct atm_dev *dev)
        he_writel(he_dev, 0x0, RESET_CNTL);
        he_writel(he_dev, 0xff, RESET_CNTL);
 
-       udelay(16*1000);        /* 16 ms */
+       msleep(16);     /* 16 ms */
        status = he_readl(he_dev, RESET_CNTL);
        if ((status & BOARD_RST_STATUS) == 0) {
                hprintk("reset failed\n");