lkml.org 
[lkml]   [2013]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/16] usb: musb: dsps: init / shutdown the phy
    Date
    If the init / shutdown function of the phy moves out of dsps into the
    phy driver, then dsps needs to call the callbacks of the phy driver to
    ensure that this happens.

    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    ---
    drivers/usb/musb/musb_dsps.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
    index 5233804..603ea74 100644
    --- a/drivers/usb/musb/musb_dsps.c
    +++ b/drivers/usb/musb/musb_dsps.c
    @@ -428,6 +428,8 @@ static int dsps_musb_init(struct musb *musb)
    goto err0;
    }

    + usb_phy_init(musb->xceiv);
    +
    setup_timer(&glue->timer[pdev->id], otg_timer, (unsigned long) musb);

    /* Reset the musb */
    @@ -463,6 +465,7 @@ static int dsps_musb_exit(struct musb *musb)

    /* Shutdown the on-chip PHY and its PLL. */
    musb_dsps_phy_control(glue, pdev->id, 0);
    + usb_phy_shutdown(musb->xceiv);

    /* NOP driver needs change if supporting dual instance */
    usb_put_phy(musb->xceiv);
    --
    1.8.3.2


    \
     
     \ /
      Last update: 2013-07-22 20:41    [W:3.830 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site