]> git.droids-corp.org - dpdk.git/commit
dma/idxd: fix error code for PCI device commands
authorKevin Laatz <kevin.laatz@intel.com>
Fri, 8 Apr 2022 14:16:55 +0000 (15:16 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 8 Jun 2022 08:54:02 +0000 (10:54 +0200)
commitf217dbff20603b51a51e226be77593ea06122ab5
tree5b28dcebf11f1a57b7f2745651ced00ddd3a1111
parentaaee1d15cbb224a1c526c0707eabfb1cb22ba824
dma/idxd: fix error code for PCI device commands

When sending a command to an idxd device via PCI BAR, the response from
HW is checked to ensure it was successful. The response was incorrectly
being negated before being returned by the function, meaning error codes
cannot be checked against the HW specification.

This patch fixes the return values of the function by removing the
negation.

Fixes: 9449330a8458 ("dma/idxd: create dmadev instances on PCI probe")
Fixes: 452c1916b0db ("dma/idxd: fix truncated error code in status check")
Cc: stable@dpdk.org
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
drivers/dma/idxd/idxd_pci.c