]> git.baikalelectronics.ru Git - kernel.git/commit
USB: musb: dsps: drop duplicate phy initialisation
authorJohan Hovold <johan@kernel.org>
Mon, 23 Apr 2018 13:50:00 +0000 (08:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 14:02:13 +0000 (16:02 +0200)
commitcc247b36af89f490c04ec3ac49b8ca69b77936b1
tree8036fc6a7c7f26ef33d9d8038c5b29f30de6a946
parenta866fc8761c8db05785dd7da41340404df0c0f32
USB: musb: dsps: drop duplicate phy initialisation

Since commit cb5772aff60d ("usb: musb: core: call init and shutdown for
the usb phy") the musb USB phy is initialised by musb_core, but the
original initialisation in the dsps-glue init callback was left in
place resulting in two calls to phy init during probe (and similarly,
two shutdowns on remove).

Drop the duplicate phy init and shutdown calls from the dsps glue in
favour of the ones in musb core, which other glue drivers rely on.

Note however that any generic phy is still initialised in the glue init
callback (just as for the other drivers).

Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c