BACKPORT: scsi: ufs-mediatek: Add inline encryption support
Add inline encryption support to ufs-mediatek. The standards-compliant parts, such as querying the crypto capabilities and enabling crypto for individual UFS requests, are already handled by ufshcd-crypto.c, which itself is wired into the blk-crypto framework. However MediaTek UFS host requires a vendor-specific hce_enable operation to allow crypto-related registers being accessed normally in kernel. After this step, MediaTek UFS host can work as standard-compliant host for inline-encryption related functions. Link: https://lore.kernel.org/r/20200712003226.7593-1-stanley.chu@mediatek.com Reviewed-by:Avri Altman <avri.altman@wdc.com> Signed-off-by:
Stanley Chu <stanley.chu@mediatek.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Bug: 166747994 [ Resolved minor conflict in drivers/scsi/ufs/ufs-mediatek.c ] (cherry picked from commit 46426552e74fd38e43aa95af17487d3cc285d71f) Change-Id: I47629ab3823e361e4cf778c08ffd1c6b1a1d6e06 Signed-off-by:
Stanley Chu <stanley.chu@mediatek.com>
Loading
Please register or sign in to comment