Re: [PATCH v13 13/15] cxl: Restore CXL state after PCI reset

From: Srirangan Madhavan

Date: Thu Oct 01 2026 - 19:59:16 EST


On 9/23/26 8:50 PM, Jonathan Cameron wrote:
Signed-off-by: Srirangan Madhavan<smadhavan@xxxxxxxxxx>
Hi Srirangan,

I'm out of time for today so main request it to take a look at that
final function. It is running quite a complex statemachine with a bunch
of ownership transfers. That's the sort of single function that takes
too much energy to review. Please have a revisit and see if there
is a simpler stepwise way to do that.
Hi Jonathan!

I've reworked this in v14 patch 14. Reset execution and state restoration are separate steps, and cxl_reset_execute() retains ownership of the snapshot and range context through cleanup. The cross-function cleanup handoffs and goto state machine are gone now.
Please let me know if this is better now.

Thank you.

--
Regards,
Srirangan