b07c68031cd7a96742ed7b875f5b5ef926bd6132
[openwrt/staging/yousong.git] /
1 From df4f2de9834b02c58bc59cbd6c148db03fcbaba5 Mon Sep 17 00:00:00 2001
2 From: Peter Chen <peter.chen@freescale.com>
3 Date: Tue, 4 Nov 2014 20:46:15 +0800
4 Subject: [PATCH] MLK-9785-1 usb: host: ehci-hcd: enable park mode
5
6 Enable park mode will improve the performance a lot at USB ethernet use
7 case, but a little at USB mass storage use case, and it is not harm from
8 the tests. Below the performance comparison at imx6sl:
9
10 USB Ethernet (Mbps)
11 Default Enable Park
12 TX 192 262
13 RX 262 290
14
15 USB Mass Storage (MB/s)
16 Read 21.8 22.9
17 Write 19.5 22.8
18
19 This patch is used for freescale internal.
20
21 Signed-off-by: Peter Chen <peter.chen@freescale.com>
22 (cherry picked from commit b2289a78958859cff37508e4db0314463f33c2e0)
23 (cherry picked from commit 233f37db41b01b0f827b91422711642228371615)
24 ---
25 drivers/usb/host/ehci-hcd.c | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28 --- a/drivers/usb/host/ehci-hcd.c
29 +++ b/drivers/usb/host/ehci-hcd.c
30 @@ -80,7 +80,7 @@ module_param (log2_irq_thresh, int, S_IR
31 MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes");
32
33 /* initial park setting: slower than hw default */
34 -static unsigned park = 0;
35 +static unsigned park = 3;
36 module_param (park, uint, S_IRUGO);
37 MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets");
38