kernel: refresh patches
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 195-4-xhci-plat-changes.patch
1 From 8fd033e1b6cdd30c32762ef1c5e2216226dd61e1 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Tue, 11 Feb 2014 17:50:51 +0100
4 Subject: [PATCH] xhci-platform: Change compatible string from xhci-platform to
5 generic-xhci
6
7 This brings the xhci-platform bindings in sync with what we've done for
8 the ohci- and ehci-platform drivers. As discussed there using platform as a
9 postfix is a bit weird as the platform bus is a Linux specific thing and
10 the bindings are supposed to be OS agnostic.
11
12 Note that the old xhci-platform compatible string is kept around for, well,
13 compatibility reasons.
14
15 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
16 ---
17 Documentation/devicetree/bindings/usb/usb-xhci.txt | 4 ++--
18 drivers/usb/host/xhci-plat.c | 1 +
19 2 files changed, 3 insertions(+), 2 deletions(-)
20
21 --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt
22 +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt
23 @@ -1,14 +1,14 @@
24 USB xHCI controllers
25
26 Required properties:
27 - - compatible: should be "xhci-platform".
28 + - compatible: should be "generic-xhci" (deprecated: "xhci-platform").
29 - reg: should contain address and length of the standard XHCI
30 register set for the device.
31 - interrupts: one XHCI interrupt should be described here.
32
33 Example:
34 usb@f0931000 {
35 - compatible = "xhci-platform";
36 + compatible = "generic-xhci";
37 reg = <0xf0931000 0x8c8>;
38 interrupts = <0x0 0x4e 0x0>;
39 };
40 --- a/drivers/usb/host/xhci-plat.c
41 +++ b/drivers/usb/host/xhci-plat.c
42 @@ -234,6 +234,7 @@ static const struct dev_pm_ops xhci_plat
43
44 #ifdef CONFIG_OF
45 static const struct of_device_id usb_xhci_of_match[] = {
46 + { .compatible = "generic-xhci" },
47 { .compatible = "xhci-platform" },
48 { },
49 };