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)
commit6b8309faf0ca17c819d3c9a1a262467f9dc3bd58
tree34aa86c81a4aae5ee2e730aeb923a47e6ede5b7a
parent8a1714ad1a33f7dcdebabd67cbe7af423ddefe2b
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