Skip to content

Commit

Permalink
maple: improve detection of attached peripherals
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian McMenamin authored and Paul Mundt committed Feb 14, 2008
1 parent 43081e1 commit b770d6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/sh/maple/maple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b770d6b

Please sign in to comment.