diff options
author | Eric Biggers <ebiggers@google.com> | 2019-04-15 02:37:08 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-25 09:38:12 +0200 |
commit | 75f2222832e0fecba7a45ca6ac07ea895ea1e046 (patch) | |
tree | c510c4f57ee5f8b761b7d315088702dbb5677871 /drivers/spi/spi-dln2.c | |
parent | crypto: shash - remove useless crypto_yield() in shash_ahash_digest() (diff) | |
download | linux-75f2222832e0fecba7a45ca6ac07ea895ea1e046.tar.xz linux-75f2222832e0fecba7a45ca6ac07ea895ea1e046.zip |
crypto: nx - don't abuse shash MAY_SLEEP flag
The nx driver uses the MAY_SLEEP flag in shash_desc::flags as an
indicator to not retry sending the operation to the hardware as many
times before returning -EBUSY. This is bogus because (1) that's not
what the MAY_SLEEP flag is for, and (2) the shash API doesn't allow
failing if the hardware is busy anyway.
For now, just make it always retry the larger number of times. This
doesn't actually fix this driver, but it at least makes it not use the
shash_desc::flags field anymore. Then this field can be removed, as no
other drivers use it.
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/spi/spi-dln2.c')
0 files changed, 0 insertions, 0 deletions