• Hema HK's avatar
    usb: otg: enable regulator only on cable/device connect · 6dc2503b
    Hema HK authored
    Remove the regulator enable while driver loading and enable it only when
    the cable/device is connected and disable it when disconnected.
    
    Remove the configuration of config_state and config_trans register
    configuration as these registers are programmed when regulator
    enable/disable is called.
    Signed-off-by: default avatarHema HK <hemahk@ti.com>
    Cc: Tony Lindgren <tony@atomide.com>
    Cc: Paul Walmsley <paul@pwsan.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    6dc2503b
twl6030-usb.c 12.2 KB