Re: [bug report] usb: phy: Add USB charger support

2017-08-28 Thread Baolin Wang
Hi Felipe, On 28 August 2017 at 15:58, Felipe Balbi <felipe.ba...@linux.intel.com> wrote: > > Hi, > > Baolin Wang <baolin.w...@linaro.org> writes: >> Hi Dan, >> >> On 25 August 2017 at 20:20, Dan Carpenter <dan.carpen...@oracle.com> wrote: >>

[PATCH] usb: phy: Avoid unchecked dereference warning

2017-08-28 Thread Baolin Wang
Move the USB phy NULL checking before issuing usb_phy_set_charger_current() to avoid unchecked dereference warning. Signed-off-by: Baolin Wang <baolin.w...@linaro.org> --- include/linux/usb/phy.h |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/usb/p

Re: [PATCH resend 2/2] usb: phy: mxs: add usb charger type detection

2017-09-04 Thread Baolin Wang
USB charger part: Reviewed-by: Baolin Wang <baolin.w...@linaro.org> -- Baolin.wang Best Regards -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH resend 1/2] usb: chipidea: do charger detection in vbus session

2017-09-04 Thread Baolin Wang
get, int is_active) > gadget_ready = 1; > spin_unlock_irqrestore(>lock, flags); > > + if (ci->usb_phy) > + usb_phy_set_charger_state(ci->usb_phy, is_active ? > + USB_CHARGER_PRESENT : USB_CHARGER

[PATCH] usb: dwc3: of-simple: Add compatible for Spreadtrum SC9860 platform

2017-08-30 Thread Baolin Wang
Add compatible string to use this generic glue layer to support Spreadtrum SC9860 platform's dwc3 controller. Signed-off-by: Baolin Wang <baolin.w...@spreadtrum.com> --- drivers/usb/dwc3/dwc3-of-simple.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-of-simpl

[PATCH] usb: phy: Factor out the usb charger initialization

2017-12-06 Thread Baolin Wang
charger initialization. Signed-off-by: Baolin Wang <baolin.w...@linaro.org> --- drivers/usb/phy/phy.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index f97cb47..bceb2c9 100644 --- a/drivers/usb/phy/phy.c

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-05 Thread Baolin Wang
On 5 March 2018 at 19:14, Roger Quadros <rog...@ti.com> wrote: > On 05/03/18 13:06, Felipe Balbi wrote: >> >> Hi, >> >> Baolin Wang <baolin.w...@linaro.org> writes: >>>>> Roger Quadros <rog...@ti.com> writes: >>>>>>>

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-03-05 Thread Baolin Wang
Hi Roger, On 5 March 2018 at 17:45, Roger Quadros wrote: > Felipe, > > On 05/03/18 10:49, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: Roger Quadros writes: > In the following test we get stuck by sleeping forever in

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-02-27 Thread Baolin Wang
Hi Roger, On 27 February 2018 at 19:22, Roger Quadros wrote: > In the following test we get stuck by sleeping forever in _dwc3_set_mode() > after which dual-role switching doesn't work. > > On dra7-evm's dual-role port, > - Load g_zero gadget driver and enumerate to host > -

<    1   2   3   4   5   6