Re: [PATCH v3 1/2] PCI: dwc: Add .post_deinit counterpart to endpoint .pre_init callback

From: Manivannan Sadhasivam

Date: Tue Sep 01 2026 - 10:49:01 EST



On Fri, 21 Aug 2026 14:27:49 +0200, Marek Vasut wrote:
> If .pre_init() succeeds but subsequent initialization fails, it is
> mandatory to correctly undo the hardware configuration which the
> .pre_init() callback did. Intrododuce .post_deinit() callback to do
> exactly that, undo what the .pre_init() callback did. Usually, that
> means stop the clock, assert reset, and possibly program some registers
> to quiescense the hardware. Invoke the .post_deinit() callback in
> dw_pcie_ep_deinit() to retain functional symmetry.
>
> [...]

Applied, thanks!

[1/2] PCI: dwc: Add .post_deinit counterpart to endpoint .pre_init callback
commit: c73f79e49b030e2a64591f990629b925f0926ca9
[2/2] PCI: dwc: rcar-gen4: Use .post_deinit to handle dw_pcie_ep_init() failures
commit: d9113a8a6bdda348d590845da014ab0e01afe638

Best regards,
--
மணிவண்ணன் சதாசிவம்