kernel: fix bluetooth and zsmalloc for 3.14
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.13 / 204-USB-OHCI-allow-other-arches-to-use-the-BE-frame-numb.patch
1 From b2f399dcd674a692a64bb3b300b77b78ae57b530 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Sun, 12 Jan 2014 16:47:35 +0100
4 Subject: [PATCH] USB: OHCI: allow other arches to use the BE frame number
5 quirk
6
7 Intead of guarding it with a certain PPC SoC and expanding the list
8 for each SoC requiring it, just guard it with USB_OHCI_BIG_ENDIAN_DESC.
9
10 This makes it less suprising that passing no_big_frame_no = 1 for the
11 platform data does not do what expected (or
12
13 Checking it for all big endian descriptor setups should not impact
14 performance much as USB1.1 is rather slow anyway.
15
16 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
17 ---
18 drivers/usb/host/ohci.h | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/usb/host/ohci.h
22 +++ b/drivers/usb/host/ohci.h
23 @@ -650,7 +650,7 @@ static inline u32 hc32_to_cpup (const st
24 * some big-endian SOC implementations. Same thing happens with PSW access.
25 */
26
27 -#ifdef CONFIG_PPC_MPC52xx
28 +#ifdef CONFIG_USB_OHCI_BIG_ENDIAN_DESC
29 #define big_endian_frame_no_quirk(ohci) (ohci->flags & OHCI_QUIRK_FRAME_NO)
30 #else
31 #define big_endian_frame_no_quirk(ohci) 0