]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/w1/masters/ds1wm.c
W1: ds1wm.c msleep for reset
[linux-2.6-omap-h63xx.git] / drivers / w1 / masters / ds1wm.c
index ea894bf181136d79053222eb102a383748c2e13f..29e144f81cbe2e8953f1947c745419d1894a0620 100644 (file)
@@ -160,8 +160,10 @@ static int ds1wm_reset(struct ds1wm_data *ds1wm_data)
         *     625 us - 60 us - 240 us - 100 ns = 324.9 us
         *
         * We'll wait a bit longer just to be sure.
+        * Was udelay(500), but if it is going to busywait the cpu that long,
+        * might as well come back later.
         */
-       udelay(500);
+       msleep(1);
 
        ds1wm_write_register(ds1wm_data, DS1WM_INT_EN,
                DS1WM_INTEN_ERBF | DS1WM_INTEN_ETMT | DS1WM_INTEN_EPD |