crypto: sun8i-ss - use sg_nents_for_len
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:18 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:18 +0000 (17:24 +0800)
commit4d867bebdc3afa97e00f9b64a21a3c51ce7feecf
tree5e183bde9a8639489d750c223c8a4c4c9106cfc7
parentd86e3f37a6d05d4946788904b8968eb6287601ae
crypto: sun8i-ss - use sg_nents_for_len

When testing with some large SG list, the sun8i-ss 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-ss/sun8i-ss-cipher.c