[GIT PULL] USB driver fixes for 4.17-rc4

2018-05-05 Thread Greg KH
The following changes since commit 6da6c0db5316275015e8cc2959f12a17584aeb64: Linux v4.17-rc3 (2018-04-29 14:17:42 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.17-rc4 for you to fetch changes up to 6844dc42722cac3776

[PATCH] usb: dwc2: Change reading of current frame number flow.

2018-05-05 Thread Artur Petrosyan
The current frame_number is read from core for both device and host modes. Reading of the current frame number needs to be performed ASAP due to IRQ latency's. This is why, it is moved to common interrupt handler. Accordingly updated dwc2_gadget_target_frame_elapsed() function which uses stored fr

[PATCH v2 1/2] dt-bindings: usb: add bindings doc for HiSilicon STB xHCI host controller

2018-05-05 Thread sunjg79
From: Jianguo Sun This commit adds bindings doc for HiSilicon STB xHCI host controller. Signed-off-by: Jianguo Sun --- .../bindings/usb/hisilicon,histb-xhci.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/his

[PATCH v2 0/2] add support for HiSilicon STB xHCI host controller

2018-05-05 Thread sunjg79
From: Jianguo Sun This patch set adds bindings doc and xhci driver for xHCI host controller on HiSilicon STB SoCs. v2 changes: - add optional properties in bindings doc - assign the value of imod_interval - remove unnecessary codes Jianguo Sun (2): dt-bindings: usb: add bindings doc for

[PATCH v2 2/2] xhci: hisilicon: support HiSilicon STB xHCI host controller

2018-05-05 Thread sunjg79
From: Jianguo Sun This commit adds support for HiSilicon STB xHCI host controller. There are two xHCI host controllers on HiSilicon STB SoCs. Each one requires additional configuration before exposing interface compliant with xHCI. Reviewed-by: Chunfeng Yun Signed-off-by: Jianguo Sun --- driv

Re: [PATCH] usb: dwc2: debugfs: Don't touch RX FIFO during register dump

2018-05-05 Thread Minas Harutyunyan
On 5/4/2018 10:09 PM, Stefan Wahren wrote: > Dumping the registers via debugfs makes USB on Raspberry Pi completely > unusable. The read of register GRXSTSP ("Receive Status Read and Pop > Register") is responsible for this behaviour, because it pops the RX FIFO. > So avoid this by omitting the rel

[PATCH] usb: dwc2: Fix crash in incomplete isoc intr handlers.

2018-05-05 Thread Artur Petrosyan
Crash caused by going out of "eps_out" array range. Iteration on "eps_out" changed to less than "num_of_eps". Signed-off-by: Artur Petrosyan --- drivers/usb/dwc2/gadget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget

[PATCH] usb: dwc2: Add Interpacket Gap(IPG) feature support

2018-05-05 Thread Grigor Tovmasyan
Added GHWCFG4_IPG_ISOC_SUPPORTED and DCFG_IPG_ISOC_SUPPORDED bits definitions to enable/disable IPG feature. Added ipg_isoc_en core parameter which will indicate IPG support enable/disable and initialize it. Signed-off-by: Grigor Tovmasyan --- drivers/usb/dwc2/core.h| 11 +++ driver