From mboxrd@z Thu Jan 1 00:00:00 1970 From: t-kristo@ti.com (Tero Kristo) Date: Thu, 1 Sep 2016 10:46:43 +0300 Subject: [PATCHv3 03/11] crypto: omap-sham: implement context export/import APIs In-Reply-To: <20160901073113.GA2232@gondor.apana.org.au> References: <1470306526-27219-1-git-send-email-t-kristo@ti.com> <1470306526-27219-4-git-send-email-t-kristo@ti.com> <20160809100633.GA6751@gondor.apana.org.au> <20160901033320.GA650@gondor.apana.org.au> <60a5ed40-5552-3ec8-fa21-7e6fb8213fc3@ti.com> <20160901061630.GB650@gondor.apana.org.au> <70468d4d-9f26-1bad-ace1-4b7c5cf43b52@ti.com> <20160901071958.GA2076@gondor.apana.org.au> <4c45de7f-002c-48b5-c950-f445354adb09@ti.com> <20160901073113.GA2232@gondor.apana.org.au> Message-ID: <9af173f7-cc94-a92f-80ee-c746d97ab110@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 01/09/16 10:31, Herbert Xu wrote: > On Thu, Sep 01, 2016 at 10:28:47AM +0300, Tero Kristo wrote: >> >> Yeah, the flush should do the trick now. Kind of a chicken-egg >> problem here. :P How do you see the situation with the above >> explanation? > > The export function is not allowed to sleep so you must not wait > for the hardware to complete in it. > > If you need to wait, then you must use the completion mechanism. I don't think export is allowed to return -EINPROGRESS either? At least currently the kernel pieces using this functionality won't work if I do that. If thats the case, I need to think of something else to handle this... -Tero