]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.10.79/arm-dts-imx23-olinuxino-fix-dr_mode-of-usb0.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.10.79 / arm-dts-imx23-olinuxino-fix-dr_mode-of-usb0.patch
1 From 0fdebe1a2f4d3a8fc03754022fabf8ba95e131a3 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <stefan.wahren@i2se.com>
3 Date: Tue, 14 Apr 2015 20:37:26 +0000
4 Subject: ARM: dts: imx23-olinuxino: Fix dr_mode of usb0
5
6 From: Stefan Wahren <stefan.wahren@i2se.com>
7
8 commit 0fdebe1a2f4d3a8fc03754022fabf8ba95e131a3 upstream.
9
10 The dr_mode of usb0 on imx233-olinuxino is left to default "otg".
11 Since the green LED (GPIO2_1) on imx233-olinuxino is connected to the
12 same pin as USB_OTG_ID it's possible to disable USB host by LED toggling:
13
14 echo 0 > /sys/class/leds/green/brightness
15 [ 1068.890000] ci_hdrc ci_hdrc.0: remove, state 1
16 [ 1068.890000] usb usb1: USB disconnect, device number 1
17 [ 1068.920000] usb 1-1: USB disconnect, device number 2
18 [ 1068.920000] usb 1-1.1: USB disconnect, device number 3
19 [ 1069.070000] usb 1-1.2: USB disconnect, device number 4
20 [ 1069.450000] ci_hdrc ci_hdrc.0: USB bus 1 deregistered
21 [ 1074.460000] ci_hdrc ci_hdrc.0: timeout waiting for 00000800 in 11
22
23 This patch fixes the issue by setting dr_mode to "host" in the dts file.
24
25 Reported-by: Harald Geyer <harald@ccbib.org>
26 Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
27 Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
28 Reviewed-by: Marek Vasut <marex@denx.de>
29 Acked-by: Peter Chen <peter.chen@freescale.com>
30 Fixes: b49312948285 ("ARM: dts: imx23-olinuxino: Add USB host support")
31 Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
32 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33
34 ---
35 arch/arm/boot/dts/imx23-olinuxino.dts | 1 +
36 1 file changed, 1 insertion(+)
37
38 --- a/arch/arm/boot/dts/imx23-olinuxino.dts
39 +++ b/arch/arm/boot/dts/imx23-olinuxino.dts
40 @@ -89,6 +89,7 @@
41
42 ahb@80080000 {
43 usb0: usb@80080000 {
44 + dr_mode = "host";
45 vbus-supply = <&reg_usb0_vbus>;
46 status = "okay";
47 };