Skip to content

i3c: renesas: Suspend to RAM with power loss and runtime PM

Claudiu Beznea linux-i3c lkml sashiko-reviews stable 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest16 patches 5 repliesIn review
  2. v317 patches 2 repliesSuperseded
  3. v217 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v117 patches25 repliesSuperseded

Changes in v4 from the cover letter

- dropped patch "i3c: renesas: Do not attach devices if xfer failed"
- fixed the swap in renesas_i3c_group_devs_in_slots() for i3c->addr[] renesas_i3c_irqs_mask_and_clear();
- in patch 16/16 renamed renesas_i3c_abort_xfer() from v3 to

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16i3c: renesas: Check that the transfer is valid before accessing itdrivers/i3c/master/renesas-i3c.c+45 -51 reply
2/16i3c: renesas: Restore STDBR and EXTBR registers on resumedrivers/i3c/master/renesas-i3c.c+6 -40 replies
3/16i3c: renesas: Follow the reset deassert order used in probedrivers/i3c/master/renesas-i3c.c+6 -60 replies
4/16i3c: renesas: Reconfigure the DATBAS register on re-attachdrivers/i3c/master/renesas-i3c.c+16 -00 replies
5/16i3c: renesas: Reset the controller on resumedrivers/i3c/master/renesas-i3c.c+8 -20 replies
6/16i3c: renesas: Perform Dynamic Address Assignment on resumedrivers/i3c/master/renesas-i3c.c+166 -431 reply
7/16i3c: renesas: Clean DATBAS register on detachdrivers/i3c/master/renesas-i3c.c+2 -01 reply
8/16i3c: renesas: Use reset_control_bulk_{assert, deassert}()drivers/i3c/master/renesas-i3c.c+13 -170 replies
9/16i3c: renesas: Return immediately if there is no transferdrivers/i3c/master/renesas-i3c.c+3 -30 replies
10/16i3c: renesas: Follow a unified pattern for transfer and command initializationdrivers/i3c/master/renesas-i3c.c+11 -110 replies
11/16i3c: renesas: Drop the explicit memset() calldrivers/i3c/master/renesas-i3c.c+0 -10 replies
12/16i3c: renesas: Update HW registers after SW computations are donedrivers/i3c/master/renesas-i3c.c+14 -140 replies
13/16i3c: renesas: Organize structures to avoid unnecessary paddingdrivers/i3c/master/renesas-i3c.c+16 -160 replies
14/16i3c: renesas: Use the "dev_name:irq_name" format for the interrupt namedrivers/i3c/master/renesas-i3c.c+8 -10 replies
15/16i3c: renesas: Drop unnecessary tabdrivers/i3c/master/renesas-i3c.c+1 -10 replies
16/16i3c: renesas: Add runtime PM supportdrivers/i3c/master/renesas-i3c.c+122 -281 reply

Reviews trailers per patch

11 of 16 patches have a Reviewed-by or Acked-by.

PatchFrank Li
1/16
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16
7/16R-b
8/16
9/16
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16

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

Read the v4 thread

Cover letter [PATCH v4 00/16] i3c: renesas: Suspend to RAM with power loss and runtime PM

From: Claudiu Beznea <[email protected]>

Hi,

This series adjusts the suspend to RAM code to handle cases where power to the connected devices is lost during suspend to RAM. The fixes included in this series are required for that support.

Along with suspend to RAM support, runtime PM support is also added. Cleanup patches were included to prepare for clean runtime PM support.

Please note that series need to be applied on top of [1] since patch "i3c: renesas: Perform Dynamic Address Assignment on resume" uses i3c_master_reattach_i3c_dev_locked().

Thank you,
Claudiu

Changes in v4:
- dropped patch "i3c: renesas: Do not attach devices if xfer failed"
- fixed the swap in renesas_i3c_group_devs_in_slots() for i3c->addr[] renesas_i3c_irqs_mask_and_clear();
- in patch 16/16 renamed renesas_i3c_abort_xfer() from v3 to

Changes in v3:
- re-based on top of series [1] to be able to use i3c_master_reattach_i3c_dev_locked()
- used i3c_master_reattach_i3c_dev_locked() on patch
"i3c: renesas: Perform Dynamic Address Assignment on resume" along with grouping the I2C and I3C devices in the driver slot
- collected tags

Changes in v2:
- dropped patch "i3c: renesas: Use the divider 128"
- adjusted the patches title and description where requested in the review process
- adjusted the DAA procedure after resume to still properly re-configure the controller in case the bus was full before a suspend
- added patch "i3c: renesas: Do not attach devices if xfer failed"
- collected tags

[1] https://lore.kernel.org/linux-i3c/[email protected]/T/#m74ddb24e1e3a8006d933bd6106cc0c4508a11d2c

Claudiu Beznea (16):
i3c: renesas: Check that the transfer is valid before accessing it
i3c: renesas: Restore STDBR and EXTBR registers on resume
i3c: renesas: Follow the reset deassert order used in probe
i3c: renesas: Reconfigure the DATBAS register on re-attach
i3c: renesas: Reset the controller on resume
i3c: renesas: Perform Dynamic Address Assignment on resume
i3c: renesas: Clean DATBAS register on detach
i3c: renesas: Use reset_control_bulk_{assert, deassert}()
i3c: renesas: Return immediately if there is no transfer
i3c: renesas: Follow a unified pattern for transfer and command
initialization
i3c: renesas: Drop the explicit memset() call
i3c: renesas: Update HW registers after SW computations are done
i3c: renesas: Organize structures to avoid unnecessary padding
i3c: renesas: Use the "dev_name:irq_name" format for the interrupt
name
i3c: renesas: Drop unnecessary tab
i3c: renesas: Add runtime PM support

 drivers/i3c/master/renesas-i3c.c | 541 +++++++++++++++++++++++--------
 1 file changed, 413 insertions(+), 128 deletions(-)
Signature · 1 line
2.43.0