]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ce - use sg_nents_for_len
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:27 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:20 +0000 (17:24 +0800)
commit02a0142eb4c40dee1a9eeeb0849a0ad366c23058
tree34aa86c81a4aae5ee2e730aeb923a47e6ede5b7a
parentd421f4bdae8e203d81d4c762cf54a25aec9786ae
crypto: sun8i-ce - use sg_nents_for_len

When testing with some large SG list, the sun8i-ce drivers always
fallback even if it can handle it.
So use sg_nents_for_len() which permits to see less SGs than needed.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c