mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930
@ 2021-03-27  7:28 Yang Shen
  2021-03-27  7:28 ` [PATCH v2 1/4] crypto: hisilicon/zip - adjust functions location Yang Shen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Yang Shen @ 2021-03-27  7:28 UTC (permalink / raw)
  To: herbert, davem; +Cc: linux-kernel, linux-crypto, wangzhou1

In Kunpeng930, some field meanings in 'sqe' are changed, so driver need to
distinguish the type on different platform.

To avoid checking the platform everytime when driver fills the 'sqe', add a
struct 'hisi_zip_sqe_ops' to describe the 'sqe' operations. The driver only
need to choose the 'ops' once when call 'hisi_zip_acomp_init'.

v1 -> v2:
* fix a sparse warning

Yang Shen (4):
  crypto: hisilicon/zip - adjust functions location
  crypto: hisilicon/zip - add comments for 'hisi_zip_sqe'
  crypto: hisilicon/zip - initialize operations about 'sqe' in
    'acomp_alg.init'
  crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930

 drivers/crypto/hisilicon/zip/zip.h        |  46 +-
 drivers/crypto/hisilicon/zip/zip_crypto.c | 706 +++++++++++++++++-------------
 2 files changed, 438 insertions(+), 314 deletions(-)

--
2.8.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-02  9:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27  7:28 [PATCH v2 0/4] crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930 Yang Shen
2021-03-27  7:28 ` [PATCH v2 1/4] crypto: hisilicon/zip - adjust functions location Yang Shen
2021-03-27  7:28 ` [PATCH v2 2/4] crypto: hisilicon/zip - add comments for 'hisi_zip_sqe' Yang Shen
2021-03-27  7:28 ` [PATCH v2 3/4] crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init' Yang Shen
2021-03-27  7:28 ` [PATCH v2 4/4] crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930 Yang Shen
2021-04-02  9:48 ` [PATCH v2 0/4] " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®