USB hot-plug not working (ASUS TP301UA-C4028T)

2016-09-18 Thread Pierre de Villemereuil
Dear kernel devs, I'm using openSUSE Tumbleweed (kernel 4.7.2-2-default) on an ASUS Vivobook Flip TP301UA-C4028T, see here for specs: https://www.asus.com/Notebooks/ASUS-VivoBook-Flip-TP301UA/specifications/ Since my install in July, USB hot-plug (a.k.a. plug'n'play) is not working. To make any

Re: [PATCH v16 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-09-18 Thread Baolin Wang
Hi Neil, Sorry for late reply due yo my holiday. On 10 September 2016 at 05:19, NeilBrown wrote: > On Fri, Sep 09 2016, Baolin Wang wrote: > >>> >>> In practice, the USB PHY and the Power manager will often be in the same >>> IC (the PMIC) so the driver for one could look at the registers for th

[GIT PULL] USB driver fixes for 4.8-rc7

2016-09-18 Thread Greg KH
The following changes since commit 9395452b4aab7bc2475ef8935b4a4fb99d778d70: Linux 4.8-rc6 (2016-09-11 20:02:25 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.8-rc7 for you to fetch changes up to e06226e66beafd6118aa81

Re: [PATCHv2] usb: musb: Fix unbalanced platform_disable

2016-09-18 Thread Laurent Pinchart
Hi Tony, On Monday 12 Sep 2016 08:39:49 Tony Lindgren wrote: > Commit a83e17d0f73b ("usb: musb: Improve PM runtime and phy handling > for 2430 glue layer") moved PHY enable/disable calls to happen from > omap2430_musb_enable/disable(). That broke enumeration for several > devices as PM runtime in

usb device to ether is not identification in 64bit Windows OS

2016-09-18 Thread Lipengcheng
Hi, kernel version:4.8.0 file:Documentation / usb / linux.inf problem:PC windows is 32bit OS, using Ethernet gadget driver, it can be correct identification. But PC windows is 64bit OS, while modifying linux.inf file LinuxDevice parameters, it can not correct identification, the serial port can

Re: [PATCHv2] usb: musb: Fix unbalanced platform_disable

2016-09-18 Thread Tony Lindgren
* Laurent Pinchart [160918 05:13]: > > FYI, while this patch allows me to boot my Panda board with NFS over usbnet, > it only works with cold boots. A warm reboot results in the following > warning, > and no ethernet traffic going through. The USB device is detected by the host > though. Yea

[PATCH v2 2/3] usb: dwc3: cleanup with list_first_entry_or_null()

2016-09-18 Thread Masahiro Yamada
The combo of list_empty() check and return list_first_entry() can be replaced with list_first_entry_or_null(). Signed-off-by: Masahiro Yamada --- drivers/usb/dwc3/gadget.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget

[PATCH v2 1/3] usb: dwc2: cleanup with list_first_entry_or_null()

2016-09-18 Thread Masahiro Yamada
The combo of list_empty() check and return list_first_entry() can be replaced with list_first_entry_or_null(). Signed-off-by: Masahiro Yamada Acked-by: John Youn --- drivers/usb/dwc2/gadget.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/

[PATCH v2 0/3] usb: trivial cleanups with list_first_entry_or_null()

2016-09-18 Thread Masahiro Yamada
Replace the chain of list_empty() and list_first_entry() with list_first_entry_or_null(). Changes in v2: - Split into per-driver patches Masahiro Yamada (3): usb: dwc2: cleanup with list_first_entry_or_null() usb: dwc3: cleanup with list_first_entry_or_null() usb: renesas_usbhs: cleanup w

[PATCH v2 3/3] usb: renesas_usbhs: cleanup with list_first_entry_or_null()

2016-09-18 Thread Masahiro Yamada
The combo of list_empty() check and return list_first_entry() can be replaced with list_first_entry_or_null(). Signed-off-by: Masahiro Yamada --- drivers/usb/renesas_usbhs/fifo.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/u

Re: usb device to ether is not identification in 64bit Windows OS

2016-09-18 Thread gre...@linuxfoundation.org
On Sun, Sep 18, 2016 at 01:16:59PM +, Lipengcheng wrote: > Hi, > kernel version:4.8.0 > file:Documentation / usb / linux.inf > problem:PC windows is 32bit OS, using Ethernet gadget driver, it can > be correct identification. But PC windows is 64bit OS, while modifying > linux.inf file LinuxDevi

[PATCH 1/2] phy-sun4i-usb: Add sun4i_usb_phy_force_session_end() function

2016-09-18 Thread Hans de Goede
The sunxi musb has a bug where sometimes it will generate a babble error on device disconnect instead of a disconnect irq. When this happens the musb-controller switches from host mode to device mode (it clears MUSB_DEVCTL_SESSION and sets MUSB_DEVCTL_BDEVICE) and gets stuck in this state. Clearin

[PATCH 2/2] musb: sunxi: Force session end on babble errors in host-mode

2016-09-18 Thread Hans de Goede
The sunxi musb has a bug where sometimes it will generate a babble error on device disconnect instead of a disconnect irq. When this happens the musb-controller switches from host mode to device mode (it clears MUSB_DEVCTL_SESSION and sets MUSB_DEVCTL_BDEVICE) and gets stuck in this state. Clearin

Re: [PATCH net-next 2/3] r8152: support ECM mode

2016-09-18 Thread kbuild test robot
Hi Hayes, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hayes-Wang/r8152-configuration-setting/20160907-192351 config: i386-randconfig-x0-09182136 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the att

Re: [PATCH 4/7] phy: meson: add USB2 PHY support for Meson8b and GXBB

2016-09-18 Thread Martin Blumenstingl
Hi Kishon, On Fri, Sep 16, 2016 at 10:19 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 09 September 2016 09:44 PM, Martin Blumenstingl wrote: >> On Fri, Sep 9, 2016 at 5:33 PM, Kevin Hilman wrote: >>> However, the problem with all of the solutions proposed (runtime PM ones >>> included)

Re: Gadget regression with u_ether in Linux next

2016-09-18 Thread Harish Jenny K N
> On Saturday 17 September 2016 12:03 AM, Tony Lindgren wrote: > Hi, > > Looks like commit c9ffc78745f8 ("usb: gadget: NCM: Protect dev->port_usb > using dev->lock") causes hangs for me with Linux next. > > Reverting c9ffc78745f8 makes the issues go away, some more info below. > > Regards, > >

Re: [PATCH net-next 2/3] r8152: support ECM mode

2016-09-18 Thread kbuild test robot
Hi Hayes, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hayes-Wang/r8152-configuration-setting/20160907-192351 config: x86_64-randconfig-s0-09190146 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the a

Re: [PATCH 4/7] phy: meson: add USB2 PHY support for Meson8b and GXBB

2016-09-18 Thread Kishon Vijay Abraham I
Hi, On Monday 19 September 2016 01:26 AM, Martin Blumenstingl wrote: > Hi Kishon, > > On Fri, Sep 16, 2016 at 10:19 AM, Kishon Vijay Abraham I > wrote: >> Hi, >> >> On Friday 09 September 2016 09:44 PM, Martin Blumenstingl wrote: >>> On Fri, Sep 9, 2016 at 5:33 PM, Kevin Hilman wrote: How

RE: usb device to ether is not identification in 64bit Windows OS

2016-09-18 Thread Lipengcheng
Hi, In windows official web, download a new linux.inf file, and add our hisilicon usb id. Now it can be used correct identification in PC windows 64bit OS. At the same time, it can also be used correctly in PC windows 32bit OS. windows official web: https://msdn.microsoft.com/zh-cn/windo

Re: [PATCHv2] usb: musb: Fix unbalanced platform_disable

2016-09-18 Thread Andreas Kemnade
On Sun, 18 Sep 2016 08:19:02 -0700 Tony Lindgren wrote: > * Laurent Pinchart [160918 05:13]: > > > > FYI, while this patch allows me to boot my Panda board with NFS > > over usbnet, it only works with cold boots. A warm reboot results > > in the following warning, and no ethernet traffic going

[RFC PATCH] xhci: do not halt the secondary HCD

2016-09-18 Thread Joel Stanley
We can't halt the secondary HCD, because it's also the primary HCD, which will cause problems if we have devices attached to the primary HCD, like a keyboard. We've been carrying this in our Linux-as-a-bootloader environment for a little while now. The machines all have the same TI TUSB73x0 part,