Comments
Patch
@@ -847,14 +847,20 @@
do_scan_bus = 1;
while (do_scan_bus) {
int link;
+ printk_debug("In scan bus of %s\n", dev_path(busdev));
new_max = busdev->ops->scan_bus(busdev, max);
do_scan_bus = 0;
for (link = 0; link < busdev->links; link++) {
if (busdev->link[link].reset_needed) {
+ printk_debug("Reset needed for link device: %s\n",
+ dev_path(busdev->link[link].dev));
+
if (reset_bus(&busdev->link[link])) {
do_scan_bus = 1;
} else {
busdev->bus->reset_needed = 1;
+ printk_debug("Setting reset_needed for %s to 1\n",
+ dev_path(busdev));
}
}
}
@@ -1081,7 +1081,9 @@
* scan the bus behind that child.
*/
for (child = bus->children; child; child = child->sibling) {
+ printk_debug("before scan bus of %s\n", dev_path(child));
max = scan_bus(child, max);
+ printk_debug("after scan bus of %s\n", dev_path(child));
}
/* We've scanned the bus and so we know all about what's on the other