[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2b33000067d54d9e83d5a81ef102d2a9@EXMBX168.cuchost.com>
Date: Mon, 10 Apr 2023 13:35:44 +0000
From: JiaJie Ho <jiajie.ho@...rfivetech.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
CC: "David S . Miller" <davem@...emloft.net>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Palmer Dabbelt <palmer@...belt.com>,
Emil Renner Berthing <kernel@...il.dk>,
Conor Dooley <conor.dooley@...rochip.com>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>
Subject: RE: [PATCH v4 4/4] crypto: starfive - Add hash and HMAC support
> > The sequence of event would be:
> > 1. Wait for DMA transfer to complete.
> > 2. Set bit in device CSR to indicate final block has been transferred.
>
> OK, 2 should be done in the DMA callback function.
>
> > 3. Device will send IRQ once result is ready.
> > 4. Read out final digest value from device.
>
> 4 should be done from a tasklet scheduled from the IRQ handler.
>
I'll update the driver accordingly.
Thanks again for the advice.
Regards,
Jia Jie
Powered by blists - more mailing lists