Re: [balbi-usb:testing/next 64/67] otg.c:undefined reference to `usb_gadget_vbus_disconnect'

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 09:01:55AM +0300, Felipe Balbi wrote: > Felipe Balbi writes: > > Here's an updated version: > > From d45bdfafc3143dc7acc9d71131807d3e30ab7bcd Mon Sep 17 00:00:00 2001 > From: Felipe Balbi > Date: Tue, 31 May

Re: [PATCH v7 2/4] usb: dwc3: add dual-role support

2016-06-13 Thread Roger Quadros
Peter, On 12/06/16 12:11, Peter Chen wrote: > On Fri, Jun 10, 2016 at 04:17:28PM +0300, Roger Quadros wrote: >> Register with the USB OTG/DRD core. Since we don't support >> OTG yet we just work as a dual-role device even >> if device tree says "otg". >> >> Get ID and VBUS information from the

Re: [balbi-usb:testing/next 64/67] otg.c:undefined reference to `usb_gadget_vbus_disconnect'

2016-06-13 Thread Felipe Balbi
Felipe Balbi writes: > [ Unknown signature status ] > > Hi, > > Peter Chen writes: >> On Wed, Jun 08, 2016 at 12:59:51PM +0300, Felipe Balbi wrote: >>> >>> Hi, >>> >>> kbuild test robot writes: >>> > tree:

Re: [RFC PATCHv3] usb: USB Type-C Connector Class

2016-06-13 Thread Heikki Krogerus
On Sat, Jun 11, 2016 at 09:05:46AM +0200, Oliver Neukum wrote: > On Fri, 2016-06-10 at 17:34 +0300, Heikki Krogerus wrote: > > +static ssize_t > > +preferred_role_store(struct device *dev, struct device_attribute > > *attr, > > +const char *buf, size_t size) > > +{ > > +

[PATCH v11 09/14] usb: of: add an API to get OTG device from USB controller node

2016-06-13 Thread Roger Quadros
The OTG controller and the USB controller can be linked via the 'otg-controller' property in the USB controller's device node. of_usb_get_otg() can be used to get the OTG controller device from the USB controller's device node. Signed-off-by: Roger Quadros Acked-by: Peter Chen

[RESEND PATCH v11 4/4] power: wm831x_power: Support USB charger current limit management

2016-06-13 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others.

RE: [PATCH v10 09/14] usb: of: add an API to get OTG device from USB controller node

2016-06-13 Thread Jun Li
Hi > diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c > index e3d0161..d7ec471 100644 > --- a/drivers/usb/common/common.c > +++ b/drivers/usb/common/common.c > @@ -238,6 +238,33 @@ int of_usb_update_otg_caps(struct device_node *np, } >

Re: [PATCH v5 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-06-13 Thread Heiko Stübner
Am Montag, 13. Juni 2016, 10:10:09 schrieb Frank Wang: > Signed-off-by: Frank Wang looks really cool now, thanks for addressing all the review comments Reviewed-by: Heiko Stuebner > --- > > Changes in v5: > - Added 'reg' property to identify the

[RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework

2016-06-13 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from

[RESEND PATCH v11 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-06-13 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not

[RESEND PATCH v11 2/4] gadget: Support for the usb charger framework

2016-06-13 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. It will report to the usb charger when the gadget state is changed, then the usb charger can do the power things. Signed-off-by: Baolin Wang

[RESEND PATCH v11 3/4] gadget: Integrate with the usb gadget supporting for usb charger

2016-06-13 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger can implement the usb_charger_plug_by_gadget() function and usb_charger_exit() function by getting 'struct usb_charger' from 'struct gadget'. Signed-off-by: Baolin Wang ---

[PATCH] usb: gadget: udc: atmel: Also get regmap for at91sam9x5-pmc

2016-06-13 Thread Alexandre Belloni
The "atmel,at91sam9g45-udc" compatible UDC is also used on at91sam9x5 so it is also necessary to try to get the syscon for at91sam9x5-pmc. Fixes: 4747639f01c9 ("usb: gadget: atmel: access the PMC using regmap") Reported-by: Uwe Kleine-König Signed-off-by:

[PATCH net-next 3/3] r8152: save the speed

2016-06-13 Thread Hayes Wang
The user may change the speed. Use it to replace the default one. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

[PATCH net-next 0/3] r8152: code adjustment for PHY

2016-06-13 Thread Hayes Wang
These patches are for adjusting the code about PHY and setting speed. Hayes Wang (3): r8152: move the settings of PHY to a work queue r8152: move the setting for the default speed r8152: save the speed drivers/net/usb/r8152.c | 53 ++--- 1 file

[PATCH net-next 1/3] r8152: move the settings of PHY to a work queue

2016-06-13 Thread Hayes Wang
Move the settings of PHY to a work queue and schedule it after rtl_ops.init(). There are some reasons for this. First, the settings are only needed for the first time initialization or after the power down occurs. Second, the settings are independent with the others. Last, the settings may take

[PATCH net-next 2/3] r8152: move the setting for the default speed

2016-06-13 Thread Hayes Wang
Move calling set_speed() from open() to rtl_hw_phy_work_func_t(). Then, we would set the default speed only for first initialization or after resuming. Besides, the set_speed() could handle the flag of PHY_RESET which would be set in rtl_ops.hw_phy_cfg(). Signed-off-by: Hayes Wang

Re: [PATCH v10 08/14] usb: otg: add OTG/dual-role core

2016-06-13 Thread Roger Quadros
On 12/06/16 14:21, Peter Chen wrote: > On Fri, Jun 10, 2016 at 04:07:17PM +0300, Roger Quadros wrote: >> index dca7856..03f7204 100644 >> --- a/drivers/usb/Makefile >> +++ b/drivers/usb/Makefile >> @@ -59,5 +59,6 @@ obj-$(CONFIG_USB_RENESAS_USBHS)+= renesas_usbhs/ >> obj-$(CONFIG_USB_GADGET)

Re: [PATCH v11 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 10:55:12AM +0300, Roger Quadros wrote: > err1: > - if (ret != -EISNAM) > + if ((ret != -EISNAM)) Since you do not need above change. Expect above, I am ok with this patch. Acked-by: Peter Chen > dev_err(>dev, "failed to start

Re: [PATCH] usb: gadget: udc: atmel: Also get regmap for at91sam9x5-pmc

2016-06-13 Thread Alexandre Belloni
On 13/06/2016 at 10:56:08 +0200, Uwe Kleine-König wrote : > Hello, > > On Mon, Jun 13, 2016 at 10:47:30AM +0200, Alexandre Belloni wrote: > > The "atmel,at91sam9g45-udc" compatible UDC is also used on at91sam9x5 so it > > is also necessary to try to get the syscon for at91sam9x5-pmc. > > > >

Re: [RFC PATCHv3] usb: USB Type-C Connector Class

2016-06-13 Thread Heikki Krogerus
On Sat, Jun 11, 2016 at 11:03:53AM -0700, Guenter Roeck wrote: > On 06/11/2016 12:05 AM, Oliver Neukum wrote: > > On Fri, 2016-06-10 at 17:34 +0300, Heikki Krogerus wrote: > > > +static ssize_t > > > +preferred_role_store(struct device *dev, struct device_attribute > > > *attr, > > > +

Re: [PATCH v10 09/14] usb: of: add an API to get OTG device from USB controller node

2016-06-13 Thread Roger Quadros
On 13/06/16 11:13, Jun Li wrote: > Hi > >> diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c >> index e3d0161..d7ec471 100644 >> --- a/drivers/usb/common/common.c >> +++ b/drivers/usb/common/common.c >> @@ -238,6 +238,33 @@ int of_usb_update_otg_caps(struct device_node *np,

Re: [PATCH v7 2/4] usb: dwc3: add dual-role support

2016-06-13 Thread Roger Quadros
On 13/06/16 10:09, Roger Quadros wrote: > Peter, > > On 12/06/16 12:11, Peter Chen wrote: >> On Fri, Jun 10, 2016 at 04:17:28PM +0300, Roger Quadros wrote: >>> Register with the USB OTG/DRD core. Since we don't support >>> OTG yet we just work as a dual-role device even >>> if device tree says

Re: [PATCH v10 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 10:14:31AM +0300, Roger Quadros wrote: > On 12/06/16 14:36, Peter Chen wrote: > > On Fri, Jun 10, 2016 at 04:07:22PM +0300, Roger Quadros wrote: > >> > >> +/** > >> + * usb_otg_add_gadget_udc - adds a new gadget to the udc class driver list > >> + * @parent: the parent

Re: [PATCH v10 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 10:37:59AM +0300, Roger Quadros wrote: > On 13/06/16 10:20, Peter Chen wrote: > > On Mon, Jun 13, 2016 at 10:14:31AM +0300, Roger Quadros wrote: > >> On 12/06/16 14:36, Peter Chen wrote: > >>> On Fri, Jun 10, 2016 at 04:07:22PM +0300, Roger Quadros wrote: > >

[PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-13 Thread Roger Quadros
It provides APIs for the following tasks - Registering an OTG/dual-role capable controller - Registering Host and Gadget controllers to OTG core - Providing inputs to and kicking the OTG state machine Provide a dual-role device (DRD) state machine. DRD mode is a reduced functionality OTG mode.

Re: [PATCH v10 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Roger Quadros
On 13/06/16 10:20, Peter Chen wrote: > On Mon, Jun 13, 2016 at 10:14:31AM +0300, Roger Quadros wrote: >> On 12/06/16 14:36, Peter Chen wrote: >>> On Fri, Jun 10, 2016 at 04:07:22PM +0300, Roger Quadros wrote: +/** + * usb_otg_add_gadget_udc - adds a new gadget to the udc class

Re: [PATCH v10 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Roger Quadros
On 12/06/16 14:36, Peter Chen wrote: > On Fri, Jun 10, 2016 at 04:07:22PM +0300, Roger Quadros wrote: >> >> +/** >> + * usb_otg_add_gadget_udc - adds a new gadget to the udc class driver list >> + * @parent: the parent device to this udc. Usually the controller >> + * driver's device. > > It

[PATCH v11 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Roger Quadros
The OTG state machine needs a mechanism to start and stop the gadget controller as well as connect/disconnect from the bus. Add usb_gadget_start(), usb_gadget_stop() and usb_gadget_connect_control(). Introduce usb_otg_add_gadget_udc() to allow controller drivers to register a gadget controller

Re: [PATCH v11 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Roger Quadros
On 13/06/16 10:56, Peter Chen wrote: > On Mon, Jun 13, 2016 at 10:55:12AM +0300, Roger Quadros wrote: >> err1: >> -if (ret != -EISNAM) >> +if ((ret != -EISNAM)) > > Since you do not need above change. Ah :P, will fix it. > > Expect above, I am ok with this patch. > > Acked-by: Peter

[RESEND PATCH v11 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-06-13 Thread Baolin Wang
From: Baolin Wang Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices

[RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework

2016-06-13 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from

Re: [PATCH] usb: gadget: udc: atmel: Also get regmap for at91sam9x5-pmc

2016-06-13 Thread Uwe Kleine-König
Hello, On Mon, Jun 13, 2016 at 10:47:30AM +0200, Alexandre Belloni wrote: > The "atmel,at91sam9g45-udc" compatible UDC is also used on at91sam9x5 so it > is also necessary to try to get the syscon for at91sam9x5-pmc. > > Fixes: 4747639f01c9 ("usb: gadget: atmel: access the PMC using regmap") >

Re: usb: common: otg-fsm: add license to usb-otg-fsm

2016-06-13 Thread Peter Chen
On Sun, Jun 12, 2016 at 01:06:45PM +0200, Oscar wrote: > usb: common: otg-fsm: add license to usb-otg-fsm. > > Fix warning about tainted kernel because usb-otg-fsm has no license. > WARNING: with this patch usb-otg-fsm module can be loaded > but then the kernel hangs. Tested with a udoo quad

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 10:56:30AM +0300, Roger Quadros wrote: > It provides APIs for the following tasks > > - Registering an OTG/dual-role capable controller > - Registering Host and Gadget controllers to OTG core > - Providing inputs to and kicking the OTG state machine > > Provide a

Re: [BUG] cdc-acm: no data available after port open

2016-06-13 Thread Oliver Neukum
On Mon, 2016-06-13 at 00:37 +0200, Ladislav Michl wrote: > On Sun, Jun 12, 2016 at 11:03:45PM +0200, Ladislav Michl wrote: > > Once ttyACM0 starts behave strangely, read() returns only what's in buffer > > before > > ttyACM0 was opened and then hangs infinitely. As this bug is hard to > >

Re: uac2: diagnosing uac2 audio gadget problems

2016-06-13 Thread Peter Chen
On Wed, Jun 08, 2016 at 04:11:11PM -0700, Caleb Crome wrote: > > Here is the script I use for starting the gadget interface: > > cd /sys/kernel/config/usb_gadget > mkdir g1 > cd g1 > echo "0x1d6b" > idVendor > echo "0x0104" > idProduct > mkdir strings/0x409 > echo "0123456789" >

RE: [PATCH] USB: remove race condition in usbfs/libusb when using reap-after-disconnect

2016-06-13 Thread David Laight
From: Alan Stern > Sent: 10 June 2016 19:43 > Hans de Goede has reported a difficulty in the Linux port of libusb. > When a device is removed, the poll() system call in usbfs starts > returning POLLERR as soon as udev->state is set to > USB_STATE_NOTATTACHED, but the outstanding URBs are not

RE: [RESEND PATCH v11 3/4] gadget: Integrate with the usb gadget supporting for usb charger

2016-06-13 Thread Jun Li
Hi > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Baolin Wang > Sent: Monday, June 13, 2016 4:47 PM > To: ba...@kernel.org; gre...@linuxfoundation.org; s...@kernel.org; > dbarysh...@gmail.com; dw...@infradead.org > Cc:

RE: [RESEND PATCH v11 2/4] gadget: Support for the usb charger framework

2016-06-13 Thread Jun Li
Hi > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Baolin Wang > Sent: Monday, June 13, 2016 4:47 PM > To: ba...@kernel.org; gre...@linuxfoundation.org; s...@kernel.org; > dbarysh...@gmail.com; dw...@infradead.org > Cc:

[PATCH] usb: common: otg-fsm: add license to usb-otg-fsm

2016-06-13 Thread Oscar
Fix warning about tainted kernel because usb-otg-fsm has no license. WARNING: with this patch usb-otg-fsm module can be loaded but then the kernel will hang. Tested with a udoo quad board. Signed-off-by: Oscar Curero --- drivers/usb/common/usb-otg-fsm.c | 2 ++ 1 file

[PATCH v3 1/2] mfd: ti-smusbdig: Add support for the TI SM-USB-DIG

2016-06-13 Thread Andrew F. Davis
The TI SM-USB-DIG is a USB to SPI/I2C/1Wire/GPIO adapter. Add MFD core support. Signed-off-by: Andrew F. Davis --- Changes from v2: - Add missing dependency on USB, thanks kbuild test robot drivers/mfd/Kconfig | 9 +++ drivers/mfd/Makefile| 2 +

Re: [PATCH resend] USB: uas: Fix slave queue_depth not being set

2016-06-13 Thread Hans de Goede
Hi, On 13-06-16 14:05, Oliver Neukum wrote: On Tue, 2016-05-31 at 09:18 +0200, Hans de Goede wrote: Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level") removed the scsi_change_queue_depth() call from uas_slave_configure() assuming that the slave would inherit the host's

[PATCH] input: tablet: pegasus_notetaker: USB PM fixes

2016-06-13 Thread Martin Kepplinger
In close() we only need usb_autopm_put_interface(), in reset_resume() we need to set the device mode, and in suspend(), we must cancel the workqueue's work. Signed-off-by: Martin Kepplinger --- Thanks Oliver for these changes. For me, everything works as before. Dmitry, do

Re: [RESEND PATCH v11 2/4] gadget: Support for the usb charger framework

2016-06-13 Thread kbuild test robot
-to-deal-with-the-usb-gadget-power-negotation/20160613-165523 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next config: x86_64-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430 reproduce: # save the attached .config to linux build tree

Re: BUG: using smp_processor_id() in preemptible [00000000] code]

2016-06-13 Thread M G Berberich
Hello, Am Donnerstag, den 09. Juni schrieb Nadav Amit: > Alan Stern wrote: > > > On Thu, 9 Jun 2016, M G Berberich wrote: > > > >> With 4.7-rc2, after detecting a USB Mass Storage device > >> > >> [ 11.589843] usb-storage 4-2:1.0: USB Mass Storage device detected

Re: [RESEND PATCH v11 4/4] power: wm831x_power: Support USB charger current limit management

2016-06-13 Thread kbuild test robot
-to-deal-with-the-usb-gadget-power-negotation/20160613-165523 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next config: x86_64-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430 reproduce: # save the attached .config to linux build tree

Re: BUG: using smp_processor_id() in preemptible [00000000] code]

2016-06-13 Thread Adam Morrison
Hi, On Mon, Jun 13, 2016 at 4:06 PM, M G Berberich wrote: > Hello, > >> >> With 4.7-rc2, after detecting a USB Mass Storage device >> >> >> >> [ 11.589843] usb-storage 4-2:1.0: USB Mass Storage device detected >> >> >> >> a constant flow of kernel-BUGS is reported

Re: [PATCH] input: tablet: pegasus_notetaker: USB PM fixes

2016-06-13 Thread Oliver Neukum
On Mon, 2016-06-13 at 15:31 +0200, Martin Kepplinger wrote: > In close() we only need usb_autopm_put_interface(), in reset_resume() Sorry, that is a misunderstanding. You need not carry about power management in close() at all. But it must be balanced of course. Regards

Re: Multiple chatty devices on Intel 5 Series/3400 USB2 EHCI controller act erratic

2016-06-13 Thread Alan Stern
On Sun, 12 Jun 2016, Sean M. Pappalardo wrote: > > > On 06/12/2016 06:05 PM, Alan Stern wrote: > > Okay, thanks. I just wanted to be sure the patch was behaving as > > intended. It was, but since it didn't fix your problem the whole > > thing's a moot point. > > Anything else you'd like me

[PATCH] hid: migrate Dream Cheeky LED driver from USB misc to HID

2016-06-13 Thread Heiner Kallweit
The Dream Cheeky Webmail Notifier and Friends Alert are supported as part of usb/misc/usbled driver currently. This patch migrates the driver for these devices to the HID subsystem. Benefits: - Avoid using USB low-level calls and use the HID subsystem instead (as this device provides a USB HID

Re: [PATCH resend] USB: uas: Fix slave queue_depth not being set

2016-06-13 Thread Oliver Neukum
On Tue, 2016-05-31 at 09:18 +0200, Hans de Goede wrote: > Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level") > removed the scsi_change_queue_depth() call from uas_slave_configure() > assuming that the slave would inherit the host's queue_depth, which > that commit sets to the

Re: [RESENDING] dwc2: Using internal phy (fs mode) for STM32F4x9 platform

2016-06-13 Thread Maxime Coquelin
Hi, 2016-06-10 8:56 GMT+02:00 Felipe Balbi : > > Hi, > > John Youn writes: >> On 6/9/2016 10:18 AM, Bruno Herrera wrote: >>> Hello all, >>> I'm bringing the linux kernel for the STM32F4 MCU (mmu-less). This MCU >>> has two DWC2 cores on it:one for USB

[PATCH v3 2/2] i2c: ti-smusbdig: add TI SM-USB-DIG I2C bus driver

2016-06-13 Thread Andrew F. Davis
Add support for the I2C bus functionality of the TI SM-USB-DIG. Signed-off-by: Andrew F. Davis --- drivers/i2c/busses/Kconfig | 10 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-ti-smusbdig.c | 189 +++ 3 files

Re: [RESENDING] dwc2: Using internal phy (fs mode) for STM32F4x9 platform

2016-06-13 Thread Bruno Herrera
Hi On Mon, Jun 13, 2016 at 9:19 AM, Maxime Coquelin wrote: > Hi, > > 2016-06-10 8:56 GMT+02:00 Felipe Balbi : >> >> Hi, >> >> John Youn writes: >>> On 6/9/2016 10:18 AM, Bruno Herrera wrote: Hello all, I'm bringing

RE: [RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework

2016-06-13 Thread Jun Li
Hi > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Baolin Wang > Sent: Monday, June 13, 2016 4:47 PM > To: ba...@kernel.org; gre...@linuxfoundation.org; s...@kernel.org; > dbarysh...@gmail.com; dw...@infradead.org > Cc:

Re: uac2: diagnosing uac2 audio gadget problems

2016-06-13 Thread Caleb Crome
On Mon, Jun 13, 2016 at 2:53 AM, Peter Chen wrote: > On Wed, Jun 08, 2016 at 04:11:11PM -0700, Caleb Crome wrote: >> >> Here is the script I use for starting the gadget interface: >> >> cd /sys/kernel/config/usb_gadget >> mkdir g1 >> cd g1 >> echo "0x1d6b" > idVendor >>

Re: uac2: diagnosing uac2 audio gadget problems

2016-06-13 Thread Caleb Crome
On Mon, Jun 13, 2016 at 4:04 PM, Caleb Crome wrote: > On Mon, Jun 13, 2016 at 2:53 AM, Peter Chen wrote: >> On Wed, Jun 08, 2016 at 04:11:11PM -0700, Caleb Crome wrote: >>> >>> Here is the script I use for starting the gadget interface: >>> >>> cd

Re: [PATCH v3,1/5] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-06-13 Thread Rob Herring
On Fri, Jun 10, 2016 at 03:32:38PM +0800, Chunfeng Yun wrote: > Some resources, such as IPPC register etc, shared with device > driver are moved into common glue layer when xHCI driver is the > host side of dual-role mode and they should be changed as optional > properties if they are required

Re: [PATCH v3] usb: phy: mxs: Add DT bindings to configure TX settings

2016-06-13 Thread Jaret Cantu
On 06/11/2016 11:25 PM, Peter Chen wrote: On Thu, Jun 09, 2016 at 02:07:52PM -0400, Justin Waters wrote: Peter, On Wed, Jun 8, 2016 at 10:41 PM, Peter Chen wrote: On Thu, Jun 9, 2016 at 5:27 AM, Jaret Cantu wrote: On 03/23/2016 10:21 PM,

Re: [PATCH] USB: core: fix missing include

2016-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 07, 2016 at 07:20:33PM +0100, Ben Dooks wrote: > The helper function usb_of_get_child_node() is defined in the > header but this was not included. Fix the warning > about usb_of_get_child_node() not being declared by adding the > right include. Fixes: > > drivers/usb/core/of.c:31:20:

Re: [PATCH v3] usb: phy: mxs: Add DT bindings to configure TX settings

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 04:40:55PM -0400, Jaret Cantu wrote: > > > >According to your previous information, the single formula can't be used > >to get D_CAL value, do you have any good ways except for using a table? > > That is not exactly what I said: > > "I can't find any formula which would

Re: [PATCH v3,2/5] dt-bindings: mt8173-mtu3: add devicetree bindings

2016-06-13 Thread chunfeng yun
On Fri, 2016-06-10 at 12:21 +0300, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > + - enable-manual-drd : supports manual dual-role switch via sysfs; only > > used > > + when receptacle is TYPE-A and also wants to support dual-role mode. > > sorry, but this

Re: [PATCH v10 00/14] USB OTG/dual-role framework

2016-06-13 Thread Peter Chen
On Fri, Jun 10, 2016 at 04:07:09PM +0300, Roger Quadros wrote: > Hi, > > This series centralizes OTG/Dual-role functionality in the kernel. > As of now I've got Dual-role functionality working pretty reliably on > dra7-evm and am437x-gp-evm. > > DWC3 controller and TI platform related patches

Re: [RESEND PATCH v11 2/4] gadget: Support for the usb charger framework

2016-06-13 Thread kbuild test robot
-to-deal-with-the-usb-gadget-power-negotation/20160613-165523 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next reproduce: make htmldocs All warnings (new ones prefixed by >>): include/linux/usb/gadget.h:228: warning: No description found for parameter 'c

Re: [BUG] cdc-acm: no data available after port open

2016-06-13 Thread Ladislav Michl
On Mon, Jun 13, 2016 at 11:02:19AM +0200, Oliver Neukum wrote: > On Mon, 2016-06-13 at 00:37 +0200, Ladislav Michl wrote: > > On Sun, Jun 12, 2016 at 11:03:45PM +0200, Ladislav Michl wrote: > > > Once ttyACM0 starts behave strangely, read() returns only what's in > > > buffer before > > > ttyACM0

Re: [PATCH v3,1/5] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-06-13 Thread chunfeng yun
On Mon, 2016-06-13 at 13:54 -0500, Rob Herring wrote: > On Fri, Jun 10, 2016 at 03:32:38PM +0800, Chunfeng Yun wrote: > > Some resources, such as IPPC register etc, shared with device > > driver are moved into common glue layer when xHCI driver is the > > host side of dual-role mode and they