Skip to content

Commit cd0b42c

Browse files
ruehlchrisgregkh
authored andcommitted
usb: chipidea: put hw_phymode_configure before ci_usb_phy_init
hw_phymode_configure configures the PORTSC registers and allow the following phy_inits to operate on the right parameters. This fix a problem where the UPLI (ISP1504) could not be detected, because the Viewport was not available and read the viewport return 0's only. Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3b5d3e6 commit cd0b42c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/chipidea/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ static int ci_hdrc_probe(struct platform_device *pdev)
559559
return -ENODEV;
560560
}
561561

562+
hw_phymode_configure(ci);
563+
562564
ret = ci_usb_phy_init(ci);
563565
if (ret) {
564566
dev_err(dev, "unable to init phy: %d\n", ret);
@@ -576,8 +578,6 @@ static int ci_hdrc_probe(struct platform_device *pdev)
576578

577579
ci_get_otg_capable(ci);
578580

579-
hw_phymode_configure(ci);
580-
581581
dr_mode = ci->platdata->dr_mode;
582582
/* initialize role(s) before the interrupt is requested */
583583
if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) {

0 commit comments

Comments
 (0)