lkml.org 
[lkml]   [2013]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 10/12] SCSI: nsp32: use mdelay instead of large udelay constants
    Date
    3.0-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Arnd Bergmann <arnd@arndb.de>

    commit b497ceb964a80ebada3b9b3cea4261409039e25a upstream.

    ARM cannot handle udelay for more than 2 miliseconds, so we
    should use mdelay instead for those.

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Acked-by: GOTO Masanori <gotom@debian.or.jp>
    Cc: YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp>
    Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

    --- a/drivers/scsi/nsp32.c
    +++ b/drivers/scsi/nsp32.c
    @@ -2927,7 +2927,7 @@ static void nsp32_do_bus_reset(nsp32_hw_
    * reset SCSI bus
    */
    nsp32_write1(base, SCSI_BUS_CONTROL, BUSCTL_RST);
    - udelay(RESET_HOLD_TIME);
    + mdelay(RESET_HOLD_TIME / 1000);
    nsp32_write1(base, SCSI_BUS_CONTROL, 0);
    for(i = 0; i < 5; i++) {
    intrdat = nsp32_read2(base, IRQ_STATUS); /* dummy read */



    \
     
     \ /
      Last update: 2013-08-13 09:21    [W:4.898 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site