USB Gadget: Verify VBUS current before setting the device self-powered bit

Acked-by: David Brownell <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Praveena Nadahally <[email protected]>
Signed-off-by: Parirajan Muthalagu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

2 files changed