hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/base/dd.c
....@@ -677,7 +677,12 @@
677677 calltime = ktime_get();
678678 ret = really_probe(dev, drv);
679679 rettime = ktime_get();
680
- pr_debug("probe of %s returned %d after %lld usecs\n",
680
+ /*
681
+ * Don't change this to pr_debug() because that requires
682
+ * CONFIG_DYNAMIC_DEBUG and we want a simple 'initcall_debug' on the
683
+ * kernel commandline to print this all the time at the debug level.
684
+ */
685
+ printk(KERN_DEBUG "probe of %s returned %d after %lld usecs\n",
681686 dev_name(dev), ret, ktime_us_delta(rettime, calltime));
682687 return ret;
683688 }
....@@ -1088,7 +1093,11 @@
10881093 return 0;
10891094 } else if (ret < 0) {
10901095 dev_dbg(dev, "Bus failed to match device: %d\n", ret);
1091
- return ret;
1096
+ /*
1097
+ * Driver could not match with device, but may match with
1098
+ * another device on the bus.
1099
+ */
1100
+ return 0;
10921101 } /* ret > 0 means positive match */
10931102
10941103 if (driver_allows_async_probing(drv)) {