Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-08 Thread Thinh Nguyen
gre...@linuxfoundation.org wrote: > On Fri, Jan 08, 2021 at 02:19:30AM +, Thinh Nguyen wrote: >> Hi Wesley, >> >> Felipe Balbi wrote: >>> Hi, >>> >>> Wesley Cheng writes: +void composite_reset(struct usb_gadget *gadget) +{ + /* + * Section 1.4.13 Standard Downstream

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-08 Thread Thinh Nguyen
Jack Pham wrote: > Hi Thinh, > > On Fri, Jan 08, 2021 at 02:19:30AM +, Thinh Nguyen wrote: >> Hi Wesley, >> >> Felipe Balbi wrote: >>> Hi, >>> >>> Wesley Cheng writes: +void composite_reset(struct usb_gadget *gadget) +{ + /* + * Section 1.4.13 Standard Downstream Port

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-08 Thread gre...@linuxfoundation.org
On Fri, Jan 08, 2021 at 02:19:30AM +, Thinh Nguyen wrote: > Hi Wesley, > > Felipe Balbi wrote: > > Hi, > > > > Wesley Cheng writes: > >> +void composite_reset(struct usb_gadget *gadget) > >> +{ > >> + /* > >> + * Section 1.4.13 Standard Downstream Port of the USB battery charging > >> +

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-08 Thread Jack Pham
Hi Thinh, On Fri, Jan 08, 2021 at 02:19:30AM +, Thinh Nguyen wrote: > Hi Wesley, > > Felipe Balbi wrote: > > Hi, > > > > Wesley Cheng writes: > >> +void composite_reset(struct usb_gadget *gadget) > >> +{ > >> + /* > >> + * Section 1.4.13 Standard Downstream Port of the USB battery

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-07 Thread Thinh Nguyen
Hi Wesley, Felipe Balbi wrote: > Hi, > > Wesley Cheng 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 >> +

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-05 Thread Felipe Balbi
Hi, Wesley Cheng 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

[PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2020-12-29 Thread Wesley Cheng
Add a specific composite reset API to differentiate between disconnect and reset events. This is needed for adjusting the current draw accordingly based on the USB battery charging specification. The device is only allowed to draw the 500/900 mA (HS/SS) while in the CONFIGURED state, and only

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2020-11-16 Thread Peter Chen
On 20-11-14 00:12:46, Wesley Cheng wrote: > Add a specific composite reset API to differentiate between disconnect and > reset events. This is needed for adjusting the current draw accordingly > based on the USB battery charging specification. The device is only allowed > to draw the 500/900 mA

[PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2020-11-14 Thread Wesley Cheng
Add a specific composite reset API to differentiate between disconnect and reset events. This is needed for adjusting the current draw accordingly based on the USB battery charging specification. The device is only allowed to draw the 500/900 mA (HS/SS) while in the CONFIGURED state, and only