lkml.org 
[lkml]   [2021]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect
Date

Hi,

Wesley Cheng <wcheng@codeaurora.org> writes:
> +void composite_reset(struct usb_gadget *gadget)
> +{
> + /*
> + * Section 1.4.13 Standard Downstream Port of the USB battery charging
> + * specification v1.2 states that a device connected on a SDP shall only
> + * draw at max 100mA while in a connected, but unconfigured state.

The requirements are different, though. I think OTG spec has some extra
requirements where only 8mA can be drawn max. You need to check for the
otg flag. Moreover, USB3+ spec has units of 150mA meaning the device
can't draw 100mA (IIRC).

--
balbi

\
 
 \ /
  Last update: 2021-01-05 14:16    [W:0.066 / U:1.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site