RE: [RFC PATCH v3 2/2] usb: typec: Type-C Port Controller Interface driver (tcpci)

2016-09-30 Thread Jun Li
Hi Guenter, > -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Guenter Roeck > Sent: Wednesday, August 24, 2016 5:11 AM > To: Felipe Balbi > Cc: Chandra Sekhar Anagani ; Bruce > Ashfield ; Bin Gao ; > Pranav Tipnis ; Heikk

Re: [RFC/PATCH 24/45] usb: host: ehci: make use of new usb_endpoint_maxp_mult()

2016-09-30 Thread Felipe Balbi
Hi, Alan Stern writes: > On Wed, 28 Sep 2016, Felipe Balbi wrote: > >> We have introduced a helper to calculate multiplier >> value from wMaxPacketSize. Start using it. >> >> Cc: Alan Stern >> Cc: >> Signed-off-by: Felipe Balbi >> --- >> drivers/usb/host/ehci-sched.c | 2 +- >> 1 file chang

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

2016-09-30 Thread Mathias Nyman
On 29.09.2016 23:36, Pierre de Villemereuil wrote: Hi Mathias, It seems you are right: entering echo on > /sys/bus/pci/devices/\:00\:14.0/power/control does tame USB to behave properly. However, every time the AC is plugged/unplugged, this value gets overridden. Any way to make this perman

[PATCH] ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes

2016-09-30 Thread Brian Kim
Enable both gxbb USB controller and add a 5V regulator for the OTG port VBUS Signed-off-by: Brian Kim --- .../arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 29 ++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm

Re: [PATCH] mos7840: fix chars_in_buffer() return value

2016-09-30 Thread Johan Hovold
On Fri, Sep 30, 2016 at 12:00:30AM +0300, Stas Sergeev wrote: > 29.09.2016 13:09, Johan Hovold пишет: > > On Sat, Sep 24, 2016 at 06:00:57PM +0300, Stas Sergeev wrote: > >> The TIOCOUTQ ioctl calls chars_in_buffer(), and some apps depend on > >> a correct behaviour of that. > >> mos7840 implements

RE: [PATCH v1 1/1] usbip: deletion of incorrect socket descriptor checking

2016-09-30 Thread David Laight
From: Nobuo Iwata > Sent: 30 September 2016 06:44 > This patch removes checking of socket descriptor value in daemons. > > It was checked to be less than FD_SETSIZE(1024 usually) but it's not > correct. > > To be exact, the maximum value of descriptor comes from > rlimit(RLIMIT_NOFILE). > > Foll

RE: [LINUX PATCH] usb: gadget: Configure bulk maxburst through module parameter in gadget zero.

2016-09-30 Thread Manish Narani
Hi Greg, Thanks for the suggestion. I will fix it and send you in next version. :) Regards, Manish -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Thursday, September 29, 2016 2:24 PM To: Manish Narani Cc: ba...@kernel.org; k.opas...@samsung.com; r.bald...@sam

RE: [LINUX PATCH] usb: gadget: Configure data verification through module parameter in gadget zero

2016-09-30 Thread Manish Narani
Hi Greg, Thanks for the suggestion. I will fix it and send you in next version. :) Regards, Manish -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Thursday, September 29, 2016 4:56 PM To: Manish Narani Cc: ba...@kernel.org; k.opas...@samsung.com; r.bald...@sam

RE: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-30 Thread Jun Li
Hi, > -Original Message- > From: Guenter Roeck [mailto:gro...@google.com] > Sent: Friday, September 30, 2016 12:37 AM > To: Jun Li > Cc: Guenter Roeck ; Felipe Balbi > ; Chandra Sekhar Anagani > ; Bruce Ashfield > ; Bin Gao ; Pranav Tipnis > ; Heikki Krogerus > ; linux-ker...@vger.kernel.

Re: [RFC/PATCH 24/45] usb: host: ehci: make use of new usb_endpoint_maxp_mult()

2016-09-30 Thread Alan Stern
On Fri, 30 Sep 2016, Felipe Balbi wrote: > > There are lots of other places where the new helpers might be used. > > Search for "max_packet" and "hb_mult" in ehci-q.c and ehci-sched.c. > > Here's a new version: Looks good in general. I have just two comments... > 8<--

[no subject]

2016-09-30 Thread Amitesh Singh
auth e47dc987 subscribe linux-usb singh.amit...@gmail.com -- 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

[PATCH] USB: serial: ftdi_sio: add support for Infineon TriBoard TC2X7

2016-09-30 Thread Stefan Tauner
Signed-off-by: Stefan Tauner --- drivers/usb/serial/ftdi_sio.c | 3 ++- drivers/usb/serial/ftdi_sio_ids.h | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index b2d767e..0ff7f38 100644 --- a/drivers/usb/ser

Re: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-30 Thread Guenter Roeck
On Thu, Sep 29, 2016 at 11:41 PM, Jun Li wrote: > Hi, > >> -Original Message- >> From: Guenter Roeck [mailto:gro...@google.com] >> Sent: Friday, September 30, 2016 12:37 AM >> To: Jun Li >> Cc: Guenter Roeck ; Felipe Balbi >> ; Chandra Sekhar Anagani >> ; Bruce Ashfield >> ; Bin Gao ; Pra

Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes

2016-09-30 Thread Kevin Hilman
Brian Kim writes: > Enable both gxbb USB controller and add a 5V regulator for the OTG port > VBUS > > Signed-off-by: Brian Kim Thanks for the patch. In the future, please state what branch the patch should apply to when not using mainline. Because of the sd_emmc nodes in your patch, I could

[PATCH] usb: fix a typo in usb_class_driver documentation

2016-09-30 Thread Amitesh Singh
replace usb_unregister_dev by usb_deregister_dev Signed-off-by: Amitesh Singh --- include/linux/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/usb.h b/include/linux/usb.h index eba1f10..7e68259 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@

[PATCH] usb: fix a typo in usb_class_driver documentation

2016-09-30 Thread Amitesh Singh
replace usb_unregister_dev by usb_deregister_dev Signed-off-by: Amitesh Singh --- include/linux/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/usb.h b/include/linux/usb.h index eba1f10..7e68259 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@

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

2016-09-30 Thread Tony Lindgren
* Laurent Pinchart [160929 02:38]: > Hi Tony, > > On Wednesday 28 Sep 2016 11:42:35 Tony Lindgren wrote: > > * Tony Lindgren [160920 11:37]: > > > * Tony Lindgren [160920 10:11]: > > >> * Laurent Pinchart [160919 23:36]: > > >>> No, I perform the following steps: > > >>> > > >>> - Connect the

[PATCH 0/2] Fixes for two more musb regressions

2016-09-30 Thread Tony Lindgren
Hi all, Looks like we have two more regressions caused by my attempts to make musb PM simpler. As it's very close to the merge window opening, these are against current Linux next. Once reviewed, tested and merged to the mainline kernel we can request these to be included also into v4.8.y kernel.

[PATCH 2/2] usb: musb: Call pm_runtime from musb_gadget_queue

2016-09-30 Thread Tony Lindgren
If we're booting pandaboard using NFSroot over built-in g_ether, we can get the following after booting once and doing a warm reset: g_ether gadget: ecm_open g_ether gadget: notify connect true ... WARNING: CPU: 0 PID: 1 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x220/0x34c 4400.oc

[PATCH 1/2] usb: musb: Fix hardirq-safe hardirq-unsafe lock order error

2016-09-30 Thread Tony Lindgren
If we configure musb with 2430 glue as a peripheral, and then rmmod omap2430 module, we'll get the following error: [ INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected ] ... rmmod/413 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: (&phy->mutex){+.+.+.}, at: [] phy_power_off+0x1c/0xb8 [ 204

Re: [RFC PATCH v3 2/2] usb: typec: Type-C Port Controller Interface driver (tcpci)

2016-09-30 Thread Guenter Roeck
On Thu, Sep 29, 2016 at 11:24 PM, Jun Li wrote: > Hi Guenter, > >> -Original Message- >> From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- >> ow...@vger.kernel.org] On Behalf Of Guenter Roeck >> Sent: Wednesday, August 24, 2016 5:11 AM >> To: Felipe Balbi >> Cc: Chandra Sekhar Anag

[PATCH 3/3] Revert "Documentation: devicetree: dwc2: Deprecate g-tx-fifo-size"

2016-09-30 Thread John Youn
This binding was deprecated due to commit aa381a7259c3 ("usb: dwc2: gadget: fix TX FIFO size and address initialization"). However that commit is now reverted, so also revert this commit. The binding is valid and shouldn't be deprecated. This reverts commit 65e1ff7f4b5b ("Documentation: devicetre

[PATCH 1/3] Revert "usb: dwc2: gadget: change variable name to more meaningful"

2016-09-30 Thread John Youn
This reverts commit ba48eab8866c ("usb: dwc2: gadget: change variable name to more meaningful"). This is needed to cleanly revert commit aa381a7259c3 ("usb: dwc2: gadget: fix TX FIFO size and address initialization") which may cause regressions on some platforms. Signed-off-by: John Youn Cc: Rob

[PATCH 2/3] Revert "usb: dwc2: gadget: fix TX FIFO size and address initialization"

2016-09-30 Thread John Youn
This reverts commit aa381a7259c3 ("usb: dwc2: gadget: fix TX FIFO size and address initialization"). The original commit removed the FIFO size programming per endpoint. The DPTXFSIZn register is also used for DIEPTXFn and the SIZE field is r/w in dedicated fifo mode. So it isn't appropriate to sim

Re: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-30 Thread Guenter Roeck
On Thu, Sep 29, 2016 at 11:37 PM, Jun Li wrote: > Hi Guenter, >> -Original Message- >> From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- >> ow...@vger.kernel.org] On Behalf Of Guenter Roeck >> Sent: Wednesday, August 24, 2016 5:11 AM >> To: Felipe Balbi >> Cc: Chandra Sekhar Anagan

Re: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-30 Thread Joe Perches
On Fri, 2016-09-30 at 12:06 -0700, Guenter Roeck wrote: > On Thu, Sep 29, 2016 at 11:37 PM, Jun Li wrote: [] > > diff --git a/include/linux/usb/pd.h b/include/linux/usb/pd.h [] > > +#define PDO_VAR(min_mv, max_mv, max_ma) > > \ > > + ((PDO_TYPE_VAR << PDO_

Re: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-30 Thread Guenter Roeck
On Fri, Sep 30, 2016 at 12:41 PM, Joe Perches wrote: > On Fri, 2016-09-30 at 12:06 -0700, Guenter Roeck wrote: >> On Thu, Sep 29, 2016 at 11:37 PM, Jun Li wrote: > [] >> > diff --git a/include/linux/usb/pd.h b/include/linux/usb/pd.h > [] >> > +#define PDO_VAR(min_mv, max_mv, max_ma)

Re: [RFC PATCH v3 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2016-09-30 Thread Joe Perches
On Fri, 2016-09-30 at 13:57 -0700, Guenter Roeck wrote: > Code now looks as follows. > > #define PDO_VAR_MIN_VOLT(mv) mv) / 50) & PDO_VAR_MIN_VOLT_MASK) << \ >   PDO_VAR_MIN_VOLT_SHIFT) > #define PDO_VAR_MAX_VOLT(mv) mv) / 50) & PDO_VAR_MAX_VOLT_MASK) << \ >  

RE: [RFC PATCH v3 2/2] usb: typec: Type-C Port Controller Interface driver (tcpci)

2016-09-30 Thread Jun Li
Hi, > -Original Message- > From: Guenter Roeck [mailto:gro...@google.com] > Sent: Saturday, October 01, 2016 2:45 AM > To: Jun Li > Cc: Guenter Roeck ; Felipe Balbi > ; Chandra Sekhar Anagani > ; Bruce Ashfield > ; Bin Gao ; Pranav Tipnis > ; Heikki Krogerus > ; linux-ker...@vger.kernel.or