summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-coh901.h
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@bootlin.com>2019-05-27 16:51:06 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-06-06 08:38:56 +0200
commit89332590427235680236b9470e851afc49b3caa1 (patch)
tree1f7d239277189d280c10a00f984cd98172fb2fda /drivers/pinctrl/pinctrl-coh901.h
parentcrypto: inside-secure - fix use of the SG list (diff)
downloadlinux-89332590427235680236b9470e851afc49b3caa1.tar.xz
linux-89332590427235680236b9470e851afc49b3caa1.zip
crypto: inside-secure - do not rely on the hardware last bit for result descriptors
When performing a transformation the hardware is given result descriptors to save the result data. Those result descriptors are batched using a 'first' and a 'last' bit. There are cases were more descriptors than needed are given to the engine, leading to the engine only using some of them, and not setting the last bit on the last descriptor we gave. This causes issues were the driver and the hardware aren't in sync anymore about the number of result descriptors given (as the driver do not give a pool of descriptor to use for any transformation, but a pool of descriptors to use *per* transformation). This patch fixes it by attaching the number of given result descriptors to the requests, and by using this number instead of the 'last' bit found on the descriptors to process them. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/pinctrl/pinctrl-coh901.h')
0 files changed, 0 insertions, 0 deletions