Re: [PATCH] fsl/usb: Add FSL USB Gadget entry in platform device id table

2016-11-23 Thread Felipe Balbi
Hi, Changming Huang writes: > Add FSL USB Gadget entry in platform device id table > > Signed-off-by: Changming Huang > Signed-off-by: Suresh Gupta > --- > drivers/usb/gadget/udc/fsl_udc_core.c |2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c

[PATCH] fsl/usb: Add FSL USB Gadget entry in platform device id table

2016-11-23 Thread Changming Huang
Add FSL USB Gadget entry in platform device id table Signed-off-by: Changming Huang Signed-off-by: Suresh Gupta --- drivers/usb/gadget/udc/fsl_udc_core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index

Re: [PATCH] usb: gadget: uvc: fix returnvar.cocci warnings

2016-11-23 Thread Andrzej Pietrasiewicz
Hi Laurent, Thanks for a reminder. Please see inline. W dniu 22.11.2016 o 18:27, Laurent Pinchart pisze: Hi Andrzej and Julia, Could one of you please submit a patch to fix this ? On Thursday 17 Sep 2015 13:18:04 Andrzej Pietrasiewicz wrote: Hi Julia, W dniu 17.09.2015 o 10:57, Julia Lawal

Re: [PATCH v2 3/3] usb: ohci-da8xx: rename driver to ohci-da8xx

2016-11-23 Thread Greg KH
On Mon, Nov 21, 2016 at 06:10:50PM +0100, Axel Haslam wrote: > Hi Greg, > > On Thu, Nov 3, 2016 at 5:03 PM, Axel Haslam wrote: > > The davinci ohci driver name (currently "ohci") is too generic. > > To be consistent with other usb dirvers, append the "-da8xx" postfix > > to the name. > > > > if

Re: [PATCH v13 00/10] usbip: exporting devices

2016-11-23 Thread Greg KH
On Tue, Nov 22, 2016 at 03:48:09PM +0900, Nobuo Iwata wrote: > Dear all, > > This series of patches adds exporting device operation to USB/IP. I would _love_ it if some of the people who are listed as MAINTAINERS of this code could actually review these patch series. I don't think I've seen that

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Tomi Valkeinen
On 10/11/16 23:25, Laurent Pinchart wrote: [2.766174] musb_bus_suspend 2586: trying to suspend as a_idle while active printed in a loop at boot time. I've traced musb->is_active being set to 1 in musb_start() with > Actually disabling CONFIG_USB_MUSB_HDRC gets rid of

did you receive my previous email ?

2016-11-23 Thread Friedrich Mayrhofer
This is the second time i am sending you this mail. I, Friedrich Mayrhofer Donate $ 1,000,000.00 to You, Email Me personally for more details. Regards. Friedrich Mayrhofer -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kern

[PATCH v3 2/2] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-11-23 Thread Baolin Wang
For some mobile devices with strict power management, we also want to suspend the host when the slave is detached for power saving. Thus we add the host suspend/resume functions to support this requirement. Signed-off-by: Baolin Wang --- Changes since v2: - Remove pm_children_suspended() and oth

[PATCH v3 1/2] usb: host: plat: Enable xhci plat runtime PM

2016-11-23 Thread Baolin Wang
Enable the xhci plat runtime PM for parent device to suspend/resume xhci. Also call pm_runtime_get_noresume() in probe() function in case the parent device doesn't call suspend/resume callback by runtime PM now. Signed-off-by: Baolin Wang --- Changes since v2: - Add pm_runtime_get_noresume() in

[RFT PATCH 1/1] xhci: free xhci virtual devices with leaf nodes first

2016-11-23 Thread Mathias Nyman
the tt_info provided by a HS hub might be in use to by a child device Make sure we free the devices in the correct order. This is needed in special cases such as when xhci controller is reset when resuming from hibernate, and all virt_devices are freed. Also free the virt_devices starting from ma

[PATCH 0/1] NET: usb: cdc_ncm: adding MBIM RESET_FUNCTION request and modifying ncm bind common code

2016-11-23 Thread Daniele Palmas
Some latest QC based modems seem not to properly accept altsetting toggling in cdc_ncm_bind_common, making them to fail. The workaround was to introduce an empirically decided pause to avoid the failure. This patch introduces a different approach: for MBIM devices, instead of toggling interfaces,

[PATCH 1/1] NET: usb: cdc_ncm: adding MBIM RESET_FUNCTION request and modifying ncm bind common code

2016-11-23 Thread Daniele Palmas
Some latest QC based modems seem not to properly accept altsetting toggling in cdc_ncm_bind_common, making them to fail. The workaround was to introduce an empirically decided pause to avoid the failure. This patch introduces a different approach: for MBIM devices, instead of toggling interfaces,

Re: Issue with Telit LE922 and cdc_mbim

2016-11-23 Thread Daniele Palmas
Hi Bjørn, 2016-11-21 10:49 GMT+01:00 Bjørn Mork : > Daniele Palmas writes: > >> it turned out that resetting the interface in cdc_ncm_init after >> getting the NTB parameters removes the need for the sleep, making the >> modem to work fine. > > Sounds very good, although I must admit that it isn'

Re: [RFT PATCH 1/1] xhci: free xhci virtual devices with leaf nodes first

2016-11-23 Thread Guenter Roeck
On 11/23/2016 04:24 AM, Mathias Nyman wrote: the tt_info provided by a HS hub might be in use to by a child device Make sure we free the devices in the correct order. This is needed in special cases such as when xhci controller is reset when resuming from hibernate, and all virt_devices are free

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-23 Thread Mark Lord
What does this code do: >static void r8153_set_rx_early_size(struct r8152 *tp) >{ >u32 mtu = tp->netdev->mtu; >u32 ocp_data = (agg_buf_sz - mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4; > >ocp_write_word(tp, MCU_TYPE_USB, USB_RX_EARLY_SIZE, ocp_data); >} How is ocp_data used by th

Re: [PATCH 2/3 v3] xhci: Fix race related to abort operation

2016-11-23 Thread OGAWA Hirofumi
ping? OGAWA Hirofumi writes: > Current abort operation has race. > > xhci_handle_command_timeout() > xhci_abort_cmd_ring() > xhci_write_64(CMD_RING_ABORT) > xhci_handshake(5s) > do { > check CMD_RING_RUNNING > udelay(1) >

Re: [PATCH] usb: musb: mark PM functions as __maybe_unused

2016-11-23 Thread Tony Lindgren
* Arnd Bergmann [161122 06:30]: > Building without CONFIG_PM causes a harmless warning: > > drivers/usb/musb/musb_core.c:2041:12: error: ‘musb_run_resume_work’ defined > but not used [-Werror=unused-function] > > Removing the #ifdef around the PM code and instead marking the suspend/resume > fu

Re: [RFT PATCH 1/1] xhci: free xhci virtual devices with leaf nodes first

2016-11-23 Thread Mathias Nyman
On 23.11.2016 15:32, Guenter Roeck wrote: On 11/23/2016 04:24 AM, Mathias Nyman wrote: the tt_info provided by a HS hub might be in use to by a child device Make sure we free the devices in the correct order. This is needed in special cases such as when xhci controller is reset when resuming fr

Re: [PATCH v13 00/10] usbip: exporting devices

2016-11-23 Thread Shuah Khan
On 11/23/2016 02:30 AM, Greg KH wrote: > On Tue, Nov 22, 2016 at 03:48:09PM +0900, Nobuo Iwata wrote: >> Dear all, >> >> This series of patches adds exporting device operation to USB/IP. > > I would _love_ it if some of the people who are listed as MAINTAINERS of > this code could actually review

Re: Issue with Telit LE922 and cdc_mbim

2016-11-23 Thread Bjørn Mork
Daniele Palmas writes: > 2016-11-21 10:49 GMT+01:00 Bjørn Mork : >> Daniele Palmas writes: >> >>> it turned out that resetting the interface in cdc_ncm_init after >>> getting the NTB parameters removes the need for the sleep, making the >>> modem to work fine. >> >> Sounds very good, although I m

Re: Problem with USB driver using two devices

2016-11-23 Thread Greg KH
On Wed, Nov 23, 2016 at 02:14:23PM +0100, Wolfgang Wilhelm wrote: > Dear Sir, Hi! and putting stable@ in bcc: as this has nothing to do with stable kernel releases.> > > we are a small company FAST ComTec GmbH > (www.fastcomtec.com) and produce multichannel analyzers > with Windows software.

Re: [PATCHv12 0/3] USB Type-C Connector class

2016-11-23 Thread Heikki Krogerus
Hi Guenter, On Tue, Nov 22, 2016 at 04:11:44PM +0200, Heikki Krogerus wrote: > The USB Type-C class is meant to provide unified interface to the > userspace to present the USB Type-C ports in a system. > > Changes since v11: > - The port drivers are responsible of removing the alternate > modes

Re: crash by cdc_acm driver in kernels 4.8-rc1/5

2016-11-23 Thread Alan Stern
On Wed, 23 Nov 2016, [ISO-8859-1] Bj�rn Mork wrote: > On November 23, 2016 1:54:57 AM CET, Wim Osterholt > wrote: > >On Tue, Nov 22, 2016 at 07:08:30PM +0100, Bjørn Mork wrote: > >> > On kernel 4.8.8 this crashes hard and produces over a serial link: > >> > >> Huh? That device shouldn't ever

RE: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-23 Thread Hayes Wang
Mark Lord [ml...@pobox.com] [...] > What does this code do: > >static void r8153_set_rx_early_size(struct r8152 *tp) > >{ > >u32 mtu = tp->netdev->mtu; > >u32 ocp_data = (agg_buf_sz - mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4; > > > >ocp_write_word(tp, MCU_TYPE_USB, USB_RX_EARLY

Re: Issue with Telit LE922 and cdc_mbim

2016-11-23 Thread Daniele Palmas
Re-adding the list, sorry. 2016-11-23 15:49 GMT+01:00 Bjørn Mork : > Daniele Palmas writes: >> 2016-11-21 10:49 GMT+01:00 Bjørn Mork : >>> Daniele Palmas writes: >>> it turned out that resetting the interface in cdc_ncm_init after getting the NTB parameters removes the need for the sle

Re: [PATCH v2 1/3] ARM: davinci: da8xx: Fix ohci device name

2016-11-23 Thread Sekhar Nori
On Thursday 03 November 2016 09:33 PM, Axel Haslam wrote: > While the clk lookup table is making reference to "ohci" > other subsystems (such as phy) are trying to match "ohci.0" > > Since there is a single ohci instance, instead of changing > the clk name, change the dev id to -1, and add the "-d

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Laurent Pinchart
Hi Tomi, On Wednesday 23 Nov 2016 12:14:17 Tomi Valkeinen wrote: > On 10/11/16 23:25, Laurent Pinchart wrote: > [2.766174] musb_bus_suspend 2586: trying to suspend as a_idle while > active > > printed in a loop at boot time. I've traced musb->is_active being set > to

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Tomi Valkeinen
On 23/11/16 17:49, Laurent Pinchart wrote: > Hi Tomi, > > On Wednesday 23 Nov 2016 12:14:17 Tomi Valkeinen wrote: >> On 10/11/16 23:25, Laurent Pinchart wrote: >> [2.766174] musb_bus_suspend 2586: trying to suspend as a_idle while >> active >> >> printed in a loop at boot tim

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Tony Lindgren
* Tomi Valkeinen [161123 07:54]: > On 23/11/16 17:49, Laurent Pinchart wrote: > > Hi Tomi, > > > > On Wednesday 23 Nov 2016 12:14:17 Tomi Valkeinen wrote: > >> On 10/11/16 23:25, Laurent Pinchart wrote: > >> [2.766174] musb_bus_suspend 2586: trying to suspend as a_idle while > >> acti

Re: [PATCHv12 1/3] lib/string: add sysfs_match_string helper

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:45PM +0200, Heikki Krogerus wrote: > Make a simple helper for matching strings with sysfs > attribute files. In most parts the same as match_string(), > except sysfs_match_string() uses sysfs_streq() instead of > strcmp() for matching. This is more convenient when used

Re: [PATCHv12 2/3] usb: USB Type-C connector class

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:46PM +0200, Heikki Krogerus wrote: > The purpose of USB Type-C connector class is to provide > unified interface for the user space to get the status and > basic information about USB Type-C connectors on a system, > control over data role swapping, and when the port s

Re: Problem with USB driver using two devices

2016-11-23 Thread Greg KH
On Wed, Nov 23, 2016 at 05:35:45PM +0100, Greg KH wrote: > On Wed, Nov 23, 2016 at 05:17:35PM +0100, Wolfgang Wilhelm wrote: > > Thankyou very much for the really fast answer. > > > > I don't get any error messages and I can communicate with > > the driver for the second device via ioctrl and writ

Re: [PATCHv12 3/3] usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:47PM +0200, Heikki Krogerus wrote: > This adds driver for the USB Type-C PHY on Intel WhiskeyCove > PMIC which is available on some of the Intel Broxton SoC > based platforms. > > Signed-off-by: Heikki Krogerus LGTM, though I don't really know anything about the chi

Re: [PATCH v13 00/10] usbip: exporting devices

2016-11-23 Thread Shuah Khan
On 11/21/2016 11:48 PM, Nobuo Iwata wrote: > Dear all, > > This series of patches adds exporting device operation to USB/IP. > > NOTE: > This patch set modifies only userspace codes in tools/usb/usbip. > > 1. Goal > > 1-1) To give flexibility to direction of connection > Using USB/IP in interne

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Tomi Valkeinen
On 23/11/16 18:34, Tony Lindgren wrote: > OK. And what changes to your current .config make the musb_bus_suspend() > issues show up? > > If it happens with USB-B cable from host to musb with musb set to host > only mode I'm not suprised there are errors :) I have no USB cables connected. I have

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Laurent Pinchart
Hello, On Wednesday 23 Nov 2016 18:40:09 Tomi Valkeinen wrote: > On 23/11/16 18:34, Tony Lindgren wrote: > > OK. And what changes to your current .config make the musb_bus_suspend() > > issues show up? > > > > If it happens with USB-B cable from host to musb with musb set to host > > only mode I'

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Tony Lindgren
* Tomi Valkeinen [161123 08:13]: > On 23/11/16 17:57, Tony Lindgren wrote: > > * Tomi Valkeinen [161123 07:54]: > >> On 23/11/16 17:49, Laurent Pinchart wrote: > >>> Hi Tomi, > >>> > >>> On Wednesday 23 Nov 2016 12:14:17 Tomi Valkeinen wrote: > On 10/11/16 23:25, Laurent Pinchart wrote: > >>

Re: Problem with USB driver using two devices

2016-11-23 Thread Greg KH
On Wed, Nov 23, 2016 at 05:17:35PM +0100, Wolfgang Wilhelm wrote: > Thankyou very much for the really fast answer. > > I don't get any error messages and I can communicate with > the driver for the second device via ioctrl and write functions, > i.e. write registers and read registers via the RBUF

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-11-23 Thread Tony Lindgren
* Tomi Valkeinen [161123 08:40]: > On 23/11/16 18:34, Tony Lindgren wrote: > > > OK. And what changes to your current .config make the musb_bus_suspend() > > issues show up? > > > > If it happens with USB-B cable from host to musb with musb set to host > > only mode I'm not suprised there are er

[PATCH] usb: musb: Fix trying to free already-free IRQ 4

2016-11-23 Thread Tony Lindgren
When unloading omap2430, we can get the following splat: WARNING: CPU: 1 PID: 295 at kernel/irq/manage.c:1478 __free_irq+0xa8/0x2c8 Trying to free already-free IRQ 4 ... [] (free_irq) from [] (musbhs_dma_controller_destroy+0x28/0xb0 [musb_hdrc]) [] (musbhs_dma_controller_destroy [musb_hdrc]) from

Re: [PATCH v3 1/2] usb: host: plat: Enable xhci plat runtime PM

2016-11-23 Thread kbuild test robot
Hi Baolin, [auto build test ERROR on v4.9-rc6] [also build test ERROR on next-20161123] [cannot apply to balbi-usb/next usb/usb-testing] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Baolin

[PATCHv7 4/5] USB: ohci: da8xx: Add devicetree bindings

2016-11-23 Thread Axel Haslam
This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: robh...@kernel.org Cc: mark.rutl...@arm.com Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8xx.txt

[PATCHv7 3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-23 Thread Axel Haslam
Using a regulator to handle VBUS will eliminate the need for platform data and callbacks, and make the driver more generic allowing different types of regulators to handle VBUS. The regulator equivalents to the platform callbacks are: set_power -> regulator_enable/regulator_disable get_

[PATCHv7 5/5] USB: ohci: da8xx: Allow probing from DT

2016-11-23 Thread Axel Haslam
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 07366ae..1818206 100644 ---

[PATCHv7 2/5] USB: ohci: da8xx: Add wrappers for platform callbacks

2016-11-23 Thread Axel Haslam
To migrate to a DT based boot, we will remove the use of platform callbacks, in favor of using the regulator framework to handle vbus and over current. In preparation to use a regulator instead of callbacks, move the platform data callbacks into separate functions. This provides well defined place

[PATCHv7 0/5] SB: ohci-da8xx: Add device tree support

2016-11-23 Thread Axel Haslam
When booting using device tree, we can not make use of platform callbacks to handle vbus and over current gpios. This series allows the ohci-da8xx driver to use a regulator instead of the platform callbacks to control vbus and adds the device tree bindings to be able to probe using DT. Once all u

[PATCHv7 1/5] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-23 Thread Axel Haslam
Instead of global variables, use the extra_priv_size of the ohci driver. We cannot yet move the ocic mask because this is used on the interrupt handler which is registered through platform data and does not have an hcd pointer. This will be moved on a later patch. Tested-by: David Lechner Signed

[PATCH] USB: ohci: da8xx: Balance ochi_disable with ohci_enable in resume.

2016-11-23 Thread Axel Haslam
On resume from suspend a failure with -ESHUTDOWN is returned from ohci_bus_resume, and the usb is inoperable. This happens because ohci_suspend disables the master interrupt and sets an hcd flag to say that the hw is no longer accessible. Calling ohci_resume reverts the steps taken on ohci_suspen

Re: [PATCH 6/6] pinctrl: mt8173: set GPIO16 to usb iddig mode

2016-11-23 Thread Matthias Brugger
Hi Hongzhou, On 12/05/16 04:55, Hongzhou Yang wrote: On Wed, 2016-05-11 at 19:09 -0700, Hongzhou Yang wrote: On Thu, 2016-05-12 at 09:41 +0800, chunfeng yun wrote: Hi, On Wed, 2016-05-11 at 11:32 -0700, Hongzhou Yang wrote: On Wed, 2016-05-11 at 13:56 +0200, Linus Walleij wrote: On Tue, May

Re: Issue with Telit LE922 and cdc_mbim

2016-11-23 Thread Bjørn Mork
Daniele Palmas writes: > 2016-11-23 15:49 GMT+01:00 Bjørn Mork : >> Daniele Palmas writes: >>> 2016-11-21 10:49 GMT+01:00 Bjørn Mork : Daniele Palmas writes: > it turned out that resetting the interface in cdc_ncm_init after > getting the NTB parameters removes the need for the

Re: Issue with Telit LE922 and cdc_mbim

2016-11-23 Thread Bjørn Mork
Bjørn Mork writes: > Daniele Palmas writes: >> 2016-11-23 15:49 GMT+01:00 Bjørn Mork : >> >>> I see that your testing also included Intel based modems. That's good. >>> It would still be nice to have test results from a few more MBIM >>> implementations, in particular the more "difficult" ones. B

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-23 Thread Mark Lord
On 16-11-23 10:12 AM, Hayes Wang wrote: Mark Lord [ml...@pobox.com] [...] What does this code do: static void r8153_set_rx_early_size(struct r8152 *tp) { u32 mtu = tp->netdev->mtu; u32 ocp_data = (agg_buf_sz - mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4; ocp_write_word(tp, MCU_

Re: [PATCH v13 01/10] usbip: exporting devices: modifications to network header

2016-11-23 Thread Shuah Khan
On 11/21/2016 11:48 PM, Nobuo Iwata wrote: > Modification to export and un-export response in > tools/usb/usbip/src/usbip_network.h. It just changes return code type > from int to uint32_t as same as other responses. > > Signed-off-by: Nobuo Iwata Looks fine to me. Acked-by: Shuah Khan > --

Re: [PATCH] USB: ohci: da8xx: Balance ochi_disable with ohci_enable in resume.

2016-11-23 Thread Alan Stern
On Wed, 23 Nov 2016, Axel Haslam wrote: > On resume from suspend a failure with -ESHUTDOWN is returned > from ohci_bus_resume, and the usb is inoperable. > > This happens because ohci_suspend disables the master interrupt > and sets an hcd flag to say that the hw is no longer accessible. This pa

Re: [PATCH] USB: EHCI: use module_platform_driver macro

2016-11-23 Thread Alan Stern
On Tue, 22 Nov 2016 csmanjuvi...@gmail.com wrote: > From: Majunath Goudar > > Use the module_platform_driver macro to do module init/exit. > This eliminates a lot of boilerplate.This also removes redundant > code and overhead of a function call. I really don't like this patch, or the correspond

Re: [PATCH v13 02/10] usbip: exporting devices: modifications to host side libraries

2016-11-23 Thread Shuah Khan
On 11/21/2016 11:48 PM, Nobuo Iwata wrote: > usbip_get_device() method in usbip_host_driver_ops was not used. It is > modified as a function to find an exported device for new operations > 'connect' and 'disconnect'. > > bind and unbind function are exported to reuse by new connect and > discon

Re: [PATCH v13 03/10] usbip: exporting devices: new connect operation

2016-11-23 Thread Shuah Khan
On 11/21/2016 11:48 PM, Nobuo Iwata wrote: > Implementation of new connect operation. This is linked as a part of > usbip commnad. With this patch, usbip command has following operations. > > bind > unbind > list (local/remote) > attach > detach > port > connect ... this patch I am findin

Re: [PATCH 2/3 v3] xhci: Fix race related to abort operation

2016-11-23 Thread Vincent Pelletier
On Wed, 23 Nov 2016 22:48:35 +0900, OGAWA Hirofumi wrote: > ping? FWIW, I intend to run this patch on the hardware which caused the issue (thanks Mathias for the CC !). So far, in the very short attempt I made, I failed to even build the kernel (some stack protection feature error when being pro

Re: [PATCHv12 1/3] lib/string: add sysfs_match_string helper

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:45PM +0200, Heikki Krogerus wrote: > Make a simple helper for matching strings with sysfs > attribute files. In most parts the same as match_string(), > except sysfs_match_string() uses sysfs_streq() instead of > strcmp() for matching. This is more convenient when used

Re: [PATCHv12 2/3] usb: USB Type-C connector class

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:46PM +0200, Heikki Krogerus wrote: > The purpose of USB Type-C connector class is to provide > unified interface for the user space to get the status and > basic information about USB Type-C connectors on a system, > control over data role swapping, and when the port s

RE: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-23 Thread Hayes Wang
Mark Lord [mailto:ml...@pobox.com] > Sent: Thursday, November 24, 2016 3:30 AM [...] > Worth repeating: other dongles we have tried, eg. those using the asix driver, > do not cause us any troubles here. Only the r8152 dongles do. I couldn't tell you why you would see the problem. I have tested th

[PATCH 1/2] usb: musb: core: add clear_ep_rxintr() to musb_platform_ops

2016-11-23 Thread Bin Liu
During dma teardown for dequque urb, musb might generate bogus rx ep interrupt even when the rx fifo is flushed. As mentioned in the current inline comment, clearing ep interrupt in the teardown path avoids the bogus interrupt. Before this change, any of the follow log messages could happen when m

[PATCH 0/2] usb: musb: fix bogus rx endpoint interrupt

2016-11-23 Thread Bin Liu
Hi, This fixes a long standing musb bogus rx interrupt problem. I am not sure on other platforms, but on AM335x with CPPI DMA enabled, occasionally any of the following kernel messages shows up from musb driver. (The endpoint number is random, of cause.) musb_host_rx 1853: BOGUS RX2 ready, cs

[PATCH 2/2] usb: musb: dsps: implement clear_ep_rxintr() callback

2016-11-23 Thread Bin Liu
This is for avoiding rx ep bogus interrupt during CPPI channel teardown. cc: sta...@vger.kernel.org # 4.1+ Signed-off-by: Bin Liu --- drivers/usb/musb/musb_dsps.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 0

Re: [PATCH 0/2] usb: musb: fix bogus rx endpoint interrupt

2016-11-23 Thread Bin Liu
On Wed, Nov 23, 2016 at 10:43:32PM -0600, Bin Liu wrote: > Hi, > > This fixes a long standing musb bogus rx interrupt problem. I am not sure on > other platforms, but on AM335x with CPPI DMA enabled, occasionally any of the > following kernel messages shows up from musb driver. (The endpoint numbe

RE: [PATCH v13 00/10] usbip: exporting devices

2016-11-23 Thread fx IWATA NOBUO
Hello, > Can you elaborate on the use-case a bit more? What does it mean to > "Connection from device side is needed"? I'd like to update ending part of use case as following. --- Firewall, proxy, or router in front of internet usually blocks connections from internet regarding all TCP ports. The

Re: [PATCHv12 2/3] usb: USB Type-C connector class

2016-11-23 Thread Guenter Roeck
Hello Heikki, On 11/22/2016 06:11 AM, Heikki Krogerus wrote: [ ... ] + +struct typec_port *typec_register_port(struct device *dev, + const struct typec_capability *cap) +{ + struct typec_port *port; + int ret; + int id; + + port = kzal

RE: [PATCH v13 02/10] usbip: exporting devices: modifications to host side libraries

2016-11-23 Thread fx IWATA NOBUO
Hello, > This doesn't look like a simple change to rename and reuse an unused > function. This patch does lot more and is changing the user interface. > Looks like instead of taking an integer value for device lookup, you > are changing it to char *. > > Any reason why you have to change the user

xhci halted endpoint is not cleared

2016-11-23 Thread David
I encounter the following problem with a USB3 camera device using kernel version 4.8.10 but also with previous kernel versions. The camera device is transmitting image data via endpoint 0x82 to the host. If the data from the device could not be transmitted in time the device is going to stall the

RE: [PATCH v13 03/10] usbip: exporting devices: new connect operation

2016-11-23 Thread fx IWATA NOBUO
Hello, > Can client use the same import over vpn connection Yes. Using VPN, the firewall problem doesn't need to be concerned. To build proprietary virtual network in internet, VPN can be used. The goal #1 will give flexibility for various kind of internet or cloud service. Using VPN, goal #2 "