crypto: msm: multiple qce50 support
In some platforms such as fsm9900, multiple instances of qce50 hw may be supported. Each qce50 HW has an ndp-bam. Each qce50 HW can support multiple instances of qce_dev platform device. Each qce_dev has its own configured pipe set and associated qce50 HW, defined by crypto-base and bam-pipe-pair fields in the device tree files. This patch based on io address, it decides to create a new qce50 hw instance or use the existing known instance at device probe time. Furthermore, this patch does iomap for only once for each HW BAM instance to avoid issue with bam driver. If modprobe, and rmmod of qcedev, and qcrypto are not in first in last out order, kernel may crash in bam driver in the last rmmod. This saves virtual space for IO if multiple instances of qcedev share the same instance of HW BAM. Change-Id: I1565b1976981b0512832ff793e0adb29c4be3ccc Acked-by:Chemin Hsieh <cheminh@qti.qualcomm.com> Signed-off-by:
Rohit Vaswani <rvaswani@codeaurora.org>
Loading
Please register or sign in to comment