linux/drivers/crypto/hisilicon/sec
Rosen Penev 83418a2c5b crypto: hisilicon/sec - use devm_platform_ioremap_resource in sec_map_io
Replace the open-coded platform_get_resource() plus devm_ioremap()
sequence in the SEC_NUM_ADDR_REGIONS loop with
devm_platform_ioremap_resource(), which fetches the resource, requests
the region and maps it in one call. Switch the error check to
IS_ERR()/PTR_ERR() and drop the now-unused struct resource pointer.

The driver only maps indices 0 and 1 (SEC_COMMON, SEC_SAA). On hip07 the
corresponding reg regions (0xd0000000, 0xd2000000) are 0x10000 each and
disjoint, so the region reservation added by devm_ioremap_resource() is
exclusive and does not introduce overlap failures.

Built for arm64 (drivers/crypto/hisilicon/sec/sec_drv.o) with LLVM=1.

Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2026-07-27 10:29:26 +10:00
..
Makefile
sec_algs.c crypto: hisilicon - Fix dma_unmap_single() direction 2026-04-12 16:46:29 +08:00
sec_drv.c crypto: hisilicon/sec - use devm_platform_ioremap_resource in sec_map_io 2026-07-27 10:29:26 +10:00
sec_drv.h crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-07-08 15:21:16 +08:00