1. 22 Apr, 2021 10 commits
    • Wan Jiabing's avatar
      crypto: ux500/cryp - Remove duplicate argument · 01fec8c3
      Wan Jiabing authored
      Fix the following coccicheck warning:
      
      ./drivers/crypto/ux500/cryp/cryp_p.h:84:6-27:duplicated argument to |
      Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      01fec8c3
    • Jiapeng Chong's avatar
      crypto: chelsio - remove unused function · 25c2850e
      Jiapeng Chong authored
      Fix the following clang warning:
      
      drivers/crypto/chelsio/chcr_algo.c:129:19: warning: unused function
      'is_ofld_imm' [-Wunused-function].
      Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
      Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      25c2850e
    • Peter Ujfalusi's avatar
      crypto: sa2ul - Add support for AM64 · 0bc42311
      Peter Ujfalusi authored
      The sa2ul module in am64 have limited support for algorithms, and the
      priv and priv_id used on the platform is different compared to AM654 or
      j721e.
      
      Use match data to get the SoC specific information and use it throughout
      the driver.
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: default avatarVaibhav Gupta <v_gupta@ti.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      0bc42311
    • Peter Ujfalusi's avatar
      crypto: sa2ul - Support for per channel coherency · e8a4529d
      Peter Ujfalusi authored
      On AM64 the DMA channel for sa2ul can be configured to be coherent or
      non coherent via DT binding.
      
      Use the dmaengine_get_device_for_dma_api() to get the device pointer which
      should be used for with the dma_api to use matching dma_ops for the
      channel coherency/non coherency.
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: default avatarVaibhav Gupta <v_gupta@ti.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      e8a4529d
    • Peter Ujfalusi's avatar
      dt-bindings: crypto: ti,sa2ul: Add new compatible for AM64 · 6535cbc4
      Peter Ujfalusi authored
      Add the AM64 version of sa2ul to the compatible list.
      
      [v_gupta@ti.com: Conditional dma-coherent requirement, clocks]
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: default avatarVaibhav Gupta <v_gupta@ti.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      6535cbc4
    • Weili Qian's avatar
      crypto: hisilicon - enable new error types for QM · c4aab244
      Weili Qian authored
      QM adds 'qm_mailbox_timeout' and 'qm_flr_timeout' hardware error types on
      Kunpeng930. This patch enables the new error types and configures the error
      types as NFE.
      Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c4aab244
    • Weili Qian's avatar
      crypto: hisilicon - add new error type for SEC · 10594d1e
      Weili Qian authored
      Kunpeng930 SEC adds several new hardware error types. This patch enables
      the new error types and configures the error types as NFE.
      Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      10594d1e
    • Weili Qian's avatar
      crypto: hisilicon - support new error types for ZIP · b7220a74
      Weili Qian authored
      Kunpeng930 ZIP adds 'zip_axi_poison_err' 'zip_sva_err' and
      'QM_ACC_DO_TASK_TIMEOUT' hardware error types. This patch enables the error
      types and configures the error types as NFE.
      Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      b7220a74
    • Weili Qian's avatar
      crypto: hisilicon - dynamic configuration 'err_info' · d9e21600
      Weili Qian authored
      'err_info' does not support dynamic configuration since it is const type.
      Therefore, in order to support new error type later, 'err_info' is changed
      to dynamic configuration.
      Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      d9e21600
    • Randy Dunlap's avatar
      crypto: doc - fix kernel-doc notation in chacha.c and af_alg.c · b2a4411a
      Randy Dunlap authored
      Fix function name in chacha.c kernel-doc comment to remove a warning.
      
      Convert af_alg.c to kernel-doc notation to eliminate many kernel-doc
      warnings.
      
      ../lib/crypto/chacha.c:77: warning: expecting prototype for chacha_block(). Prototype was for chacha_block_generic() instead
      chacha.c:104: warning: Excess function parameter 'out' description in 'hchacha_block_generic'
      
      af_alg.c:498: warning: Function parameter or member 'sk' not described in 'af_alg_alloc_tsgl'
      ../crypto/af_alg.c:539: warning: expecting prototype for aead_count_tsgl(). Prototype was for af_alg_count_tsgl() instead
      ../crypto/af_alg.c:596: warning: expecting prototype for aead_pull_tsgl(). Prototype was for af_alg_pull_tsgl() instead
      af_alg.c:663: warning: Function parameter or member 'areq' not described in 'af_alg_free_areq_sgls'
      af_alg.c:700: warning: Function parameter or member 'sk' not described in 'af_alg_wait_for_wmem'
      af_alg.c:700: warning: Function parameter or member 'flags' not described in 'af_alg_wait_for_wmem'
      af_alg.c:731: warning: Function parameter or member 'sk' not described in 'af_alg_wmem_wakeup'
      af_alg.c:757: warning: Function parameter or member 'sk' not described in 'af_alg_wait_for_data'
      af_alg.c:757: warning: Function parameter or member 'flags' not described in 'af_alg_wait_for_data'
      af_alg.c:757: warning: Function parameter or member 'min' not described in 'af_alg_wait_for_data'
      af_alg.c:796: warning: Function parameter or member 'sk' not described in 'af_alg_data_wakeup'
      af_alg.c:832: warning: Function parameter or member 'sock' not described in 'af_alg_sendmsg'
      af_alg.c:832: warning: Function parameter or member 'msg' not described in 'af_alg_sendmsg'
      af_alg.c:832: warning: Function parameter or member 'size' not described in 'af_alg_sendmsg'
      af_alg.c:832: warning: Function parameter or member 'ivsize' not described in 'af_alg_sendmsg'
      af_alg.c:985: warning: Function parameter or member 'sock' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'page' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'offset' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'size' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'flags' not described in 'af_alg_sendpage'
      af_alg.c:1040: warning: Function parameter or member 'areq' not described in 'af_alg_free_resources'
      af_alg.c:1059: warning: Function parameter or member '_req' not described in 'af_alg_async_cb'
      af_alg.c:1059: warning: Function parameter or member 'err' not described in 'af_alg_async_cb'
      af_alg.c:1083: warning: Function parameter or member 'file' not described in 'af_alg_poll'
      af_alg.c:1083: warning: Function parameter or member 'sock' not described in 'af_alg_poll'
      af_alg.c:1083: warning: Function parameter or member 'wait' not described in 'af_alg_poll'
      af_alg.c:1114: warning: Function parameter or member 'sk' not described in 'af_alg_alloc_areq'
      af_alg.c:1114: warning: Function parameter or member 'areqlen' not described in 'af_alg_alloc_areq'
      af_alg.c:1146: warning: Function parameter or member 'sk' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'msg' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'flags' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'areq' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'maxsize' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'outlen' not described in 'af_alg_get_rsgl'
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: linux-crypto@vger.kernel.org
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      b2a4411a
  2. 16 Apr, 2021 30 commits