]> git.baikalelectronics.ru Git - kernel.git/commit
soc/qman: Fix h/w resource cleanup error path handling
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Wed, 16 Nov 2016 14:40:16 +0000 (16:40 +0200)
committerScott Wood <oss@buserror.net>
Wed, 23 Nov 2016 07:23:40 +0000 (01:23 -0600)
commitfd201b6a6bde740a4e30ab8caa4db71661f451bd
tree20ce510a38387ce94cac242a06ca42ba3ea35b21
parent642cbef5079d48b7e5152fa7920a57760842cbdb
soc/qman: Fix h/w resource cleanup error path handling

qman_query_fq*() may return other error codes apart from
-ERANGE, in which cases the error handling done by the
resource cleanup callers would be wrong.  The patch
fixes the handling of those cases, and cleans up related
code inside the resource cleanup & release handlers (i.e.
replace hardcoded fqid value with corresponding define).

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qbman/qman.c