Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: Don't print a warning if interface driver rebind is deferred at resume

Interface drivers like btusb that don't support reset-resume will be
rebound at resume if port was reset. Rebind is done during the pm_ops
.complete callback when probe returns EPROBE_DEFER as default.

Remove the "rebind failed: -517" message.
Device probe will eventually take place later.

[one-liner by Jerry Snitselaar posted in a mailing list question -Mathias]
Suggested-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mathias Nyman and committed by
Greg Kroah-Hartman
c0f3ed87 77be4c87

+1 -1
+1 -1
drivers/usb/core/driver.c
··· 1070 1070 if (!intf->dev.power.is_prepared) { 1071 1071 intf->needs_binding = 0; 1072 1072 rc = device_attach(&intf->dev); 1073 - if (rc < 0) 1073 + if (rc < 0 && rc != -EPROBE_DEFER) 1074 1074 dev_warn(&intf->dev, "rebind failed: %d\n", rc); 1075 1075 } 1076 1076 }