Skip to contentSkip to conversation

USB3/DWC3: Add definition for global soc bus configuration register

PATCH In review Changming Huang 2 participants 10 messages Jan 18, 2017 – Jun 2, 2017

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

PATCH v4 1/3 USB3/DWC3: Add definition for global soc bus configuration register

Add the macro definition for global soc bus configuration register 0/1

---
Changes in v4:
- no change
Changes in v3:
- no change
Changes in v2:
- split the patch
- add more macro definition for soc bus configuration register

 drivers/usb/dwc3/core.h |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/usb/dwc3/core.h +26 -0
index de5a857..065aa6f 100644
@@ -161,6 +161,32 @@
 
 /* Bit fields */
 
+/* Global SoC Bus Configuration Register 0 */
+#define AXI3_CACHE_TYPE_AW		0x8 /* write allocate */
+#define AXI3_CACHE_TYPE_AR		0x4 /* read allocate */
+#define AXI3_CACHE_TYPE_SNP		0x2 /* cacheable */
+#define AXI3_CACHE_TYPE_BUF		0x1 /* bufferable */
+#define DWC3_GSBUSCFG0_DATARD_SHIFT	28
+#define DWC3_GSBUSCFG0_DESCRD_SHIFT	24
+#define DWC3_GSBUSCFG0_DATAWR_SHIFT	20
+#define DWC3_GSBUSCFG0_DESCWR_SHIFT	16
+#define DWC3_GSBUSCFG0_SNP_MASK		0xffff0000
+#define DWC3_GSBUSCFG0_DATABIGEND	(1 << 11)
+#define DWC3_GSBUSCFG0_DESCBIGEND	(1 << 10)
+#define DWC3_GSBUSCFG0_INCR256BRSTENA	(1 << 7) /* INCR256 burst */
+#define DWC3_GSBUSCFG0_INCR128BRSTENA	(1 << 6) /* INCR128 burst */
+#define DWC3_GSBUSCFG0_INCR64BRSTENA	(1 << 5) /* INCR64 burst */
+#define DWC3_GSBUSCFG0_INCR32BRSTENA	(1 << 4) /* INCR32 burst */
+#define DWC3_GSBUSCFG0_INCR16BRSTENA	(1 << 3) /* INCR16 burst */
+#define DWC3_GSBUSCFG0_INCR8BRSTENA	(1 << 2) /* INCR8 burst */
+#define DWC3_GSBUSCFG0_INCR4BRSTENA	(1 << 1) /* INCR4 burst */
+#define DWC3_GSBUSCFG0_INCRBRSTENA	(1 << 0) /* undefined length enable */
+#define DWC3_GSBUSCFG0_INCRBRST_MASK	0xff
+
+/* Global SoC Bus Configuration Register 1 */
+#define DWC3_GSBUSCFG1_1KPAGEENA	(1 << 12) /* 1K page boundary enable */
+#define DWC3_GSBUSCFG1_PTRANSLIMIT_MASK	0xf00
+
 /* Global Debug Queue/FIFO Space Available Register */
 #define DWC3_GDBGFIFOSPACE_NUM(n)	((n) & 0x1f)
 #define DWC3_GDBGFIFOSPACE_TYPE(n)	(((n) << 5) & 0x1e0)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 2/3 USB3/DWC3: Add property "snps,incr-burst-type-adjustment" for INCR burst type

Property "snps,incr-burst-type-adjustment = <x>, <y>..." for USB3.0 DWC3. When Just one value means INCRx mode with fix burst type.
When more than one value, means undefined length burst mode, USB controller can use the length less than or equal to the largest enabled burst length.

While enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform:
around 3% improvement (from 364MB/s to 375MB/s).

---
Changes in v4:
- change definition for this property.
Changes in v3:
- add new property for INCR burst in usb node.

 Documentation/devicetree/bindings/usb/dwc3.txt |    6 ++++++
 arch/arm/boot/dts/ls1021a.dtsi                 |    1 +
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |    3 +++
 arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |    2 ++
 4 files changed, 12 insertions(+)
Documentation/devicetree/bindings/usb/dwc3.txt +6 -0
index e3e6983..a68dbfc 100644
@@ -55,6 +55,11 @@ Optional properties:
 	fladj_30mhz_sdbnd signal is invalid or incorrect.
 
  - <DEPRECATED> tx-fifo-resize: determines if the FIFO *has* to be reallocated.
+ - snps,incr-burst-type-adjustment: Value for INCR burst type of GSBUSCFG0
+	register, undefined length INCR burst type enable and INCRx type.
+	When just one value, which means INCRX burst mode. When more than one
+	value, which means undefined length INCR burst type enabled.
+	The values can be 1, 4, 8, 16, 32, 64, 128 and 256.
 
 This is usually a subnode to DWC3 glue to which it is connected.
 
@@ -63,4 +68,5 @@ dwc3 at 4a030000 {
 	reg = <0x4a030000 0xcfff>;
 	interrupts = <0 92 4>
 	usb-phy = <&usb2_phy>, <&usb3,phy>;
+	snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 };
arch/arm/boot/dts/ls1021a.dtsi +1 -0
index 368e219..6eee0d5 100644
@@ -627,6 +627,7 @@
 			dr_mode = "host";
 			snps,quirk-frame-length-adjustment = <0x20>;
 			snps,dis_rxdet_inp3_quirk;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 		};
 
 		pcie at 3400000 {
arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +3 -0
index 97d331e..04ffd66 100644
@@ -482,6 +482,7 @@
 			dr_mode = "host";
 			snps,quirk-frame-length-adjustment = <0x20>;
 			snps,dis_rxdet_inp3_quirk;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 		};
 
 		usb1: usb3 at 3000000 {
@@ -491,6 +492,7 @@
 			dr_mode = "host";
 			snps,quirk-frame-length-adjustment = <0x20>;
 			snps,dis_rxdet_inp3_quirk;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 		};
 
 		usb2: usb3 at 3100000 {
@@ -500,6 +502,7 @@
 			dr_mode = "host";
 			snps,quirk-frame-length-adjustment = <0x20>;
 			snps,dis_rxdet_inp3_quirk;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 		};
 
 		sata: sata at 3200000 {
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2 -0
index d058e56..902cc93 100644
@@ -710,6 +710,7 @@
 			dr_mode = "host";
 			snps,quirk-frame-length-adjustment = <0x20>;
 			snps,dis_rxdet_inp3_quirk;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 		};
 
 		usb1: usb3 at 3110000 {
@@ -720,6 +721,7 @@
 			dr_mode = "host";
 			snps,quirk-frame-length-adjustment = <0x20>;
 			snps,dis_rxdet_inp3_quirk;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
 		};
 
 		ccn at 4000000 {
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v4 3/3 USB3/DWC3: Enable undefined length INCR burst type

In reply to Changming Huang

Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value.

---
Changes in v4:
- Modify the codes according to the definition of this property.
Changes in v3:
- add new property for INCR burst in usb node to reset GSBUSCFG0.
Changes in v2:
- split patch
- create one new function to handle soc bus configuration register.

 drivers/usb/dwc3/core.c |   83 +++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc3/core.h |    7 ++++
 2 files changed, 90 insertions(+)
drivers/usb/dwc3/core.c +83 -0
index 369bab1..446aec3 100644
@@ -650,6 +650,87 @@ static void dwc3_core_setup_global_control(struct dwc3 *dwc)
 	dwc3_writel(dwc->regs, DWC3_GCTL, reg);
 }
 
+/* set global soc bus configuration registers */
+static void dwc3_set_soc_bus_cfg(struct dwc3 *dwc)
+{
+	struct device *dev = dwc->dev;
+	u32 *vals;
+	u32 cfg;
+	int ntype;
+	int ret;
+	int i;
+
+	cfg = dwc3_readl(dwc->regs, DWC3_GSBUSCFG0);
+
+	/*
+	 * Handle property "snps,incr-burst-type-adjustment".
+	 * Get the number of value from this property:
+	 * result <= 0, means this property is not supported.
+	 * result = 1, means INCRx burst mode supported.
+	 * result > 1, means undefined length burst mode supported.
+	 */
+	ntype = device_property_read_u32_array(dev,
+			"snps,incr-burst-type-adjustment", NULL, 0);
+	if (ntype > 0) {
+		vals = kcalloc(ntype, sizeof(u32), GFP_KERNEL);
+		if (!vals) {
+			dev_err(dev, "Error to get memory\n");
+			return;
+		}
+		/* Get INCR burst type, and parse it */
+		ret = device_property_read_u32_array(dev,
+			"snps,incr-burst-type-adjustment", vals, ntype);
+		if (ret) {
+			dev_err(dev, "Error to get property\n");
+			return;
+		}
+		*(dwc->incrx_type + 1) = vals[0];
+		if (ntype > 1) {
+			*dwc->incrx_type = 1;
+			for (i = 1; i < ntype; i++) {
+				if (vals[i] > *(dwc->incrx_type + 1))
+					*(dwc->incrx_type + 1) = vals[i];
+			}
+		} else
+			*dwc->incrx_type = 0;
+
+		/* Enable Undefined Length INCR Burst and Enable INCRx Burst */
+		cfg &= ~DWC3_GSBUSCFG0_INCRBRST_MASK;
+		if (*dwc->incrx_type)
+			cfg |= DWC3_GSBUSCFG0_INCRBRSTENA;
+		switch (*(dwc->incrx_type + 1)) {
+		case 256:
+			cfg |= DWC3_GSBUSCFG0_INCR256BRSTENA;
+			break;
+		case 128:
+			cfg |= DWC3_GSBUSCFG0_INCR128BRSTENA;
+			break;
+		case 64:
+			cfg |= DWC3_GSBUSCFG0_INCR64BRSTENA;
+			break;
+		case 32:
+			cfg |= DWC3_GSBUSCFG0_INCR32BRSTENA;
+			break;
+		case 16:
+			cfg |= DWC3_GSBUSCFG0_INCR16BRSTENA;
+			break;
+		case 8:
+			cfg |= DWC3_GSBUSCFG0_INCR8BRSTENA;
+			break;
+		case 4:
+			cfg |= DWC3_GSBUSCFG0_INCR4BRSTENA;
+			break;
+		case 1:
+			break;
+		default:
+			dev_err(dev, "Invalid property\n");
+			break;
+		}
+	}
+
+	dwc3_writel(dwc->regs, DWC3_GSBUSCFG0, cfg);
+}
+
 /**
  * dwc3_core_init - Low-level initialization of DWC3 Core
  * @dwc: Pointer to our controller context structure
@@ -698,6 +779,8 @@ static int dwc3_core_init(struct dwc3 *dwc)
 	/* Adjust Frame Length */
 	dwc3_frame_length_adjustment(dwc);
 
+	dwc3_set_soc_bus_cfg(dwc);
+
 	usb_phy_set_suspend(dwc->usb2_phy, 0);
 	usb_phy_set_suspend(dwc->usb3_phy, 0);
 	ret = phy_power_on(dwc->usb2_generic_phy);
drivers/usb/dwc3/core.h +7 -0
index 065aa6f..9df6304 100644
@@ -805,6 +805,7 @@ struct dwc3_scratchpad_array {
  * @regs: base address for our registers
  * @regs_size: address space size
  * @fladj: frame length adjustment
+ * @incrx_type: INCR burst type adjustment
  * @irq_gadget: peripheral controller's IRQ number
  * @nr_scratch: number of scratch buffers
  * @u1u2: only used on revisions <1.83a for workaround
@@ -928,6 +929,12 @@ struct dwc3 {
 	enum usb_phy_interface	hsphy_mode;
 
 	u32			fladj;
+	/*
+	 * For INCR burst type.
+	 * First field: for undefined length INCR burst type enable.
+	 * Second field: for INCRx burst type enable
+	 */
+	u32			incrx_type[2];
 	u32			irq_gadget;
 	u32			nr_scratch;
 	u32			u1u2;
Signature · 1 line
1.7.9.5
#3 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Quoted 158 lines

-----Original Message-----
From: Changming Huang [mailto:jerry.huang at nxp.com]
Sent: Wednesday, January 18, 2017 4:12 PM
To: balbi at kernel.org; robh+dt at kernel.org; mark.rutland at arm.com; catalin.marinas at arm.com
Cc: linux-usb at vger.kernel.org; linux-kernel at vger.kernel.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; Jerry Huang <[email protected]>; Rajesh Bhagat <[email protected]>
Subject: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type.
In order to get best performance, we need to tune the burst size to one special value, instead of the default value.

---
Changes in v4:
- Modify the codes according to the definition of this property.
Changes in v3:
- add new property for INCR burst in usb node to reset GSBUSCFG0.
Changes in v2:
- split patch
- create one new function to handle soc bus configuration register.

 drivers/usb/dwc3/core.c |   83
+++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc3/core.h |    7 ++++
 2 files changed, 90 insertions(+)
drivers/usb/dwc3/core.c index renamed from drivers/usb/dwc3/core.c +0 -0

369bab1..446aec3 100644

drivers/usb/dwc3/core.c +44 -0
@@ -650,6 +650,87 @@ static void dwc3_core_setup_global_control(struct
 dwc3 *dwc)
 	dwc3_writel(dwc->regs, DWC3_GCTL, reg);  }
 
+/* set global soc bus configuration registers */ static void
+dwc3_set_soc_bus_cfg(struct dwc3 *dwc) {
+	struct device *dev = dwc->dev;
+	u32 *vals;
+	u32 cfg;
+	int ntype;
+	int ret;
+	int i;
+
+	cfg = dwc3_readl(dwc->regs, DWC3_GSBUSCFG0);
+
+	/*
+	 * Handle property "snps,incr-burst-type-adjustment".
+	 * Get the number of value from this property:
+	 * result <= 0, means this property is not supported.
+	 * result = 1, means INCRx burst mode supported.
+	 * result > 1, means undefined length burst mode supported.
+	 */
+	ntype = device_property_read_u32_array(dev,
+			"snps,incr-burst-type-adjustment", NULL, 0);
+	if (ntype > 0) {
+		vals = kcalloc(ntype, sizeof(u32), GFP_KERNEL);
+		if (!vals) {
+			dev_err(dev, "Error to get memory\n");
+			return;
+		}
+		/* Get INCR burst type, and parse it */
+		ret = device_property_read_u32_array(dev,
+			"snps,incr-burst-type-adjustment", vals, ntype);
+		if (ret) {
+			dev_err(dev, "Error to get property\n");
+			return;
+		}
+		*(dwc->incrx_type + 1) = vals[0];
+		if (ntype > 1) {
+			*dwc->incrx_type = 1;
+			for (i = 1; i < ntype; i++) {
+				if (vals[i] > *(dwc->incrx_type + 1))
+					*(dwc->incrx_type + 1) = vals[i];
+			}
+		} else
+			*dwc->incrx_type = 0;
+
+		/* Enable Undefined Length INCR Burst and Enable INCRx

Burst */

drivers/usb/dwc3/core.c +35 -0
+		cfg &= ~DWC3_GSBUSCFG0_INCRBRST_MASK;
+		if (*dwc->incrx_type)
+			cfg |= DWC3_GSBUSCFG0_INCRBRSTENA;
+		switch (*(dwc->incrx_type + 1)) {
+		case 256:
+			cfg |= DWC3_GSBUSCFG0_INCR256BRSTENA;
+			break;
+		case 128:
+			cfg |= DWC3_GSBUSCFG0_INCR128BRSTENA;
+			break;
+		case 64:
+			cfg |= DWC3_GSBUSCFG0_INCR64BRSTENA;
+			break;
+		case 32:
+			cfg |= DWC3_GSBUSCFG0_INCR32BRSTENA;
+			break;
+		case 16:
+			cfg |= DWC3_GSBUSCFG0_INCR16BRSTENA;
+			break;
+		case 8:
+			cfg |= DWC3_GSBUSCFG0_INCR8BRSTENA;
+			break;
+		case 4:
+			cfg |= DWC3_GSBUSCFG0_INCR4BRSTENA;
+			break;
+		case 1:
+			break;
+		default:
+			dev_err(dev, "Invalid property\n");
+			break;
+		}
+	}
+
+	dwc3_writel(dwc->regs, DWC3_GSBUSCFG0, cfg); }
+
 /**
  * dwc3_core_init - Low-level initialization of DWC3 Core
  * @dwc: Pointer to our controller context structure @@ -698,6 +779,8 @@

static int dwc3_core_init(struct dwc3 *dwc)

drivers/usb/dwc3/core.c +2 -0
 	/* Adjust Frame Length */
 	dwc3_frame_length_adjustment(dwc);
 
+	dwc3_set_soc_bus_cfg(dwc);
+
 	usb_phy_set_suspend(dwc->usb2_phy, 0);
 	usb_phy_set_suspend(dwc->usb3_phy, 0);
 	ret = phy_power_on(dwc->usb2_generic_phy);
drivers/usb/dwc3/core.h index renamed from drivers/usb/dwc3/core.h +0 -0

065aa6f..9df6304 100644

drivers/usb/dwc3/core.h +1 -0
@@ -805,6 +805,7 @@ struct dwc3_scratchpad_array {
  * @regs: base address for our registers
  * @regs_size: address space size
  * @fladj: frame length adjustment
+ * @incrx_type: INCR burst type adjustment
  * @irq_gadget: peripheral controller's IRQ number
  * @nr_scratch: number of scratch buffers
  * @u1u2: only used on revisions <1.83a for workaround @@ -928,6 +929,12

@@ struct dwc3 {

drivers/usb/dwc3/core.h +6 -1
 	enum usb_phy_interface	hsphy_mode;
 
 	u32			fladj;
+	/*
+	 * For INCR burst type.
+	 * First field: for undefined length INCR burst type enable.
+	 * Second field: for INCRx burst type enable
+	 */
+	u32			incrx_type[2];
 	u32			irq_gadget;
 	u32			nr_scratch;
 	u32			u1u2;
--
Quoted 1 line

1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

#4 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Hi,

Quoted 17 lines · Jerry Huang
Quoted 14 lines

@@ struct dwc3 {

drivers/usb/dwc3/core.h +6 -1
 	enum usb_phy_interface	hsphy_mode;
 
 	u32			fladj;
+	/*
+	 * For INCR burst type.
+	 * First field: for undefined length INCR burst type enable.
+	 * Second field: for INCRx burst type enable
+	 */
+	u32			incrx_type[2];
 	u32			irq_gadget;
 	u32			nr_scratch;
 	u32			u1u2;
--
Quoted 1 line

1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

Rob had comments which you didn't reply yet. I cannot take this patchset yet ;-)

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170210/8416f400/attachment.sig>
#5 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

--
1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

Rob had comments which you didn't reply yet. I cannot take this patchset yet ;-)

Balbi,
I look into his mail again, which was based v3, and I replied it.
He had different understanding for undefined length burst mode.
It seems he think for this mode, just setting bit[0] (INCRBrstEna) and don't need to set other field.
However, according to the DWC USB3.0 controller databook, when it is undefined length INCR burst mode, we still need to set one max burst type, such as INCR8, which means controller will use any length less than or equal to this INCR8.

#6 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Hi,

Quoted 14 lines · Jerry Huang
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

--
1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

Rob had comments which you didn't reply yet. I cannot take this patchset yet ;-)

Balbi,

I look into his mail again, which was based v3, and I replied it.

He had different understanding for undefined length burst mode.

Quoted 7 lines

It seems he think for this mode, just setting bit[0] (INCRBrstEna) and don't need to set other field.

However, according to the DWC USB3.0 controller databook, when it is undefined length INCR burst mode, we still need to set one max burst type, such as INCR8, which means controller will use any length less than or equal to this INCR8.

Rob, do you agree with the patch now?

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170310/13354915/attachment.sig>
#7 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Quoted 38 lines

-----Original Message-----
From: Felipe Balbi [mailto:balbi at kernel.org]
Sent: Friday, March 10, 2017 7:27 PM
To: Jerry Huang <[email protected]>; robh+dt at kernel.org; mark.rutland at arm.com; catalin.marinas at arm.com
Cc: linux-usb at vger.kernel.org; linux-kernel at vger.kernel.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; Rajesh Bhagat <[email protected]>
Subject: RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Hi,

Quoted 14 lines · Jerry Huang
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

--
1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

Rob had comments which you didn't reply yet. I cannot take this patchset yet ;-)

Balbi,

I look into his mail again, which was based v3, and I replied it.

He had different understanding for undefined length burst mode.

Quoted 7 lines

It seems he think for this mode, just setting bit[0] (INCRBrstEna) and don't need to set other field.

However, according to the DWC USB3.0 controller databook, when it is undefined length INCR burst mode, we still need to set one max burst type, such as INCR8, which means controller will use any length less than or equal to this INCR8.

Quoted 4 lines

Rob, do you agree with the patch now?

--
balbi

Hi, Balbi,
Any comment for these patches? Or any chance to merge them?

#8 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Hi,

Quoted 23 lines · Jerry Huang
Quoted 23 lines
Quoted 21 lines · Jerry Huang
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

--
1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

Rob had comments which you didn't reply yet. I cannot take this patchset yet ;-)

Balbi,

I look into his mail again, which was based v3, and I replied it.

He had different understanding for undefined length burst mode.

It seems he think for this mode, just setting bit[0] (INCRBrstEna) and don't need to set other field.

However, according to the DWC USB3.0 controller databook, when it is undefined length INCR burst mode, we still need to set one max burst type, such as INCR8, which means controller will use any length less than or equal to this INCR8.

Quoted 7 lines
Quoted 4 lines

Rob, do you agree with the patch now?

--
balbi

Hi, Balbi,
Any comment for these patches? Or any chance to merge them?

I'm not sure you understand how development is carried out here. I *can't* apply patches touching Device Tree properties without an Acked-by from any of the Device Tree maintainers. Until then, there's nothing I can say/do.

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170602/621e0e10/attachment.sig>
#9 lore raw

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

In reply to Felipe Balbi
Quoted 19 lines

-----Original Message-----
From: Jerry Huang
Sent: Friday, February 10, 2017 11:30 PM
To: 'Felipe Balbi' <[email protected]>; robh+dt at kernel.org; mark.rutland at arm.com; catalin.marinas at arm.com
Cc: linux-usb at vger.kernel.org; linux-kernel at vger.kernel.org; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; Rajesh Bhagat <[email protected]>
Subject: RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

--
1.7.9.5

Hi, Balbi and all guys,
Any comment for these patches? Can they be accepted?

Rob had comments which you didn't reply yet. I cannot take this patchset yet ;-)

Quoted 9 lines

Balbi,
I look into his mail again, which was based v3, and I replied it. He had different understanding for undefined length burst mode. It seems he think for this mode, just setting bit[0] (INCRBrstEna) and don't need to set other field.
However, according to the DWC USB3.0 controller databook, when it is undefined length INCR burst mode, we still need to set one max burst type, such as INCR8, which means controller will use any length less than or equal to this INCR8.

Any comment for it? Ten days passed away again :)