]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: endpoint: test: Synchronously cancel command handler work
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 17 Oct 2024 01:06:48 +0000 (10:06 +0900)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 4 Nov 2024 21:30:00 +0000 (21:30 +0000)
commit97110d42680e692020154f9aa89298c038196055
tree6dafaf12b48961bdcff76f0c3cd27ae89ef294f4
parente73ea1c2d4d8f7ba5daaf7aa51171f63cf79bcd8
PCI: endpoint: test: Synchronously cancel command handler work

Use cancel_delayed_work_sync() in pci_epf_test_epc_deinit() to ensure
that the command handler is really stopped before proceeding with DMA
and BAR cleanup.

The same change is also done in pci_epf_test_link_down() to ensure that
the link down handling completes with the command handler fully stopped.

Link: https://lore.kernel.org/r/20241017010648.189889-1-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
drivers/pci/endpoint/functions/pci-epf-test.c