Re: [PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-07 Thread Bjørn Mork
[adding Johan on the CC list] Anatolij Gustschin writes: > +static struct usb_device_id ftdi_mfd_table[] = { > + { USB_DEVICE(0x0403, 0x6014) }, > + {} > +}; > +MODULE_DEVICE_TABLE(usb, ftdi_mfd_table); This device ID is currently handled by the ftdi_sio driver, so I believe you at leas

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Peter Chen
On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > - Can I write new code for it or I need to depend on something? > > There is nothing this code needs to depend on AFAICS, but there are existing > solutions in this problem space (ACPI power management, genpd), so it needs

Re: cdc_ncm: Specific Huawei E3372h firmware version stuck in NTB-32

2017-07-07 Thread Christian Panton
Found a solution. >> I have two mobile broadband Huawei E3372h devices, one with firmware >> 21.200.07.01.26 (aka the 200-version) and one with firmware >> 21.318.01.00.541 (aka the 318-version). >> >> Whereas the 200-version works perfectly with a recent kernel (4.10), >> the latter never manage

[GIT PULL] USB fixes for 4.13-rc1

2017-07-07 Thread Greg KH
The following changes since commit 41f1830f5a7af77cf5c86359aba3cbd706687e52: Linux 4.12-rc6 (2017-06-19 22:19:37 +0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.13-rc1 for you to fetch changes up to dec08194ffeccfa1cf0

Re: [PATCH v1 8/9] ARM: tegra: Enable UDC on AC100

2017-07-07 Thread Dmitry Osipenko
On 07.07.2017 00:23, Marc Dietrich wrote: > Am Donnerstag, 6. Juli 2017, 20:00:02 CEST schrieb Stephen Warren: >> On 07/06/2017 10:57 AM, Dmitry Osipenko wrote: >>> On 06.07.2017 19:38, Stephen Warren wrote: On 07/05/2017 11:19 AM, Dmitry Osipenko wrote: > Override the compatible string of

Re: [PATCH v1 3/9] usb: chipidea: Add support for Tegra20/30/114/124

2017-07-07 Thread Dmitry Osipenko
On 07.07.2017 04:10, Peter Chen wrote: > On Thu, Jul 06, 2017 at 01:09:32PM +0300, Dmitry Osipenko wrote: >> On 06.07.2017 04:23, Peter Chen wrote: >>> On Wed, Jul 05, 2017 at 08:19:52PM +0300, Dmitry Osipenko wrote: + /* setup and register ChipIdea HDRC device */ + udc->data.name = "te

Re: cdc_ncm: Specific Huawei E3372h firmware version stuck in NTB-32

2017-07-07 Thread Christian Panton
>> I have two mobile broadband Huawei E3372h devices, one with firmware >> 21.200.07.01.26 (aka the 200-version) and one with firmware 21.318.01.00.541 >> (aka the 318-version). >> >> Whereas the 200-version works perfectly with a recent kernel (4.10), the >> latter never manages to exchange

Re: [PATCH v1 0/9] Support UDC on Tegra 20/30/114/124

2017-07-07 Thread Dmitry Osipenko
On 07.07.2017 04:12, Peter Chen wrote: > On Thu, Jul 06, 2017 at 01:13:01AM +0300, Dmitry Osipenko wrote: >> On 05.07.2017 23:31, Stephen Warren wrote: >>> On 07/05/2017 11:19 AM, Dmitry Osipenko wrote: Some time ago Thierry Reding sent out patches that enabled UDC on NVIDIA Tegra, unfort

Re: cdc_ncm: Specific Huawei E3372h firmware version stuck in NTB-32

2017-07-07 Thread Bjørn Mork
[CCing Enrico] Christian Panton writes: > Found a solution. > >>> I have two mobile broadband Huawei E3372h devices, one with firmware >>> 21.200.07.01.26 (aka the 200-version) and one with firmware >>> 21.318.01.00.541 (aka the 318-version). >>> >>> Whereas the 200-version works perfectly with

RE: [PATCH 3/3] fpga manager: Add FT232H driver for Altera FPP

2017-07-07 Thread David Laight
From: Anatolij Gustschin > Sent: 06 July 2017 21:49 > > Add FPGA manager driver for loading Altera FPGAs via fast > passive parallel (FPP) interface using FTDI FT232H chip. I can't help feeling this is very specific for a particular card. While all(?) Altera (now Intel) FPGA support FPP programm

Re: [PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-07 Thread Anatolij Gustschin
On Fri, 07 Jul 2017 09:48:48 +0200 Bjørn Mork bj...@mork.no wrote: >[adding Johan on the CC list] > >Anatolij Gustschin writes: > >> +static struct usb_device_id ftdi_mfd_table[] = { >> +{ USB_DEVICE(0x0403, 0x6014) }, >> +{} >> +}; >> +MODULE_DEVICE_TABLE(usb, ftdi_mfd_table); > >This

Re: cdc_ncm: Specific Huawei E3372h firmware version stuck in NTB-32

2017-07-07 Thread Enrico Mioso
Yeah, I think definitely this can be a good Idea. I tried to write some code - it may well crash your kernel, I am sending it in now purely for review and discussion purposes. On Fri, 7 Jul 2017, Bjørn Mork wrote: Date: Fri, 7 Jul 2017 10:55:07 From: Bjørn Mork To: Christian Panton Cc: linu

[PATCH 0/2] usb: musb: fix tx fifo flush handling again

2017-07-07 Thread Bin Liu
Hi, I would have to come back to the discussion as in [1], in which we dropped the 1ms delay in musb tx fifo flush handling to improve the user experience, as now we found a use case in which the 1ms delay is needed to let the AR9271 WIFI module to reconnect after dropped from the AP. This series

[PATCH 2/2] usb: musb: fix tx fifo flush handling again

2017-07-07 Thread Bin Liu
commit 68fe05e2a451 (usb: musb: fix tx fifo flush handling) drops the 1ms delay trying to solve the long disconnect time issue when application queued many tx urbs. However, the 1ms delay is needed for some use cases, for example, without the delay, reconnecting AR9271 WIFI dongle no longer works i

[PATCH 1/2] usb: core: unlink urbs from the tail of the endpoint's urb_list

2017-07-07 Thread Bin Liu
While unlink an urb, if the urb has been programmed in the controller, the controller driver might do some hw related actions to tear down the urb. Currently usb_hcd_flush_endpoint() passes each urb from the head of the endpoint's urb_list to the controller driver, which could make the controller

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Rafael J. Wysocki
On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > - Can I write new code for it or I need to depend on something? > > > > There is nothing this code needs to depend on AFAICS, but there are existing > > solution

[PATCH] [RFC PATCH] Set NTB format again after altsetting switch for Huawei devices

2017-07-07 Thread Enrico Mioso
Some firmwares in Huawei E3372H devices have been observed to switch back to NTB 32-bit format after altsetting switch. This patch implement a driver flag to check for the device settings and set NTB format to 16-bit again if needed. The flag has been activated for devices controlled by the huawei_

Re: [PATCH] [RFC PATCH] Set NTB format again after altsetting switch for Huawei devices

2017-07-07 Thread Bjørn Mork
Enrico Mioso writes: > Some firmwares in Huawei E3372H devices have been observed to switch back > to NTB 32-bit format after altsetting switch. > This patch implement a driver flag to check for the device settings and > set NTB format to 16-bit again if needed. > The flag has been activated for

Re: [PATCH 1/2] usb: core: unlink urbs from the tail of the endpoint's urb_list

2017-07-07 Thread Alan Stern
On Fri, 7 Jul 2017, Bin Liu wrote: > While unlink an urb, if the urb has been programmed in the controller, > the controller driver might do some hw related actions to tear down the > urb. > > Currently usb_hcd_flush_endpoint() passes each urb from the head of the > endpoint's urb_list to the con

Re: [PATCH 1/2] usb: core: unlink urbs from the tail of the endpoint's urb_list

2017-07-07 Thread Bin Liu
On Fri, Jul 07, 2017 at 11:56:53AM -0400, Alan Stern wrote: > On Fri, 7 Jul 2017, Bin Liu wrote: > > > While unlink an urb, if the urb has been programmed in the controller, > > the controller driver might do some hw related actions to tear down the > > urb. > > > > Currently usb_hcd_flush_endpoi

[PATCH] usb: dwc3: core: Setup phy before trying to read from it

2017-07-07 Thread Jochen Sprickerhof
Commit c499ff71ff2a ("usb: dwc3: core: re-factor init and exit paths") moved the call to dwc3_phy_setup() from dwc3_probe() to dwc3_core_init() and after the dwc3_readl() (now in dwc3_core_is_valid). This broke USB and Ethernet on Odroid XU4, because dwc3_readl() needs dwc3_phy_setup() to be run be

Re: [PATCH 2/8] usb: bdc: Add Device Tree binding document for Broadcom BDC driver

2017-07-07 Thread Rob Herring
Please only post plain text emails. On Fri, Jul 7, 2017 at 2:03 PM, Al Cooper wrote: > > > On Thu, Jul 6, 2017 at 10:18 AM, Rob Herring wrote: >> >> On Tue, Jun 27, 2017 at 02:23:20PM -0400, Al Cooper wrote: >> > Add Device Tree binding document for Broadcom USB Device >> > Controller (BDC). >>

Re: [PATCH] [RFC PATCH] Set NTB format again after altsetting switch for Huawei devices

2017-07-07 Thread Enrico Mioso
On Fri, 7 Jul 2017, Bjørn Mork wrote: Date: Fri, 7 Jul 2017 16:59:09 From: Bjørn Mork To: Enrico Mioso Cc: Christian Panton , linux-usb@vger.kernel.org Subject: Re: [PATCH] [RFC PATCH] Set NTB format again after altsetting switch for Huawei devices Enrico Mioso writes: Some firmwares i

Re: [PATCH] [RFC PATCH] Set NTB format again after altsetting switch for Huawei devices

2017-07-07 Thread Enrico Mioso
Sorry, I should have made a big mistake with git send-email From mrkiko...@gmail.com Fri Jul 7 17:53:17 2017 Date: Fri, 7 Jul 2017 17:52:57 From: Enrico Mioso Cc: Enrico Mioso Subject: [PATCH RFC V2] Set NTB format again after altsetting switch for Huawei devices Some firmwares in Huawei E

Re: g_mass_storage emulation of flash drive - difficulties with passing vendor/product ID

2017-07-07 Thread Alan Robertson
On Tue, Jun 6, 2017 at 3:33 PM, Alan Robertson wrote: > On Tue, Jun 6, 2017 at 3:03 PM, Alan Stern wrote: >> On Mon, 5 Jun 2017, Alan Robertson wrote: >>> > Try changing bcdDevice to a valid number, and change the serial number >>> > string to something different from what you were using before.

Re: [PATCH] usb: dwc3: omap: remove IRQ_NOAUTOEN used with shared irq

2017-07-07 Thread Grygorii Strashko
On 07/07/2017 01:22 AM, Vignesh R wrote: IRQ_NOAUTOEN cannot be used with shared IRQs, since commit 04c848d39879 ("genirq: Warn when IRQ_NOAUTOEN is used with shared interrupts") and kernel now throws a warn dump. But OMAP DWC3 driver uses this flag. As per commit 12a7f17fac5b ("usb: dwc3: omap

Re: [PATCH] [RFC PATCH] Set NTB format again after altsetting switch for Huawei devices

2017-07-07 Thread Christian Panton
Thank you Enrico and Bjørn. I will test it monday when I get access to my devices again. > @@ -856,6 +858,33 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct > usb_interface *intf, u8 data_ > goto error2; > } > > + /* > + * Some Huawei devices have been observ

[PATCH] usb: gadget: function: constify snd_pcm_ops structure

2017-07-07 Thread Gustavo A. R. Silva
Check for snd_pcm_ops structures that are only stored in the ops field of a snd_soc_platform_driver structure or passed as the third argument to snd_pcm_set_ops. The corresponding field or parameter is declared const, so snd_pcm_ops structures that have this property can be declared as const also.

Re: [PATCH 1/2] usb: core: unlink urbs from the tail of the endpoint's urb_list

2017-07-07 Thread Alan Stern
On Fri, 7 Jul 2017, Bin Liu wrote: > On Fri, Jul 07, 2017 at 11:56:53AM -0400, Alan Stern wrote: > > On Fri, 7 Jul 2017, Bin Liu wrote: > > > > > While unlink an urb, if the urb has been programmed in the controller, > > > the controller driver might do some hw related actions to tear down the >

Re: g_mass_storage emulation of flash drive - difficulties with passing vendor/product ID

2017-07-07 Thread Alan Stern
On Fri, 7 Jul 2017, Alan Robertson wrote: > Sorry to return to this topic & appreciate it might be either specific > to either the Pi or the system(s) I'm connecting it to, but have now > had time to try a few more combinations out and would appreciate any > thoughts from the experts here. > > To

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-07 Thread Peter Chen
On Fri, Jul 07, 2017 at 03:03:06PM +0200, Rafael J. Wysocki wrote: > On Friday, July 07, 2017 04:01:07 PM Peter Chen wrote: > > On Fri, Jul 07, 2017 at 03:13:48AM +0200, Rafael J. Wysocki wrote: > > > > > > > > - Can I write new code for it or I need to depend on something? > > > > > > There is n