raw/cnxk_gpio: stop device once tests are complete

Message ID 20220225145546.1660321-1-tduszynski@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series raw/cnxk_gpio: stop device once tests are complete |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/github-robot: build success github build: passed
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS

Commit Message

Tomasz Duszynski Feb. 25, 2022, 2:55 p.m. UTC
  Started device should eventually be stopped.

Fixes: 0e6557b448fa ("raw/cnxk_gpio: add self test")

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
---
 drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Thomas Monjalon Feb. 27, 2022, 4:10 p.m. UTC | #1
25/02/2022 15:55, Tomasz Duszynski:
> Started device should eventually be stopped.
> 
> Fixes: 0e6557b448fa ("raw/cnxk_gpio: add self test")
> 
> Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
> Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>

Applied, thanks.
  

Patch

diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c b/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
index acb65afa65..10742b5dc4 100644
--- a/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
+++ b/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
@@ -390,6 +390,7 @@  cnxk_gpio_selftest(uint16_t dev_id)
 
 out:
 	close(fd);
+	rte_rawdev_stop(dev_id);
 
 	return ret;
 }