crypto: mediatek - only treat EBUSY as transient if backlog
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 28 Aug 2019 06:37:14 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Sep 2019 04:36:54 +0000 (14:36 +1000)
commitf271ea9fe1de6455a6855ef320c6946a7f7bf6e7
tree1bc570391653e5e5b837bc80ddad43c548ca902d
parente049ff5af04b18bfb4105787be198d58c841fc99
crypto: mediatek - only treat EBUSY as transient if backlog

The driver was treating -EBUSY as indication of queueing to backlog
without checking that backlog is enabled for the request.

Fix it by checking request flags.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Vic Wu <vic.wu@mediatek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mediatek/mtk-sha.c