maple: improve detection of attached peripherals
Adrian McMenamin [Mon, 11 Feb 2008 00:25:02 +0000 (00:25 +0000)]
Improve device detection for maple through longer delay

Experience suggests that a much longer delay in setting up the Maple bus
on the Dreamcast leads to better hardware detection.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

drivers/sh/maple/maple.c

index 616e226..9cfcfd8 100644 (file)
@@ -659,7 +659,6 @@ static int __init maple_bus_init(void)
                goto cleanup_device;
 
        retval = driver_register(&maple_dummy_driver.drv);
-
        if (retval)
                goto cleanup_bus;
 
@@ -705,7 +704,7 @@ static int __init maple_bus_init(void)
                mdev[i]->mq->length = 0;
                maple_add_packet(mdev[i]->mq);
                /* delay aids hardware detection */
-               udelay(20);
+               mdelay(5);
                subdevice_map[i] = 0;
        }