Skip to contentSkip to conversation

usb: dwc2: Fix HiKey regression caused by power_down feature

PATCH Superseded John Stultz 3 participants 16 messages May 19, 2018 – Oct 1, 2018 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: dwc2: Fix HiKey regression caused by power_down feature

In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") caused the HiKey board to not correctly handle switching between usb-gadget and usb-host mode.

Unplugging the OTG port would result in:

[   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
[   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers

And the USB-host ports would not function.

And plugging in the OTG port, we would see:

[   46.046557] WARNING: CPU: 3 PID: 6 at drivers/usb/dwc2/gadget.c:260 dwc2_hsotg_init_fifo+0x194/0x1a0
[   46.055761] CPU: 3 PID: 6 Comm: kworker/u16:0 Not tainted 4.17.0-rc5-00030-ge67da8c #231
[   46.055767] Hardware name: HiKey Development Board (DT)
[   46.055784] Workqueue: dwc2 dwc2_conn_id_status_change

...

Thus, this patch sets the hisi params to disable the power_down flag by default, and gets thing working again.

Cc John Youn <[email protected]>
Cc Vardan Mikayelyan <[email protected]>
Cc Artur Petrosyan <[email protected]>
Cc Grigor Tovmasyan <[email protected]>
Cc Felipe Balbi <[email protected]>
---
 drivers/usb/dwc2/params.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/dwc2/params.c +1 -0
index f03e418..96b1b25 100644
@@ -70,6 +70,7 @@ static void dwc2_set_his_params(struct dwc2_hsotg *hsotg)
 		GAHBCFG_HBSTLEN_SHIFT;
 	p->uframe_sched = false;
 	p->change_speed_quirk = true;
+	p->power_down = false;
 }
 
 static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg)
#1 lore raw

Hi John,

Quoted 8 lines · John Stultz

In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") caused the HiKey board to not correctly handle switching between usb-gadget and usb-host mode.

Unplugging the OTG port would result in:

[   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
[   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers
Quoted 9 lines

And the USB-host ports would not function.

And plugging in the OTG port, we would see:

[   46.046557] WARNING: CPU: 3 PID: 6 at drivers/usb/dwc2/gadget.c:260 dwc2_hsotg_init_fifo+0x194/0x1a0
[   46.055761] CPU: 3 PID: 6 Comm: kworker/u16:0 Not tainted 4.17.0-rc5-00030-ge67da8c #231
[   46.055767] Hardware name: HiKey Development Board (DT)
[   46.055784] Workqueue: dwc2 dwc2_conn_id_status_change

...

Could you please send full log to debug.

Quoted 19 lines

Thus, this patch sets the hisi params to disable the power_down flag by default, and gets thing working again.

Cc John Youn <[email protected]>
Cc Vardan Mikayelyan <[email protected]>
Cc Artur Petrosyan <[email protected]>
Cc Grigor Tovmasyan <[email protected]>
Cc Felipe Balbi <[email protected]>
---
  drivers/usb/dwc2/params.c | 1 +
  1 file changed, 1 insertion(+)
drivers/usb/dwc2/params.c +0 -0
index f03e418..96b1b25 100644

drivers/usb/dwc2/params.c static void dwc2_set_his_params(struct dwc2_hsotg *hsotg) · line 73

Quoted 4 lines
drivers/usb/dwc2/params.c +1 -0
@@ -70,6 +70,7 @@ static void dwc2_set_his_params(struct dwc2_hsotg *hsotg)
  		GAHBCFG_HBSTLEN_SHIFT;
  	p->uframe_sched = false;
  	p->change_speed_quirk = true;
+	p->power_down = false;

power_down declared as int, suggested to update as follow:

	p->power_down = DWC2_POWER_DOWN_PARAM_NONE;

This can be accepted as temporary solution until we will fully debug hibernation feature for HiKey platform.

drivers/usb/dwc2/params.c static void dwc2_set_his_params(struct dwc2_hsotg *hsotg) · line 76

Quoted 4 lines
drivers/usb/dwc2/params.c +0 -0
  }
 
  static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg)

---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 13 lines · Minas Harutyunyan

Hi John,

Quoted 10 lines · John Stultz

In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") caused the HiKey board to not correctly handle switching between usb-gadget and usb-host mode.

Unplugging the OTG port would result in:

[   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
[   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers

And the USB-host ports would not function.

Quoted 8 lines
Quoted 7 lines

And plugging in the OTG port, we would see:

[   46.046557] WARNING: CPU: 3 PID: 6 at drivers/usb/dwc2/gadget.c:260 dwc2_hsotg_init_fifo+0x194/0x1a0
[   46.055761] CPU: 3 PID: 6 Comm: kworker/u16:0 Not tainted 4.17.0-rc5-00030-ge67da8c #231
[   46.055767] Hardware name: HiKey Development Board (DT)
[   46.055784] Workqueue: dwc2 dwc2_conn_id_status_change

...

Could you please send full log to debug.

Full dmesg log attached.

I unplugged the usb-otg port at 136
and replugged it back in at 141

Quoted 9 lines
Quoted 3 lines
      p->uframe_sched = false;
      p->change_speed_quirk = true;

+ p->power_down = false;

power_down declared as int, suggested to update as follow:

        p->power_down = DWC2_POWER_DOWN_PARAM_NONE;

This can be accepted as temporary solution until we will fully debug hibernation feature for HiKey platform.

Ok, will re-send with the suggested change above.

thanks
-john

#3 lore raw

Hi John,

Please provide log with debug enabled configuration.

Quoted 10 lines · John Stultz
Quoted 8 lines · Minas Harutyunyan

Hi John,

Quoted 5 lines · John Stultz

In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") caused the HiKey board to not correctly handle switching between usb-gadget and usb-host mode.

Unplugging the OTG port would result in:

OTG port you mean MicroAB, Correct?
dwc2 driver loaded when some device connected to OTG port? And below message printed after disconnect the device from OTG port?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
[   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
[   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers

And the USB-host ports would not function.

USB-host ports - you mean 2 USB A-ports, connected to TS3USB221 HUB? Switching ports between OTG and Host ports via TS3USB221 Switch performing automatically or by some SW tool?

Quoted 23 lines
Quoted 9 lines
Quoted 8 lines

And plugging in the OTG port, we would see:

[   46.046557] WARNING: CPU: 3 PID: 6 at drivers/usb/dwc2/gadget.c:260 dwc2_hsotg_init_fifo+0x194/0x1a0
[   46.055761] CPU: 3 PID: 6 Comm: kworker/u16:0 Not tainted 4.17.0-rc5-00030-ge67da8c #231
[   46.055767] Hardware name: HiKey Development Board (DT)
[   46.055784] Workqueue: dwc2 dwc2_conn_id_status_change

...

Could you please send full log to debug.

Full dmesg log attached.

I unplugged the usb-otg port at 136
and replugged it back in at 141

Quoted 7 lines
Quoted 3 lines
       p->uframe_sched = false;
       p->change_speed_quirk = true;

+ p->power_down = false;

power_down declared as int, suggested to update as follow:

         p->power_down = DWC2_POWER_DOWN_PARAM_NONE;
Quoted 8 lines
Quoted 2 lines

This can be accepted as temporary solution until we will fully debug hibernation feature for HiKey platform.

Ok, will re-send with the suggested change above.

thanks
-john

---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 3 lines · Minas Harutyunyan

Hi John,

Please provide log with debug enabled configuration.

Ok. Attached.
For dmesg-broken.log: OTG removed at 77, and OTG plugged in at 82 For dmesg-with-patch.log: OTG removed at 31, OTG plugged in at 38.

Note with the dmesg-with-patch (using my patch), things seem to be working ok. Though in the example above it may look odd, as usually it switches to to host mode, then when it detects a low speed device (a mouse which I had plugged in), it will reset to switch to low-speed, but I didn't wait long enough for the reset to complete and the mouse to be detected before re-plugging in the OTG port.

Quoted 5 lines · John Stultz
Quoted 4 lines
Quoted 2 lines · Minas Harutyunyan

Hi John,

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines · John Stultz
Quoted 5 lines

In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") caused the HiKey board to not correctly handle switching between usb-gadget and usb-host mode.

Unplugging the OTG port would result in:

OTG port you mean MicroAB, Correct?

Correct.

Quoted 1 line

dwc2 driver loaded when some device connected to OTG port?

Yes, I normally boot with the board plugged in to OTG as a peripheral/gadget for adb.

Quoted 4 lines

And below message printed after disconnect the device from OTG port?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
[   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
[   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers

Correct.

Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

And the USB-host ports would not function.

USB-host ports - you mean 2 USB A-ports, connected to TS3USB221 HUB?

Correct.

Quoted 2 lines

Switching ports between OTG and Host ports via TS3USB221 Switch performing automatically or by some SW tool?

Its done automatically, when the OTG cable is detected it the host ports are disabled and when the OTG port is empty the host ports are enabled.

Let me know if you need anything else!

thanks
-john

#5 lore raw

Hi John,

Quoted 52 lines · John Stultz
Quoted 3 lines · Minas Harutyunyan

Hi John,

Please provide log with debug enabled configuration.

Ok. Attached.
For dmesg-broken.log: OTG removed at 77, and OTG plugged in at 82 For dmesg-with-patch.log: OTG removed at 31, OTG plugged in at 38.

Note with the dmesg-with-patch (using my patch), things seem to be working ok. Though in the example above it may look odd, as usually it switches to to host mode, then when it detects a low speed device (a mouse which I had plugged in), it will reset to switch to low-speed, but I didn't wait long enough for the reset to complete and the mouse to be detected before re-plugging in the OTG port.

Quoted 5 lines · John Stultz
Quoted 4 lines
Quoted 2 lines · Minas Harutyunyan

Hi John,

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines · John Stultz
Quoted 5 lines

In 4.17-rc, commit 03ea6d6e9e1f ("usb: dwc2: Enable power down") caused the HiKey board to not correctly handle switching between usb-gadget and usb-host mode.

Unplugging the OTG port would result in:

OTG port you mean MicroAB, Correct?

Correct.

Quoted 1 line

dwc2 driver loaded when some device connected to OTG port?

Yes, I normally boot with the board plugged in to OTG as a peripheral/gadget for adb.

Quoted 4 lines

And below message printed after disconnect the device from OTG port?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
[   42.240973] dwc2 f72c0000.usb: dwc2_restore_host_registers: no host registers to restore
[   42.249066] dwc2 f72c0000.usb: dwc2_host_exit_hibernation: failed to restore host registers

Correct.

Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

And the USB-host ports would not function.

USB-host ports - you mean 2 USB A-ports, connected to TS3USB221 HUB?

Correct.

Quoted 2 lines

Switching ports between OTG and Host ports via TS3USB221 Switch performing automatically or by some SW tool?

Quoted 9 lines

Its done automatically, when the OTG cable is detected it the host ports are disabled and when the OTG port is empty the host ports are enabled.

Let me know if you need anything else!

thanks
-john

Please apply the patch set with this cover letter "[PATCH 0/3] usb:
dwc2: Fix hibernation for switching between host and device modes."

Enable the power down on his devices. Let me know if you still see any issue. If there is no issue, please provide Tested-by tag.

Regards,
Artur

#6 lore raw
Quoted 10 lines · Artur Petrosyan
Quoted 6 lines · John Stultz

Its done automatically, when the OTG cable is detected it the host ports are disabled and when the OTG port is empty the host ports are enabled.

Let me know if you need anything else!

Please apply the patch set with this cover letter "[PATCH 0/3] usb:
dwc2: Fix hibernation for switching between host and device modes."

Sorry, can you send the patches to me, or point me to a git tree? I'm not seeing that thread in my mailbox or on google.

Quoted 2 lines

Enable the power down on his devices. Let me know if you still see any issue. If there is no issue, please provide Tested-by tag.

Would be happy to test it, thought I'm traveling tomorrow, so I may not be able to validate till monday.

thanks
-john

#7 lore raw

Hi John,

Quoted 16 lines · John Stultz
Quoted 10 lines · Artur Petrosyan
Quoted 6 lines · John Stultz

Its done automatically, when the OTG cable is detected it the host ports are disabled and when the OTG port is empty the host ports are enabled.

Let me know if you need anything else!

Please apply the patch set with this cover letter "[PATCH 0/3] usb:
dwc2: Fix hibernation for switching between host and device modes."

Sorry, can you send the patches to me, or point me to a git tree? I'm not seeing that thread in my mailbox or on google.

Quoted 9 lines
Quoted 2 lines

Enable the power down on his devices. Let me know if you still see any issue. If there is no issue, please provide Tested-by tag.

Would be happy to test it, thought I'm traveling tomorrow, so I may not be able to validate till monday.

thanks
-john

You can find the patch set following to this link.

https://marc.info/?l=linux-usb&m=153745139408236&w=2

Regards,
Artur

author Tested-by
#8 lore raw
Quoted 25 lines · Artur Petrosyan

Hi John,

Quoted 22 lines · John Stultz
Quoted 10 lines · Artur Petrosyan
Quoted 6 lines · John Stultz

Its done automatically, when the OTG cable is detected it the host ports are disabled and when the OTG port is empty the host ports are enabled.

Let me know if you need anything else!

Please apply the patch set with this cover letter "[PATCH 0/3] usb:
dwc2: Fix hibernation for switching between host and device modes."

Sorry, can you send the patches to me, or point me to a git tree? I'm not seeing that thread in my mailbox or on google.

Quoted 2 lines

Enable the power down on his devices. Let me know if you still see any issue. If there is no issue, please provide Tested-by tag.

Would be happy to test it, thought I'm traveling tomorrow, so I may not be able to validate till monday.

Quoted 7 lines
Quoted 3 lines

thanks
-john

You can find the patch set following to this link.

https://marc.info/?l=linux-usb&m=153745139408236&w=2

I applied those three patches, and it seems to work ok.

Just to be clear, was there anything else I was needing to do while testing it?

Otherwise,

thanks
-john

#9 lore raw

Hi John,

Quoted 37 lines · John Stultz
Quoted 25 lines · Artur Petrosyan

Hi John,

Quoted 22 lines · John Stultz
Quoted 10 lines · Artur Petrosyan
Quoted 6 lines · John Stultz

Its done automatically, when the OTG cable is detected it the host ports are disabled and when the OTG port is empty the host ports are enabled.

Let me know if you need anything else!

Please apply the patch set with this cover letter "[PATCH 0/3] usb:
dwc2: Fix hibernation for switching between host and device modes."

Sorry, can you send the patches to me, or point me to a git tree? I'm not seeing that thread in my mailbox or on google.

Quoted 2 lines

Enable the power down on his devices. Let me know if you still see any issue. If there is no issue, please provide Tested-by tag.

Would be happy to test it, thought I'm traveling tomorrow, so I may not be able to validate till monday.

Quoted 7 lines
Quoted 3 lines

thanks
-john

You can find the patch set following to this link.

https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dlinux-2Dusb-26m-3D153745139408236-26w-3D2&d=DwIBaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=9hPBFKCJ_nBjJhGVrrlYOeOQjP_HlVzYqrC_D7niMJI&m=dfaz_WctFBdFgywM2g9w0XVhgOdAS4gIsj9o23RnyvY&s=_Nz3ephAop_nqrfcICii4OgMkV14Mi4yaKk8-qPqdis&e=

I applied those three patches, and it seems to work ok.

Quoted 8 lines

Just to be clear, was there anything else I was needing to do while testing it?

Otherwise,

thanks
-john

Just a clarification by this commit "[PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature"
https://marc.info/?l=linux-usb&m=152669095513248&w=2

the power_down is disabled setting "p->power_down = false;" in "dwc2_set_his_params" function.

Could you please clarify that the testes done for those 3 patches were done enabling "p->power_down = true;" in "dwc2_set_his_params" function.

Regards,
Artur

#10 lore raw
Quoted 9 lines · Artur Petrosyan

Just a clarification by this commit "[PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature"
https://marc.info/?l=linux-usb&m=152669095513248&w=2

the power_down is disabled setting "p->power_down = false;" in "dwc2_set_his_params" function.

Could you please clarify that the testes done for those 3 patches were done enabling "p->power_down = true;" in "dwc2_set_his_params" function.

So if I remove the "power_down = true" initialization, USB does not seem to function.

If I boot w/ the gadget port removed, the USB host ports do work, but plugging in the gadget cable results in a bunch of:
dwc2 f72c0000.usb: Waiting for Host Mode, Mode=Peripheral
messages.

If I boot w/ the gadget port plugged in, USB gadget mode doesn't seem to function at all, and when I remove the gadget cable nothing happens, it doesn't switch to host mode.

thanks
-john

#11 lore raw

Hi John,

Quoted 20 lines · John Stultz
Quoted 9 lines · Artur Petrosyan

Just a clarification by this commit "[PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature"
https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dlinux-2Dusb-26m-3D152669095513248-26w-3D2&d=DwIBaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=9hPBFKCJ_nBjJhGVrrlYOeOQjP_HlVzYqrC_D7niMJI&m=0lMkv7adFVwkzyaUzD6-pUG0iwg4fd6b1-aHQgbqvSI&s=m8SZvo3J_Za08sMbo-S9EkhoA06YnzEN-SRm-uTPnbg&e=

the power_down is disabled setting "p->power_down = false;" in "dwc2_set_his_params" function.

Could you please clarify that the testes done for those 3 patches were done enabling "p->power_down = true;" in "dwc2_set_his_params" function.

So if I remove the "power_down = true" initialization, USB does not seem to function.

If I boot w/ the gadget port removed, the USB host ports do work, but plugging in the gadget cable results in a bunch of:
dwc2 f72c0000.usb: Waiting for Host Mode, Mode=Peripheral
messages.

Quoted 7 lines

If I boot w/ the gadget port plugged in, USB gadget mode doesn't seem to function at all, and when I remove the gadget cable nothing happens, it doesn't switch to host mode.

thanks
-john

Could you please send the dmesg logs for those situations? Also, please specify the version of the kernel that the testes has been done on.

Regards,
Artur

A message that is not in the archive (sent off-list or not yet received): CALAqxLWOBFO_CjfBFNwbC+qNjtK=TgYrPusb4r5-dThBD5bVnw@mail.gmail.com

#13 lore raw

Hi John,

Quoted 43 lines · John Stultz
Quoted 3 lines · On Tue, Sep 25, 2018 at 11:02 PM, Artur Petrosyan…
Quoted 2 lines · John Stultz

On Tue, Sep 25, 2018 at 3:04 AM, Artur Petrosyan
<[email protected]

Quoted 3 lines · <mailto:[email protected]>> wrote:
Quoted 3 lines
Quoted 3 lines

Just a clarification by this commit "[PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature"

https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dlinux-2Dusb-26m-3D152669095513248-26w-3D2&d=DwIBaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=9hPBFKCJ_nBjJhGVrrlYOeOQjP_HlVzYqrC_D7niMJI&m=0lMkv7adFVwkzyaUzD6-pUG0iwg4fd6b1-aHQgbqvSI&s=m8SZvo3J_Za08sMbo-S9EkhoA06YnzEN-SRm-uTPnbg&e=

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

the power_down is disabled setting "p->power_down = false;" in "dwc2_set_his_params" function.

Could you please clarify that the testes done for those 3 patches were done enabling "p->power_down = true;" in "dwc2_set_his_params"

function.

Quoted 9 lines
Quoted 9 lines

So if I remove the "power_down = true" initialization, USB does not seem to function.

If I boot w/ the gadget port removed, the USB host ports do work, but plugging in the gadget cable results in a bunch of:
    dwc2 f72c0000.usb: Waiting for Host Mode, Mode=Peripheral messages.

Quoted 6 lines
Quoted 4 lines

If I boot w/ the gadget port plugged in, USB gadget mode doesn't seem to function at all, and when I remove the gadget cable nothing happens, it doesn't switch to host mode.

Could you please send the dmesg logs for those situations?

Attached with some annotations in the log.

Quoted 2 lines

Also, please specify the version of the kernel that the testes has been done on.

This was done utilizing my dev/hikey-mainline-WIP branch here:
https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=dev/hikey-mainline-WIP
<https://urldefense.proofpoint.com/v2/url?u=https-3A__git.linaro.org_people_john.stultz_android-2Ddev.git_log_-3Fh-3Ddev_hikey-2Dmainline-2DWIP&d=DwMFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=9hPBFKCJ_nBjJhGVrrlYOeOQjP_HlVzYqrC_D7niMJI&m=NziBHu0F0eefQE7CehTMAHF9RnbfSzfHeSOy5MUMv_o&s=MzQmTF47Ved3Qe2vhL66-hyxWyLUwcC5kK7BhZjxRvI&e=>

Quoted 8 lines

which is 4.19.0-rc5 based + your 3 patches + removing the "p->power_down = true" line.

Though the changes in my tree are mainly for getting Android up and running and not related to USB.

thanks
-john

Looking through the dmesg log you have provided, It seems that the debug is disabled.
Could you please provide log with debug enabled configuration. So that we can see more about the described problem.

Also, the register dump could be really helpful for us. Please provide it too.

Regards,
Artur

#14 lore raw
In reply to John Stultz

Hi John,

Quoted 20 lines · John Stultz
Quoted 9 lines · Artur Petrosyan

Just a clarification by this commit "[PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature"
https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dlinux-2Dusb-26m-3D152669095513248-26w-3D2&d=DwIBaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=9hPBFKCJ_nBjJhGVrrlYOeOQjP_HlVzYqrC_D7niMJI&m=0lMkv7adFVwkzyaUzD6-pUG0iwg4fd6b1-aHQgbqvSI&s=m8SZvo3J_Za08sMbo-S9EkhoA06YnzEN-SRm-uTPnbg&e=

the power_down is disabled setting "p->power_down = false;" in "dwc2_set_his_params" function.

Could you please clarify that the testes done for those 3 patches were done enabling "p->power_down = true;" in "dwc2_set_his_params" function.

So if I remove the "power_down = true" initialization, USB does not seem to function.

If I boot w/ the gadget port removed, the USB host ports do work, but plugging in the gadget cable results in a bunch of:
dwc2 f72c0000.usb: Waiting for Host Mode, Mode=Peripheral
messages.

Quoted 7 lines

If I boot w/ the gadget port plugged in, USB gadget mode doesn't seem to function at all, and when I remove the gadget cable nothing happens, it doesn't switch to host mode.

thanks
-john

We would like to buy the HiKey board to perform testes. We found this HiKey LeMaker to have USB 2.0 ports
https://www.ebay.com/itm/HiKey-LeMaker-version-2GB-Kirin-620-SoC-8-core-ARM-Cortex-A53-CPU-ARM-Mali-450/263958047308?hash=item3d75202a4c:g:aGsAAOSwOkxbqqot
on ebay.

Could you please confirm that it is the right board to test the issues you mention.

Regards,
Artur

#16 lore raw

Hi John,

Quoted 7 lines · John Stultz
Quoted 5 lines · Artur Petrosyan

We would like to buy the HiKey board to perform testes. We found this HiKey LeMaker to have USB 2.0 ports
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ebay.com_itm_HiKey-2DLeMaker-2Dversion-2D2GB-2DKirin-2D620-2DSoC-2D8-2Dcore-2DARM-2DCortex-2DA53-2DCPU-2DARM-2DMali-2D450_263958047308-3Fhash-3Ditem3d75202a4c-3Ag-3AaGsAAOSwOkxbqqot&d=DwIBaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=9hPBFKCJ_nBjJhGVrrlYOeOQjP_HlVzYqrC_D7niMJI&m=HfWIbiU-a2SLoi9FO8n-LdbihLldWvXHklN-XMe1_R4&s=pir0Pt3SPLgSuceSufYhNMmgjgUwQqB3-oXWz4oLbA0&e=
on ebay.

Quoted 8 lines
Quoted 2 lines

Could you please confirm that it is the right board to test the issues you mention.

Yep. That's the one.

thanks
-john

Thank you John.
So we will buy and receive the HiKey LeMaker as soon as possible to perform tests and fix the issues you got on the platform.

We are sorry for this issues you face. We will do our best to have those issues fixed and provide you the best performance.

Regards,
Artur