Bladeren bron

USB: ohci-omap: defer probe if PHY is missing

Defer probe if PHY is missing. E.g. on Nokia 770 several modules needs
to be loaded to get the PHY going and ohci-omap should wait for those.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Aaro Koskinen 8 jaren geleden
bovenliggende
commit
bf2b419aa1
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      drivers/usb/host/ohci-omap.c

+ 1 - 2
drivers/usb/host/ohci-omap.c

@@ -227,8 +227,7 @@ static int ohci_omap_reset(struct usb_hcd *hcd)
 				return status;
 				return status;
 			}
 			}
 		} else {
 		} else {
-			dev_err(hcd->self.controller, "can't find phy\n");
-			return -ENODEV;
+			return -EPROBE_DEFER;
 		}
 		}
 		ohci->start_hnp = start_hnp;
 		ohci->start_hnp = start_hnp;
 	}
 	}