Re: [RFC 2/5] [crypto] geode: relax in busy loop and care about return value

2007-10-22 Thread Sebastian Siewior
* Herbert Xu | 2007-10-21 16:14:52 [+0800]: >I'd like to see the error propagated up though. We'd need >to change the simple cipher interface to allow errors to be >returned. okey. >Cheers, Sebastian - To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a messa

Re: [RFC 2/5] [crypto] geode: relax in busy loop and care about return value

2007-10-21 Thread Herbert Xu
On Fri, Oct 19, 2007 at 12:03:50PM +0200, Sebastian Siewior wrote: > From: Sebastian Siewior <[EMAIL PROTECTED]> > > The code waits in a busy loop until the hardware finishes the encryption > or decryption process. This wants a cpu_relax() :) > The busy loop finishes either if the encryption is do

[RFC 2/5] [crypto] geode: relax in busy loop and care about return value

2007-10-19 Thread Sebastian Siewior
From: Sebastian Siewior <[EMAIL PROTECTED]> The code waits in a busy loop until the hardware finishes the encryption or decryption process. This wants a cpu_relax() :) The busy loop finishes either if the encryption is done or if the counter is zero. If the latter is true than the hardware failed.