[PATCH 3/4] usb: musb: Move musbhsdma macro definition to musb_dma.h

2018-12-26 Thread min.guo
From: Min Guo Because the MediaTek musb controller dose not have a separate DMA interrupt, these macros are required to access the dma registers Signed-off-by: Min Guo --- drivers/usb/musb/musb_dma.h | 6 ++ drivers/usb/musb/musbhsdma.c | 7 +-- 2 files changed, 7 insertions(+), 6 del

[PATCH 1/4] dt-bindings: usb: musb: Add support for MediaTek musb controller

2018-12-26 Thread min.guo
From: Min Guo This adds support for MediaTek musb controller in host, peripheral and otg mode Signed-off-by: Min Guo --- .../devicetree/bindings/usb/mediatek,musb.txt | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/me

[PATCH 2/4] arm: dts: mt2701: Add usb2 device nodes

2018-12-26 Thread min.guo
From: Min Guo Add musb nodes and usb2 phy nodes for MT2701 Signed-off-by: Min Guo --- arch/arm/boot/dts/mt2701-evb.dts | 21 + arch/arm/boot/dts/mt2701.dtsi| 34 ++ 2 files changed, 55 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-

[PATCH 0/4] Add MediaTek MUSB Controller Driver

2018-12-26 Thread min.guo
From: Min Guo These patches introduce the MediaTek MUSB controller driver. The driver can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only modes. This has beed tested on MT2701 with a variety of devices in host mode and with the f_mass gadget driver in peripheral mode, plu

[PATCH 4/4] usb: musb: Add support for MediaTek musb controller

2018-12-26 Thread min.guo
From: Min Guo This adds support for MediaTek musb controller in host, peripheral and otg mode Signed-off-by: Min Guo Signed-off-by: Yonglong Wu --- drivers/usb/musb/Kconfig | 8 +- drivers/usb/musb/Makefile| 1 + drivers/usb/musb/mediatek.c | 562 +

Re: SHANWAN pad rumbling not working on USB

2018-12-26 Thread liquid
uname: Linux archlinux 4.19.12-arch1-1-ARCH #1 SMP PREEMPT Fri Dec 21 13:56:54 UTC 2018 x86_64 GNU/Linux liquid 于2018年12月27日周四 上午9:17写道: > > Rumbling function on SHANWAN DS3 clone joystick doesn't work. > Meanwhile it can work fine on Windows ScpToolkit v1.7.277.16103-BETA. > (Tested with PCSX2 l

SHANWAN pad rumbling not working on USB

2018-12-26 Thread liquid
Rumbling function on SHANWAN DS3 clone joystick doesn't work. Meanwhile it can work fine on Windows ScpToolkit v1.7.277.16103-BETA. (Tested with PCSX2 lilypad Win32 build). SDL2/test/testhaptic was able to find out its supported effect. But NO rumble at all. INFO: 1 Haptic devices detected. INFO:

RE: [PATCH v2] usb: chipidea: add a check for the availability of next child

2018-12-26 Thread Peter Chen
> Signed-off-by: Kangjie Lu > --- > drivers/usb/chipidea/ci_hdrc_msm.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c > b/drivers/usb/chipidea/ci_hdrc_msm.c > index 880009987460..b7f7acef72d4 100644 > --- a/drivers/usb/chipidea/ci_hdrc_msm.c > +

[PATCH AUTOSEL 3.18 05/12] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both l

[PATCH AUTOSEL 4.9 11/35] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both l

[PATCH AUTOSEL 4.4 08/21] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both l

[PATCH AUTOSEL 4.4 17/21] lan78xx: Resolve issue with changing MAC address

2018-12-26 Thread Sasha Levin
From: Jason Martinsen [ Upstream commit 1551569659c502003926a2067ee76176148a ] Current state for the lan78xx driver does not allow for changing the MAC address of the interface, without either removing the module (if you compiled it that way) or rebooting the machine. If you attempt to chan

[PATCH AUTOSEL 4.9 31/35] lan78xx: Resolve issue with changing MAC address

2018-12-26 Thread Sasha Levin
From: Jason Martinsen [ Upstream commit 1551569659c502003926a2067ee76176148a ] Current state for the lan78xx driver does not allow for changing the MAC address of the interface, without either removing the module (if you compiled it that way) or rebooting the machine. If you attempt to chan

[PATCH AUTOSEL 4.19 33/97] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both l

[PATCH AUTOSEL 4.19 51/97] qmi_wwan: Added support for Fibocom NL668 series

2018-12-26 Thread Sasha Levin
From: Jörgen Storvist [ Upstream commit 110a1cc28bc383adb4885eff27e18c61ddebffb4 ] Added support for Fibocom NL668 series QMI interface. Using QMI_QUIRK_SET_DTR required for Qualcomm MDM9x07 chipsets. Signed-off-by: Jörgen Storvist Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --

[PATCH AUTOSEL 4.19 52/97] qmi_wwan: Added support for Telit LN940 series

2018-12-26 Thread Sasha Levin
From: Jörgen Storvist [ Upstream commit 1986af16e8ed355822600c24b3d2f0be46b573df ] Added support for the Telit LN940 series cellular modules QMI interface. QMI_QUIRK_SET_DTR quirk requied for Qualcomm MDM9x40 chipset. Signed-off-by: Jörgen Storvist Acked-by: Bjørn Mork Signed-off-by: David S.

[PATCH AUTOSEL 4.19 77/97] lan78xx: Resolve issue with changing MAC address

2018-12-26 Thread Sasha Levin
From: Jason Martinsen [ Upstream commit 1551569659c502003926a2067ee76176148a ] Current state for the lan78xx driver does not allow for changing the MAC address of the interface, without either removing the module (if you compiled it that way) or rebooting the machine. If you attempt to chan

[PATCH AUTOSEL 4.14 21/59] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both l

[PATCH AUTOSEL 4.14 32/59] qmi_wwan: Added support for Telit LN940 series

2018-12-26 Thread Sasha Levin
From: Jörgen Storvist [ Upstream commit 1986af16e8ed355822600c24b3d2f0be46b573df ] Added support for the Telit LN940 series cellular modules QMI interface. QMI_QUIRK_SET_DTR quirk requied for Qualcomm MDM9x40 chipset. Signed-off-by: Jörgen Storvist Acked-by: Bjørn Mork Signed-off-by: David S.

[PATCH AUTOSEL 4.14 48/59] lan78xx: Resolve issue with changing MAC address

2018-12-26 Thread Sasha Levin
From: Jason Martinsen [ Upstream commit 1551569659c502003926a2067ee76176148a ] Current state for the lan78xx driver does not allow for changing the MAC address of the interface, without either removing the module (if you compiled it that way) or rebooting the machine. If you attempt to chan

[PATCH AUTOSEL 4.14 58/59] qmi_wwan: Fix qmap header retrieval in qmimux_rx_fixup

2018-12-26 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit d667044f49513d55fcfefe4fa8f8d96091782901 ] This patch fixes qmap header retrieval when modem is configured for dl data aggregation. Signed-off-by: Daniele Palmas Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c |

[PATCH AUTOSEL 4.19 94/97] qmi_wwan: Add support for Fibocom NL678 series

2018-12-26 Thread Sasha Levin
From: Jörgen Storvist [ Upstream commit 7c3db4105ce8d69bcb5c04bfa9acd1e9119af8d5 ] Added support for Fibocom NL678 series cellular module QMI interface. Using QMI_QUIRK_SET_DTR required for Qualcomm MDM9x40 series chipsets. Signed-off-by: Jörgen Storvist Signed-off-by: David S. Miller Signed-

[PATCH AUTOSEL 4.19 95/97] qmi_wwan: Fix qmap header retrieval in qmimux_rx_fixup

2018-12-26 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit d667044f49513d55fcfefe4fa8f8d96091782901 ] This patch fixes qmap header retrieval when modem is configured for dl data aggregation. Signed-off-by: Daniele Palmas Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c |

[PATCH v2] usb: chipidea: add a check for the availability of next child

2018-12-26 Thread Kangjie Lu
of_get_next_available_child returns NULL when no child nodes are found. The fix checks its return value instead of assuming a child is found. Signed-off-by: Kangjie Lu --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.

Re: [PATCH 1/2] dt-bindings: Add Qualcomm USB Super-Speed PHY bindings

2018-12-26 Thread Jorge Ramirez
On 12/20/18 21:25, Stephen Boyd wrote: Quoting Jorge Ramirez-Ortiz (2018-12-07 01:55:57) + +- qcom,vdd-voltage-level: +Value type: +Definition: This is a list of three integer values where +each value corresponding to voltage corner in uV. As far as I'm aware, this is

Re: [PATCH 2/2] phy: qualcomm: usb: Add Super-Speed PHY driver

2018-12-26 Thread Jorge Ramirez
On 12/20/18 21:29, Stephen Boyd wrote: Quoting Jorge Ramirez-Ortiz (2018-12-07 01:55:58) From: Shawn Guo Driver to control the Synopsys SS PHY 1.0.0 implemeneted in QCS404 Based on Sriharsha Allenki's original code. Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Shawn Guo chain shoul

[PATCH] Add Proliic new chip: PL2303TB & PL2303N(G)

2018-12-26 Thread Charles Yeh
Add new PID to support PL2303TB (TYPE_HX) Add new PID to support PL2303(N)GC/GB/GS/GT/GL/GE (TYPE_HXN) Add new Flow Control to support PL2303(N)GC/GB/GS/GT/GL/GE (TYPE_HXN) Add new Pull-Up Mode to support PL2303HXD (TYPE_HX) Fixed warning:restricted__le16 degrades to integer Signed-off-by: Charles