]> git.baikalelectronics.ru Git - kernel.git/commit
ide: fix probing for hosts with serialized or IRQ sharing interfaces
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Jan 2008 19:13:04 +0000 (20:13 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Jan 2008 19:13:04 +0000 (20:13 +0100)
commitf51368addbfa1665c892e2bafc3ba2d8d39ca5bd
treee21987d2548594fef87b809da462088acad7c58a
parent0d361987ff3b2a5d2d0c76227e2abe7e1956ff26
ide: fix probing for hosts with serialized or IRQ sharing interfaces

After hwif_register_devices() IDE devices are ready to be used so
the way in which ide_device_add() works currently is racy for hosts
with serialized / IRQ sharing interfaces.

Fix ide_device_add() by looping over interfaces for probe_hwif(),
hwif_init() and hwif_register_devices() operations.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-probe.c