Re: [RFC PATCH 2/3] crypto: nx - don't abuse shash MAY_SLEEP flag

2019-04-14 Thread Michael Ellerman
Eric Biggers writes: > From: Eric Biggers > > 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)

[RFC PATCH 2/3] crypto: nx - don't abuse shash MAY_SLEEP flag

2019-04-14 Thread Eric Biggers
From: Eric Biggers 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