Skip to content

usb: dwc2: Fix Partial Power down issues.

Artur Petrosyan linux-usb lkml stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 8 repliesIn review
  2. v21 of 14 patches 3 repliesSuperseded
  3. v11 of 14 patches 2 repliesSuperseded

Changes in v3 from the cover letter

No changes in the patches or the source code.
Assuming that the issue due to which the patches are not reaching to vger.kernel.org is a comma in the end of To: or Cc: lists removed commas in the end of those lists in each email of patches.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14usb: dwc2: Add device partial power down functionsdrivers/usb/dwc2/core.h drivers/usb/dwc2/gadget.c+138 -00 replies
2/14usb: dwc2: Add host partial power down functionsdrivers/usb/dwc2/core.h drivers/usb/dwc2/hcd.c+168 -00 replies
3/14usb: dwc2: Update enter and exit partial power down functionsdrivers/usb/dwc2/core.c drivers/usb/dwc2/core.h drivers/usb/dwc2/core_intr.c +3 more+45 -1150 replies
4/14usb: dwc2: Add partial power down exit flow in wakeup intr.drivers/usb/dwc2/core_intr.c+8 -90 replies
5/14usb: dwc2: Update port suspend/resume function definitions.drivers/usb/dwc2/core.h drivers/usb/dwc2/hcd.c+23 -61 reply
6/14usb: dwc2: Add enter partial power down when port is suspendeddrivers/usb/dwc2/core.h drivers/usb/dwc2/hcd.c+34 -191 reply
7/14usb: dwc2: Add exit partial power down when port is resumeddrivers/usb/dwc2/core.h drivers/usb/dwc2/hcd.c+42 -241 reply
8/14usb: dwc2: Add exit partial power down when port reset is asserteddrivers/usb/dwc2/hcd.c+9 -01 reply
9/14usb: dwc2: Add part. power down exit from dwc2_conn_id_status_change().drivers/usb/dwc2/hcd.c+9 -00 replies
10/14usb: dwc2: Allow exit partial power down in urb enqueuedrivers/usb/dwc2/hcd.c+7 -01 reply
11/14usb: dwc2: Fix session request interrupt handlerdrivers/usb/dwc2/core_intr.c+8 -00 replies
12/14usb: dwc2: Update partial power down entering by system suspenddrivers/usb/dwc2/hcd.c+18 -351 reply
13/14usb: dwc2: Fix partial power down exiting by system resumedrivers/usb/dwc2/hcd.c+46 -441 reply
14/14usb: dwc2: Add exit partial power down before removing driverdrivers/usb/dwc2/platform.c+10 -11 reply

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchMinas Harutyunyan
1/14A-b
2/14A-b
3/14A-b
4/14A-b
5/14A-b
6/14A-b
7/14A-b
8/14A-b
9/14A-b
10/14A-b
11/14A-b
12/14A-b
13/14A-b
14/14A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/14] usb: dwc2: Fix Partial Power down issues.

This patch set fixes and improves the Partial Power Down mode for dwc2 core.
It adds support for the following cases
1. Entering and exiting partial power down when a port is suspended, resumed, port reset is asserted.
2. Exiting the partial power down mode before removing driver.
3. Exiting partial power down in wakeup detected interrupt handler.
4. Exiting from partial power down mode when connector ID. status changes to "connId B

It updates and fixes the implementation of dwc2 entering and exiting partial power down mode when the system (PC) is suspended.

The patch set also improves the implementation of function handlers for entering and exiting host or device partial power down.

NOTE: This is the second patch set in the power saving mode fixes series.
This patch set is part of multiple series and is continuation of the "usb: dwc2: Fix and improve power saving modes" patch set. (Patch set link: https://marc.info/?l=linux-usb&m=160379622403975&w=2).
The patches that were included in the "usb: dwc2:
Fix and improve power saving modes" which was submitted earlier was too large and needed to be split up into
smaller patch sets.

Changes since V2:
No changes in the patches or the source code.
Assuming that the issue due to which the patches are not reaching to vger.kernel.org is a comma in the end of To: or Cc: lists removed commas in the end of those lists in each email of patches.

Artur Petrosyan (14):
usb: dwc2: Add device partial power down functions
usb: dwc2: Add host partial power down functions
usb: dwc2: Update enter and exit partial power down functions
usb: dwc2: Add partial power down exit flow in wakeup intr.
usb: dwc2: Update port suspend/resume function definitions.
usb: dwc2: Add enter partial power down when port is suspended
usb: dwc2: Add exit partial power down when port is resumed
usb: dwc2: Add exit partial power down when port reset is asserted
usb: dwc2: Add part. power down exit from

    dwc2_conn_id_status_change().

usb: dwc2: Allow exit partial power down in urb enqueue
usb: dwc2: Fix session request interrupt handler
usb: dwc2: Update partial power down entering by system suspend
usb: dwc2: Fix partial power down exiting by system resume
usb: dwc2: Add exit partial power down before removing driver

 drivers/usb/dwc2/core.c      | 113 ++-------
 drivers/usb/dwc2/core.h      |  27 ++-
 drivers/usb/dwc2/core_intr.c |  46 ++--
 drivers/usb/dwc2/gadget.c    | 148 ++++++++++-
 drivers/usb/dwc2/hcd.c       | 458 +++++++++++++++++++++++++----------
 drivers/usb/dwc2/hw.h        |   1 +
 drivers/usb/dwc2/platform.c  |  11 +-
 7 files changed, 558 insertions(+), 246 deletions(-)

base-commit: e9fcb07704fcef6fa6d0333fd2b3a62442eaf45b

Signature · 1 line
2.25.1