]> 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)
commit25e37c3cc2e09a6ab23a25ac8263d9b9db001b2b
tree20ce510a38387ce94cac242a06ca42ba3ea35b21
parente5613a43b84817df656195be65b05ef52f0772f0
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