Re: [PATCH] USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit

2017-04-19 Thread Johan Hovold
On Tue, Apr 18, 2017 at 08:07:56PM +0200, Marek Vasut wrote: > This development kit has an FT4232 on it with a custom USB VID/PID. > The FT4232 provides four UARTs, but only two are used. The UART 0 > is used by the FlashPro5 programmer and UART 2 is connected to the > SmartFusion2 CortexM3 SoC UAR

Re: [PATCH] usb: musb: Fix trying to suspend while active for OTG configurations

2017-04-19 Thread Peter Ujfalusi
On 2017-04-07 17:35, Tony Lindgren wrote: Commit d8e5f0eca1e8 ("usb: musb: Fix hardirq-safe hardirq-unsafe lock order error") caused a regression where musb keeps trying to enable host mode with no cable connected. This seems to be caused by the fact that now phy is enabled earlier, and we are

Re: [PATCH] USB: serial: ftdi_sio: add device ID for Microsemi/Arrow SF2PLUS Dev Kit

2017-04-19 Thread Marek Vasut
On 04/19/2017 10:00 AM, Johan Hovold wrote: > On Tue, Apr 18, 2017 at 08:07:56PM +0200, Marek Vasut wrote: >> This development kit has an FT4232 on it with a custom USB VID/PID. >> The FT4232 provides four UARTs, but only two are used. The UART 0 >> is used by the FlashPro5 programmer and UART 2 is

Re: [PATCH 2/2] fs: configfs: use hexadecimal values and new line

2017-04-19 Thread Krzysztof Opasiak
On 04/15/2017 03:35 AM, Stefan Agner wrote: Other unsigned properties return hexadecimal values, follow this convention when printing b_vendor_code too. Also add newlines to the OS Descriptor support related properties, like other sysfs files use. Signed-off-by: Stefan Agner --- drivers/usb/

Re: [PATCH 1/2] fs: configfs: make qw_sign attribute symmetric

2017-04-19 Thread Krzysztof Opasiak
On 04/15/2017 03:35 AM, Stefan Agner wrote: Currently qw_sign requires UTF-8 character to set, but returns UTF-16 when read. This isn't obvious when simply using cat since the null characters are not visible, but hexdump unveils the true string: # echo MSFT100 > os_desc/qw_sign # hexdump -

Re: usb: dwc2: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 146s

2017-04-19 Thread Johan Hovold
On Tue, Apr 18, 2017 at 10:25:06PM +0200, Stefan Wahren wrote: > Hi, > > [add Johan] > > > Stefan Wahren hat am 18. April 2017 um 10:07 > > geschrieben: > > > > > > Am 18.04.2017 um 00:37 schrieb Doug Anderson: > > > Hi, > > > > > > On Mon, Apr 17, 2017 at 4:05 AM, Stefan Wahren > > > wrote

Re: [PATCH] usb: gadget: remove redundant self assignment

2017-04-19 Thread Krzysztof Opasiak
On 04/17/2017 05:12 AM, Stefan Agner wrote: The assignment ret = ret is redundant and can be removed. Signed-off-by: Stefan Agner --- A very similar patch has been applied already last year, but there is a second such assignment... -- Stefan drivers/usb/gadget/udc/core.c | 4 +--- 1 file c

Re: usb: dwc2: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 146s

2017-04-19 Thread Stefan Wahren
Am 19.04.2017 um 10:56 schrieb Johan Hovold: > On Tue, Apr 18, 2017 at 10:25:06PM +0200, Stefan Wahren wrote: >> Hi, >> >> [add Johan] >> >>> Stefan Wahren hat am 18. April 2017 um 10:07 >>> geschrieben: >>> >>> >>> Am 18.04.2017 um 00:37 schrieb Doug Anderson: Hi, On Mon, Apr 17,

Re: usb: dwc2: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 146s

2017-04-19 Thread Johan Hovold
On Wed, Apr 19, 2017 at 11:12:17AM +0200, Stefan Wahren wrote: > Am 19.04.2017 um 10:56 schrieb Johan Hovold: > > On Tue, Apr 18, 2017 at 10:25:06PM +0200, Stefan Wahren wrote: > >> Hi, > >> > >> [add Johan] > >> > >>> Stefan Wahren hat am 18. April 2017 um 10:07 > >>> geschrieben: > >>> > >>> >

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Sergei Shtylyov
Hello! On 4/19/2017 9:14 AM, Peter Senna Tschudin wrote: We need the SMSC USB3315 clock and regulator to always be initialized. We also need the PHY driver to take the PHY out of reset. This patch extends the existing USB generic nop phy driver to include a new initialization path. A new compa

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Peter Senna Tschudin
On Wed, Apr 19, 2017 at 01:03:23PM +0300, Sergei Shtylyov wrote: > Hello! > > On 4/19/2017 9:14 AM, Peter Senna Tschudin wrote: > > > We need the SMSC USB3315 clock and regulator to always be initialized. > > We also need the PHY driver to take the PHY out of reset. This patch > > extends the exi

Re: [PATCH V3 1/4] reset: Add API to count number of reset available with device

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Count number of reset phandles available with the device node > to know the resets a given device has. > > Cc: Philipp Zabel > Signed-off-by: Vivek Gautam > --- > drivers/reset/core.c | 23 +++ > include/linux/reset.h

Re: [PATCH V3 2/4] reset: Add APIs to manage array of resets

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Many devices may want to request a bunch of resets > and control them. So it's better to manage them as an > array. Add APIs to _get(), _assert(), and _deassert() > an array of reset_control. Thanks! This looks good to me, one small issue be

Re: [PATCH V3 3/4] usb: dwc3: of-simple: Add support to get resets for the device

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Add support to get a list of resets available for the device. > These resets must be kept de-asserted until the device is > in use. > > Cc: Felipe Balbi > Cc: Philipp Zabel > Signed-off-by: Vivek Gautam > --- > drivers/usb/dwc3/dwc3-of-s

Re: [PATCH V3 4/4] soc/tegra: pmc: Use the new reset APIs to manage reset controllers

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Make use of reset_control_array_*() set of APIs to manage > an array of reset controllers available with the device. > > Cc: Thierry Reding > Cc: Philipp Zabel > Signed-off-by: Vivek Gautam > --- > drivers/soc/tegra/pmc.c | 99 > +++

Re: [PATCH] xhci: switch to pci_alloc_irq_vectors

2017-04-19 Thread Mathias Nyman
On 18.04.2017 17:47, Greg KH wrote: On Wed, Apr 12, 2017 at 08:32:20PM +0200, Christoph Hellwig wrote: Use the modern API to request MSI or MSI-X interrupts, which allows us to get rid of the msix_entries array, as well as cleaning up the cleanup code. Signed-off-by: Christoph Hellwig --- dr

[PATCH 1/3] usb: dwc2: Define PCGCCTL1 register in hw.h

2017-04-19 Thread Razmik Karapetyan
PCGCCTL1 (Power and Clock Control) register will be used for controlling the core`s active clock gating feature. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hw.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h index 4592012..b726701

[PATCH 3/3] usb: dwc2: Add dwc2_enable_acg function

2017-04-19 Thread Razmik Karapetyan
Added function for supporting Active Clock Gating functionality. This function checks GHWCFG4 register and if ACG supported, it sets GATEEN bit in PCGCCTL1 register and enables ACG. According to ACG functional specification, enabling of ACG feature in host mode done in host initialization, before

[PATCH 2/3] usb: dwc2: Define Active Clock Gating support bit in GHWCFG4

2017-04-19 Thread Razmik Karapetyan
The previously reserved 12th bit in GHWCFG4 now indicates that the controller supports the Dynamic Power Reduction (Active Clock Gating) during no traffic scenarios such as L0, idle, resume and suspend states. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hw.h | 1 + 1 file changed, 1 in

[PATCH 3/3] usb: dwc2: Update GINTSTS_GOUTNAKEFF interrupt handling

2017-04-19 Thread Razmik Karapetyan
Disabled only unmasked endpoints based on DAINTMSK register. This will allow to minimize GINTSTS_GOUTNAKEFF interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/d

[PATCH 1/3] usb: dwc2: Update dwc2_handle_incomplete_isoc_in() function

2017-04-19 Thread Razmik Karapetyan
Disabled only that ISOC endpoints,for which interrupt bit was set in the DAINTMSK register. This will allow to minimize incomplete ISOC IN interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH 2/3] usb: dwc2: Update dwc2_handle_incomplete_isoc_out() function

2017-04-19 Thread Razmik Karapetyan
In 'for' loop skipped masked and non-ISOC EPs. Also breaked 'for' loop after setting SGOUTNAK in DCTL,when one enabled EP was detected. This will allow to minimize incomplete ISOC OUT interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 14 -- 1 file

[PATCH] usb: dwc2: Set AHB burst size to INCR

2017-04-19 Thread Razmik Karapetyan
Changed AHB burst size from INCR4 to INCR by default. With this value driver show excellent DMA performance. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 2 +- drivers/usb/dwc2/params.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/ga

[PATCH 1/2] usb: dwc2: Remove unnecessary debug prints

2017-04-19 Thread Razmik Karapetyan
Removed unnecessary debug prints about DMA mode for host side from dwc2_gahbcfg_init() function. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hcd.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index

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

2017-04-19 Thread Heikki Krogerus
Hi, On Tue, Apr 18, 2017 at 11:52:33AM -0700, Badhri Jagan Sridharan wrote: > Hi Heikki, > > I have a question regarding the preferred_role node. > > +What: /sys/class/typec//preferred_role > +Date: March 2017 > +Contact: Heikki Krogerus > +Description: > +

Re: [PATCH v2] usb: dwc3: add disable u2mac linestate check quirk

2017-04-19 Thread wlf
Dear Guenter, 在 2017年04月19日 13:15, Guenter Roeck 写道: On Tue, Apr 18, 2017 at 8:59 PM, wlf wrote: Dear Guenter, 在 2017年04月18日 21:18, Guenter Roeck 写道: On Mon, Apr 17, 2017 at 10:17 PM, William Wu wrote: This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Ref

[PATCH] usb: dwc2: Rename function names

2017-04-19 Thread Razmik Karapetyan
Renamed __orr32 and __bic32 function names to more descriptive dwc2_set_bit and dwc2_clear_bit respectively. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/usb

Re: [PATCH V3 1/4] reset: Add API to count number of reset available with device

2017-04-19 Thread Vivek Gautam
On 04/19/2017 03:55 PM, Philipp Zabel wrote: On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: Count number of reset phandles available with the device node to know the resets a given device has. Cc: Philipp Zabel Signed-off-by: Vivek Gautam --- drivers/reset/core.c | 23 +++

Re: [PATCH V3 2/4] reset: Add APIs to manage array of resets

2017-04-19 Thread Vivek Gautam
Hi Philipp, On 04/19/2017 04:01 PM, Philipp Zabel wrote: On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: Many devices may want to request a bunch of resets and control them. So it's better to manage them as an array. Add APIs to _get(), _assert(), and _deassert() an array of reset_contr

Re: [PATCH V3 3/4] usb: dwc3: of-simple: Add support to get resets for the device

2017-04-19 Thread Vivek Gautam
On 04/19/2017 04:02 PM, Philipp Zabel wrote: On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: Add support to get a list of resets available for the device. These resets must be kept de-asserted until the device is in use. Cc: Felipe Balbi Cc: Philipp Zabel Signed-off-by: Vivek Gautam

[PATCH v3] usb: dwc3: add disable u2mac linestate check quirk

2017-04-19 Thread William Wu
This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Refer the dwc3 databook, we can use it for some special platforms if the linestate not reflect the expected line state(J) during transmission. When use this quirk, the controller implements a fixed 40-bit TxEndDelay

[PATCH v2 0/3] ACG support for dwc2 driver

2017-04-19 Thread Razmik Karapetyan
Patches related to implementation of ACG functionality in dwc2 driver. In short this feature specifies, that controller supports Dynamic Power Reduction during no traffic scenarios. Razmik Karapetyan (3): usb: dwc2: Define PCGCCTL1 register in hw.h usb: dwc2: Define Active Clock Gating sup

[PATCH v2 1/3] usb: dwc2: Define PCGCCTL1 register in hw.h

2017-04-19 Thread Razmik Karapetyan
PCGCCTL1 (Power and Clock Control) register will be used for controlling the core`s active clock gating feature. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hw.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h index 4592012..b726701

[PATCH v2 3/3] usb: dwc2: Add dwc2_enable_acg function

2017-04-19 Thread Razmik Karapetyan
Added function for supporting Active Clock Gating functionality. This function checks GHWCFG4 register and if ACG supported, it sets GATEEN bit in PCGCCTL1 register and enables ACG. According to ACG functional specification, enabling of ACG feature in host mode done in host initialization, before

[PATCH v2 2/3] usb: dwc2: Define Active Clock Gating support bit in GHWCFG4

2017-04-19 Thread Razmik Karapetyan
The previously reserved 12th bit in GHWCFG4 now indicates that the controller supports the Dynamic Power Reduction (Active Clock Gating) during no traffic scenarios such as L0, idle, resume and suspend states. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hw.h | 1 + 1 file changed, 1 in

[PATCH 3/8] usb: host: xhci-plat: add resume_quirk()

2017-04-19 Thread Mathias Nyman
From: Yoshihiro Shimoda This patch adds resume_quirk() to do platform specific process in resume timing. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-plat.c | 15 +++ drivers/usb/host/xhci-plat.h | 1 + 2 files changed, 16 insertions(+)

[PATCH 1/8] usb: host: plat: Enable xHCI plat runtime PM

2017-04-19 Thread Mathias Nyman
From: Baolin Wang Enable the xHCI plat runtime PM for parent device to suspend/resume xHCI. Also call pm_runtime_forbid() in probe() function to force users to explicitly enable runtime pm using power/control in sysfs, in case some parent devices didn't implement runtime PM callbacks. [set do_wa

[PATCH 0/8] xhci features for usb-next

2017-04-19 Thread Mathias Nyman
Hi Greg This series for usb-next contains Christoph Hellwigs msi/msix xhci updates, better suspend and resume support for R-Car controllers, runtime pm for xhci platform devices, and a few other cleanups. -Mathias Baolin Wang (1): usb: host: plat: Enable xHCI plat runtime PM Christoph Hellwig

[PATCH 5/8] xhci: switch to pci_alloc_irq_vectors

2017-04-19 Thread Mathias Nyman
From: Christoph Hellwig Use the modern API to request MSI or MSI-X interrupts, which allows us to get rid of the msix_entries array, as well as cleaning up the cleanup code. Signed-off-by: Christoph Hellwig Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 100 ++-

[PATCH 4/8] usb: host: xhci-plat: set resume_quirk() for R-Car controllers

2017-04-19 Thread Mathias Nyman
From: Yoshihiro Shimoda This patch sets resume_quirk() for R-Car controllers to re-download the firmware in resume timing. Otherwise, if the controller's power is down in suspend timing, the firmware in the controller goes away, and then the controller doesn't work after resume. Signed-off-by: Y

[PATCH 6/8] usb: host: xhci: using correct specification chapter reference for DCBAAP

2017-04-19 Thread Mathias Nyman
From: Peter Chen Using correct specification chapter reference for DCBAAP (Device Context Base Address Array Pointer). Signed-off-by: Peter Chen Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xh

[PATCH 2/8] usb: host: xhci-plat: enable clk in resume timing

2017-04-19 Thread Mathias Nyman
From: Yoshihiro Shimoda This patch enables the clk in resume timing when device_may_wakeup() is false. Otherwise, kernel panic happens when R-Car resumes the system from Suspend-to-RAM because the clk is disabled. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Mathias Nyman --- drivers/usb/h

[PATCH 8/8] usb: host: xhci: print correct command ring address

2017-04-19 Thread Mathias Nyman
From: Peter Chen Print correct command ring address using 'val_64'. Cc: stable Signed-off-by: Peter Chen Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c

[PATCH 7/8] usb: host: xhci: delete sp_dma_buffers for scratchpad

2017-04-19 Thread Mathias Nyman
From: Peter Chen We already have sp_array to store each scratch buffer address for xHC, it doesn't need another sp_dma_buffers array to store it. Signed-off-by: Peter Chen Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 18 -- drivers/usb/host/xhci.h | 1 -

[PATCH v2 3/3] usb: dwc2: Update GINTSTS_GOUTNAKEFF interrupt handling

2017-04-19 Thread Razmik Karapetyan
Disabled only unmasked endpoints based on DAINTMSK register. This will allow to minimize GINTSTS_GOUTNAKEFF interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/d

[PATCH v2 1/3] usb: dwc2: Update dwc2_handle_incomplete_isoc_in() function

2017-04-19 Thread Razmik Karapetyan
Disabled only that ISOC endpoints,for which interrupt bit was set in the DAINTMSK register. This will allow to minimize incomplete ISOC IN interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v2 2/3] usb: dwc2: Update dwc2_handle_incomplete_isoc_out() function

2017-04-19 Thread Razmik Karapetyan
In 'for' loop skipped masked and non-ISOC EPs. Also breaked 'for' loop after setting SGOUTNAK in DCTL,when one enabled EP was detected. This will allow to minimize incomplete ISOC OUT interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 14 -- 1 file

[PATCH v2 0/3] Interrupt handler optimizations of dwc2 driver

2017-04-19 Thread Razmik Karapetyan
Changes in version 2: Added cover letter for patch set Done small,but significant changes in interrupt handlers, which will allow to minimize incomplete ISOC IN/OUT, GOUTNAKEFF interrupt handling. Razmik Karapetyan (3): usb: dwc2: Update dwc2_handle_incomplete_isoc_in() function usb:

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

2017-04-19 Thread Badhri Jagan Sridharan
On Wed, Apr 19, 2017 at 4:23 AM, Heikki Krogerus wrote: > Hi, > > On Tue, Apr 18, 2017 at 11:52:33AM -0700, Badhri Jagan Sridharan wrote: >> Hi Heikki, >> >> I have a question regarding the preferred_role node. >> >> +What: /sys/class/typec//preferred_role >> +Date: March 2017 >>

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

2017-04-19 Thread Guenter Roeck
On Wed, Apr 19, 2017 at 07:45:00AM -0700, Badhri Jagan Sridharan wrote: > On Wed, Apr 19, 2017 at 4:23 AM, Heikki Krogerus > wrote: > > Hi, > > > > On Tue, Apr 18, 2017 at 11:52:33AM -0700, Badhri Jagan Sridharan wrote: > >> Hi Heikki, > >> > >> I have a question regarding the preferred_role node.

RE: [PATCH 1/1] usb: host: xhci: print correct command ring address

2017-04-19 Thread David Laight
From: Peter Chen > Print correct command ring address using 'val_64'. > > Cc: stable > Signed-off-by: Peter Chen > --- > drivers/usb/host/xhci-mem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c > index de1503

Re: Regression - Linux 4.9: ums_eneub6250 broken: transfer buffer not dma capable - Trace

2017-04-19 Thread Alan Stern
On Tue, 18 Apr 2017, Andreas Hartmann wrote: > Am 18.04.2017 um 21:31 schrieb Alan Stern: > > On Mon, 17 Apr 2017, Andreas Hartmann wrote: > > > >>> Good start, but there are five (!) other places in this driver where > >>> the same bug occurs, at lines 904, 1350, 1577, 2088, and 2157. Would > >>

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

2017-04-19 Thread Badhri Jagan Sridharan
On Wed, Apr 19, 2017 at 8:14 AM, Guenter Roeck wrote: > On Wed, Apr 19, 2017 at 07:45:00AM -0700, Badhri Jagan Sridharan wrote: >> On Wed, Apr 19, 2017 at 4:23 AM, Heikki Krogerus >> wrote: >> > Hi, >> > >> > On Tue, Apr 18, 2017 at 11:52:33AM -0700, Badhri Jagan Sridharan wrote: >> >> Hi Heikki,

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Sergei Shtylyov
On 04/19/2017 01:24 PM, Peter Senna Tschudin wrote: We need the SMSC USB3315 clock and regulator to always be initialized. We also need the PHY driver to take the PHY out of reset. This patch extends the existing USB generic nop phy driver to include a new initialization path. A new compatible

Re: [PATCH 1/1] drivers: net: usb: qmi_wwan: add QMI_QUIRK_SET_DTR for Telit PID 0x1201

2017-04-19 Thread Bjørn Mork
Daniele Palmas writes: > as a side note in latest kernels I had troubles with qmi devices > (e.g. I/O error when using qmicli). > > I found your suggestion in libqmi mailing list to revert commit > > 833415a3e781a26fe480a34d45086bdb4fe1e4c0 > cdc-wdm: fix "out-of-sync" due to missing notification

Re: Regression - Linux 4.9: ums_eneub6250 broken: transfer buffer not dma capable - Trace

2017-04-19 Thread Andreas Hartmann
Am 19.04.2017 um 17:49 schrieb Alan Stern: On Tue, 18 Apr 2017, Andreas Hartmann wrote: Am 18.04.2017 um 21:31 schrieb Alan Stern: On Mon, 17 Apr 2017, Andreas Hartmann wrote: Good start, but there are five (!) other places in this driver where the same bug occurs, at lines 904, 1350, 1577,

Re: [PATCH 1/1] drivers: net: usb: qmi_wwan: add QMI_QUIRK_SET_DTR for Telit PID 0x1201

2017-04-19 Thread Aleksander Morgado
On Wed, Apr 19, 2017 at 7:28 PM, Bjørn Mork wrote: >> as a side note in latest kernels I had troubles with qmi devices >> (e.g. I/O error when using qmicli). >> >> I found your suggestion in libqmi mailing list to revert commit >> >> 833415a3e781a26fe480a34d45086bdb4fe1e4c0 >> cdc-wdm: fix "out-of

Re: [PATCH 2/3 v2] i2c: i2c-piix4: Use the common mutex

2017-04-19 Thread Wolfram Sang
On Mon, Apr 03, 2017 at 09:51:32AM +0200, Zoltan Boszormenyi wrote: > Use the common mutex from driver/usb/host/pci-quirks.c in the > i2c-piix4 driver to synchronize access to the I/O port pair > 0xcd6 / 0xcd7. > > At the same time, remove the request_region() call to reserve > these I/O ports, so

Re: [PATCH 2/2] USB: f_mass_storage: improve memory barriers and synchronization

2017-04-19 Thread Thinh Nguyen
Hi, On 4/13/2017 1:37 PM, Alan Stern wrote: > This patch reworks the way f_mass_storage.c handles memory barriers > and synchronization: > > The driver now uses a wait_queue instead of doing its own > task-state manipulations (even though only one task will ever > use the wait_q

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

2017-04-19 Thread Guenter Roeck
On Wed, Apr 19, 2017 at 10:22:47AM -0700, Badhri Jagan Sridharan wrote: > On Wed, Apr 19, 2017 at 8:14 AM, Guenter Roeck wrote: > > On Wed, Apr 19, 2017 at 07:45:00AM -0700, Badhri Jagan Sridharan wrote: > >> On Wed, Apr 19, 2017 at 4:23 AM, Heikki Krogerus > >> wrote: > >> > Hi, > >> > > >> > On

Re: [PATCH 1/1] drivers: net: usb: qmi_wwan: add QMI_QUIRK_SET_DTR for Telit PID 0x1201

2017-04-19 Thread Bjørn Mork
Aleksander Morgado writes: > On Wed, Apr 19, 2017 at 7:28 PM, Bjørn Mork wrote: >>> as a side note in latest kernels I had troubles with qmi devices >>> (e.g. I/O error when using qmicli). >>> >>> I found your suggestion in libqmi mailing list to revert commit >>> >>> 833415a3e781a26fe480a34d450

Re: [PATCH v3] usb: dwc3: add disable u2mac linestate check quirk

2017-04-19 Thread Guenter Roeck
On Wed, Apr 19, 2017 at 5:11 AM, William Wu wrote: > This patch adds a quirk to disable USB 2.0 MAC linestate check > during HS transmit. Refer the dwc3 databook, we can use it for > some special platforms if the linestate not reflect the expected > line state(J) during transmission. > > When use

Re: usb: dwc2: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 146s

2017-04-19 Thread Stefan Wahren
Hi, > Doug Anderson hat am 18. April 2017 um 22:41 > geschrieben: > > > It's hard to know for sure that all of this time is really in > urb_enqueue(). Possible we could have task switched out and been > blocked elsewhere. Using ftrace to get more fine-grained timings > would be useful. ktim

Re: [PATCH 1/3] usb: gadget: function: f_fs: Fix doc for FUNCTIONFS_INTERFACE_REVMAP

2017-04-19 Thread Jerry Zhang
I have no clue how I missed that. We can drop this patch. On Tue, Apr 18, 2017 at 6:38 PM, Michal Nazarewicz wrote: > On Tue, Apr 18 2017, Jerry Zhang wrote: >> The comment for this states that it returns -ENODEV >> when the function is inactive. Really, an inactive >> function is treated as havi

Re: Regression - Linux 4.9: ums_eneub6250 broken: transfer buffer not dma capable - Trace

2017-04-19 Thread Alan Stern
On Wed, 19 Apr 2017, Andreas Hartmann wrote: > Am 19.04.2017 um 17:49 schrieb Alan Stern: > > On Tue, 18 Apr 2017, Andreas Hartmann wrote: > > > >> Am 18.04.2017 um 21:31 schrieb Alan Stern: > >>> On Mon, 17 Apr 2017, Andreas Hartmann wrote: > >>> > > Good start, but there are five (!) other p

[PATCH V2 2/3] usb: gadget: function: f_fs: Let ffs_epfile_ioctl wait for enable.

2017-04-19 Thread Jerry Zhang
Also change the docs to reflect that ENODEV is no longer returned. This allows users to make an ioctl call as the first action on a connection. Ex, some functions might want to get endpoint size before making any i/os. Previously, calling ioctls before read/write would depending on the timing of

Re: usb: dwc2: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 146s

2017-04-19 Thread Doug Anderson
Hi, On Wed, Apr 19, 2017 at 1:25 PM, Stefan Wahren wrote: > Hi, > >> Doug Anderson hat am 18. April 2017 um 22:41 >> geschrieben: >> >> >> It's hard to know for sure that all of this time is really in >> urb_enqueue(). Possible we could have task switched out and been >> blocked elsewhere. Us

Re: [PATCH 1/2] usb: dwc2: Remove unnecessary debug prints

2017-04-19 Thread Joe Perches
On Wed, 2017-04-19 at 15:16 +0400, Razmik Karapetyan wrote: > Removed unnecessary debug prints about DMA mode for host side > from dwc2_gahbcfg_init() function. Why are these unnecessary? Are these emitted elsewhere? and... > diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c [] > @@

Re: [PATCH V2 2/3] usb: gadget: function: f_fs: Let ffs_epfile_ioctl wait for enable.

2017-04-19 Thread Michal Nazarewicz
On Wed, Apr 19 2017, Jerry Zhang wrote: > Also change the docs to reflect that ENODEV is no longer returned. > > This allows users to make an ioctl call as the first action on a > connection. Ex, some functions might want to get endpoint size > before making any i/os. > > Previously, calling ioctls

[PATCH V3 2/3] usb: gadget: function: f_fs: Let ffs_epfile_ioctl wait for enable.

2017-04-19 Thread Jerry Zhang
This allows users to make an ioctl call as the first action on a connection. Ex, some functions might want to get endpoint size before making any i/os. Previously, calling ioctls before read/write would depending on the timing of endpoints being enabled. ESHUTDOWN is now a possible return value a

Re: [PATCH V3 2/3] usb: gadget: function: f_fs: Let ffs_epfile_ioctl wait for enable.

2017-04-19 Thread Michal Nazarewicz
On Wed, Apr 19 2017, Jerry Zhang wrote: > This allows users to make an ioctl call as the first action on a > connection. Ex, some functions might want to get endpoint size > before making any i/os. > > Previously, calling ioctls before read/write would depending on the > timing of endpoints being e