Skip to contentSkip to conversation

Axi-usb: Add support for 64-bit addressing.

PATCH In review Nava kishore Manne 3 participants 5 messages Sep 1, 2016 – Sep 2, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 Axi-usb: Add support for 64-bit addressing.

This patch updates the driver to support 64-bit DMA addressing.

---
Changes for v5:

                -None.

Changes for v4:
-Used boolen property insted of addrwith property in the DT
as suggested by Arnd Bergmann.
-Adopt the DT relevant changes into the driver.

Changes for v3:
-Added new compatable string for 5.00 IP version as suggested by
Arnd Bergmann.
-Used write_fn() insted of lo_hi_writeq() as suggested by
Arnd Bergmann.
Changes for v2:
-Added dma-ranges property in device tree as suggested by
Arnd Bergmann.
-Modified the driver code based on the xlnx,addrwidth.

 .../devicetree/bindings/usb/udc-xilinx.txt         |  5 ++-
 drivers/usb/gadget/udc/udc-xilinx.c                | 52 +++++++++++++++++++++-
 2 files changed, 54 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/usb/udc-xilinx.txt +4 -1
index 47b4e39..d08d972 100644
@@ -1,12 +1,14 @@
 Xilinx USB2 device controller
 
 Required properties:
-- compatible		: Should be "xlnx,usb2-device-4.00.a"
+- compatible		: Should be "xlnx,usb2-device-4.00.a" or
+			  "xlnx,usb2-device-5.00"
 - reg			: Physical base address and size of the USB2
 			  device registers map.
 - interrupts		: Should contain single irq line of USB2 device
 			  controller
 - xlnx,has-builtin-dma	: if DMA is included
+- xlnx,has-64bit-dma	: if DMA is included 64-bit addressing support.
 
 Example:
  		axi-usb2-device at 42e00000 {
@@ -14,5 +16,6 @@ Example:
                         interrupts = <0x0 0x39 0x1>;
                         reg = <0x42e00000 0x10000>;
                         xlnx,has-builtin-dma;
+			xlnx,has-64bit-dma;
                 };
 
drivers/usb/gadget/udc/udc-xilinx.c +50 -2

94 lines not on this page · raw message

Signature · 1 line
2.1.2
#1 lore raw
Quoted 34 lines · Nava kishore Manne

This patch updates the driver to support 64-bit DMA addressing.

---
Changes for v5:

                -None.

Changes for v4:
-Used boolen property insted of addrwith property in the DT
as suggested by Arnd Bergmann.
-Adopt the DT relevant changes into the driver.

Changes for v3:
-Added new compatable string for 5.00 IP version as suggested by
Arnd Bergmann.
-Used write_fn() insted of lo_hi_writeq() as suggested by
Arnd Bergmann.
Changes for v2:
-Added dma-ranges property in device tree as suggested by
Arnd Bergmann.
-Modified the driver code based on the xlnx,addrwidth.

 .../devicetree/bindings/usb/udc-xilinx.txt         |  5 ++-
 drivers/usb/gadget/udc/udc-xilinx.c                | 52 +++++++++++++++++++++-
 2 files changed, 54 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/usb/udc-xilinx.txt +0 -0
index 47b4e39..d08d972 100644
@@ -1,12 +1,14 @@
 Xilinx USB2 device controller
 

Documentation/devicetree/bindings/usb/udc-xilinx.txt line 11

Quoted 10 lines
Documentation/devicetree/bindings/usb/udc-xilinx.txt +3 -1
 Required properties:
-- compatible		: Should be "xlnx,usb2-device-4.00.a"
+- compatible		: Should be "xlnx,usb2-device-4.00.a" or
+			  "xlnx,usb2-device-5.00"
 - reg			: Physical base address and size of the USB2
 			  device registers map.
 - interrupts		: Should contain single irq line of USB2 device
 			  controller
 - xlnx,has-builtin-dma	: if DMA is included
+- xlnx,has-64bit-dma	: if DMA is included 64-bit addressing support.

We add these properties to describe the IP configuration + we have the version indicator in the compatible string. Do we really need both? It seems that all versions use the same driver and differentiation is made through the DT properties that describe the IP configuration parameters. Wouldn't it be better to just have one generic 'xlnx,axi-usb2' (or whatever) compatible string instead of patching the driver for each new version without really needing to differentiate the IP versions through it?

S?ren

#2 lore raw

HI Soren,

Thanks for the review....

Quoted 59 lines

-----Original Message-----
From: S?ren Brinkmann [mailto:soren.brinkmann at xilinx.com]
Sent: Thursday, September 01, 2016 11:27 PM
To: Nava kishore Manne <[email protected]>
Cc: robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com; ijc+devicetree at hellion.org.uk; galak at codeaurora.org; balbi at kernel.org; gregkh at linuxfoundation.org; devicetree at vger.kernel.org; linux-arm- kernel at lists.infradead.org; linux-kernel at vger.kernel.org; linux- usb at vger.kernel.org; Nava kishore Manne <[email protected]>
Subject: Re: [PATCH v5] Axi-usb: Add support for 64-bit addressing.

Quoted 23 lines · Nava kishore Manne

This patch updates the driver to support 64-bit DMA addressing.

---
Changes for v5:

                -None.

Changes for v4:
-Used boolen property insted of addrwith property in the DT
as suggested by Arnd Bergmann.
-Adopt the DT relevant changes into the driver.

Changes for v3:
-Added new compatable string for 5.00 IP version as suggested by
Arnd Bergmann.
-Used write_fn() insted of lo_hi_writeq() as suggested by
Arnd Bergmann.
Changes for v2:
-Added dma-ranges property in device tree as suggested by
Arnd Bergmann.
-Modified the driver code based on the xlnx,addrwidth.

Quoted 2 lines
 .../devicetree/bindings/usb/udc-xilinx.txt         |  5 ++-
 drivers/usb/gadget/udc/udc-xilinx.c                | 52

+++++++++++++++++++++-

Quoted 10 lines
 2 files changed, 54 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/usb/udc-xilinx.txt +0 -0
index 47b4e39..d08d972 100644
@@ -1,12 +1,14 @@
 Xilinx USB2 device controller
 

Documentation/devicetree/bindings/usb/udc-xilinx.txt line 11

Quoted 10 lines
Documentation/devicetree/bindings/usb/udc-xilinx.txt +3 -1
 Required properties:
-- compatible               : Should be "xlnx,usb2-device-4.00.a"
+- compatible               : Should be "xlnx,usb2-device-4.00.a" or
+                     "xlnx,usb2-device-5.00"
 - reg                      : Physical base address and size of the USB2
                      device registers map.
 - interrupts               : Should contain single irq line of USB2 device
                      controller
 - xlnx,has-builtin-dma     : if DMA is included
+- xlnx,has-64bit-dma       : if DMA is included 64-bit addressing support.
Quoted 8 lines

We add these properties to describe the IP configuration + we have the version indicator in the compatible string. Do we really need both? It seems that all versions use the same driver and differentiation is made through the DT properties that describe the IP configuration parameters. Wouldn't it be better to just have one generic 'xlnx,axi-usb2' (or whatever) compatible string instead of patching the driver for each new version without really needing to differentiate the IP versions through it?

I think matching on the version number is slightly better, as we have the version Already and it identifies the 64-bit registers existence.

Regards,
Navakishore

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#3 lore raw
Quoted 2 lines · Nava kishore Manne

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

Now deleted.

I have told you this before, this type of footer guarantees that your patches, or emails, will not get reviewed. It is the exact opposite of working in public together.

Please have your company fix this.

greg k-h

#4 lore raw
Quoted 21 lines

-----Original Message-----
From: gregkh at linuxfoundation.org [mailto:gregkh at linuxfoundation.org]
Sent: Friday, September 02, 2016 12:09 PM
To: Nava kishore Manne <[email protected]>
Cc: Soren Brinkmann <[email protected]>; robh+dt at kernel.org; pawel.moll at arm.com; mark.rutland at arm.com;
ijc+devicetree at hellion.org.uk; galak at codeaurora.org; balbi at kernel.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; linux-usb at vger.kernel.org
Subject: Re: [PATCH v5] Axi-usb: Add support for 64-bit addressing.

Quoted 1 line · Nava kishore Manne

This email and any attachments are intended for the sole use of the named

recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

Quoted 1 line
Quoted 7 lines

Now deleted.

I have told you this before, this type of footer guarantees that your patches, or emails, will not get reviewed. It is the exact opposite of working in public together.

Please have your company fix this.

Sorry something fishy happened with my email-client
I forgot to keep no-footer option in my email-client. Next time onwards will take care before giving replies...

Regards,
Navakishore.