]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc2/gadget: fix phy initialization sequence
authorKamil Debski <k.debski@samsung.com>
Tue, 9 Sep 2014 08:44:09 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:40:59 +0000 (13:40 -0700)
commit93ce959d5de3c9b1ca40b072dbd67cce07d34c5b
tree90f9bd160c3c48d6539e66c9b68593977680bd2e
parent2290f23673bd5d0863acfdb52665c5f29681ec0b
usb: dwc2/gadget: fix phy initialization sequence

commit ca2c5ba80f823a38c4aae506e2f03c1afb076b0a upstream.

In the Generic PHY Framework a NULL phy is considered to be a valid phy
thus the "if (hsotg->phy)" check does not give us the information whether
the Generic PHY Framework is used.

In addition to the above this patch also removes phy_init from probe and
phy_exit from remove. This is not necessary when init/exit is done in the
s3c_hsotg_phy_enable/disable functions.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c