]> git.baikalelectronics.ru Git - kernel.git/commit
usb: otg: enable regulator only on cable/device connect
authorHema HK <hemahk@ti.com>
Thu, 17 Feb 2011 06:36:04 +0000 (12:06 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Feb 2011 19:11:46 +0000 (21:11 +0200)
commitdd2f35c469453dcc073a7216e471c2086d20d507
tree4c784d66bf2d7fd79449f55973d75f83db1a0188
parentc1fd4881cfc286cf6f0c082e595f5ec2f412b0c0
usb: otg: enable regulator only on cable/device connect

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: Hema HK <hemahk@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/twl6030-usb.c