Commit 0bcff9ea authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi

usb: gadget: r8a66597-udc: set value for common is_selfpowered

Set value for common is_selfpowered.
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 58ae8e0b
...@@ -1803,6 +1803,7 @@ static int r8a66597_set_selfpowered(struct usb_gadget *gadget, int is_self) ...@@ -1803,6 +1803,7 @@ static int r8a66597_set_selfpowered(struct usb_gadget *gadget, int is_self)
{ {
struct r8a66597 *r8a66597 = gadget_to_r8a66597(gadget); struct r8a66597 *r8a66597 = gadget_to_r8a66597(gadget);
gadget->is_selfpowered = (is_self != 0);
if (is_self) if (is_self)
r8a66597->device_status |= 1 << USB_DEVICE_SELF_POWERED; r8a66597->device_status |= 1 << USB_DEVICE_SELF_POWERED;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment