bus/fslmc: fix dpio close
authorRohit Raj <rohit.raj@nxp.com>
Tue, 28 Jul 2020 16:24:59 +0000 (21:54 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Oct 2020 08:58:15 +0000 (10:58 +0200)
commitba156cdf70f20ec5321592fe4595ab8f9ae343ec
tree6b36b1bfc4d926caaaceb976d2310f545447c070
parent6ee0c53fdac0b839bd149b5fa19fdddc6d6ecf00
bus/fslmc: fix dpio close

The current state of the DPIO object should be checked
before trying to close/disable the object.

Fixes: 293c0ca94c36 ("bus/fslmc: support memory backed portals with QBMAN 5.0")
Cc: stable@dpdk.org
Signed-off-by: Rohit Raj <rohit.raj@nxp.com>
Acked-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c