]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
usb: host: ehci-xilinx: modified driver to resolve formatting warnings
authorManish Narani <manish.narani@xilinx.com>
Wed, 26 Apr 2017 08:08:04 +0000 (13:38 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 20 Jun 2017 12:13:26 +0000 (14:13 +0200)
This patch resolves checkpatch warnings for xilinx EHCI driver.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Documentation/devicetree/bindings/usb/ehci-xilinx.txt [new file with mode: 0644]
drivers/usb/host/ehci-xilinx-of.c

diff --git a/Documentation/devicetree/bindings/usb/ehci-xilinx.txt b/Documentation/devicetree/bindings/usb/ehci-xilinx.txt
new file mode 100644 (file)
index 0000000..4df7ad6
--- /dev/null
@@ -0,0 +1,21 @@
+Xilinx USB EHCI controller
+
+Required properties:
+- compatible: must be "xlnx,xps-usb-host-1.00.a"
+- reg: physical base address of the controller and length of memory mapped
+  region.
+- interrupts: The EHCI interrupt
+
+Optional properties:
+- xlnx,ext-vbus-valid: Use external VBUS
+- xlnx,support-usb-fs: Support for Full Speed USB
+- xlnx,use-phy-bus-pwr: Use phy bus power in USB
+
+Example:
+
+       xps_usb_host_0: usb@82400000 {
+               compatible = "xlnx,xps-usb-host-1.00.a";
+               interrupt-parent = <&xps_intc_0>;
+               interrupts = < 0 2 >;
+               reg = < 0x82400000 0x200 >;
+       } ;
index f54480850bb89eba4c44bad91d4ad01f9f8d3bf0..2b351a8a6a0974604015479dcd9dd40f85c95723 100644 (file)
@@ -60,11 +60,9 @@ static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum)
                dev_warn(hcd->self.controller,
                        "Maybe your device is not a high speed device?\n");
                dev_warn(hcd->self.controller,
-                       "The USB host controller does not support full speed "
-                       "nor low speed devices\n");
+                       "USB host controller doesn't support FS/LS devices\n");
                dev_warn(hcd->self.controller,
-                       "You can reconfigure the host controller to have "
-                       "full speed support\n");
+                       "You can reconfigure host controller to support FS\n");
        }
 
        return 0;