Linux cryptographic layer development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Depei Yang" <yangdepei@hygon.cn>, linux-crypto@vger.kernel.org
Cc: "Tom Lendacky" <thomas.lendacky@amd.com>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	"Gary R Hook" <gary.hook@amd.com>,
	"Shan Chen" <chenshan@hygon.cn>,
	"Yongwei Xu" <xuyongwei@hygon.cn>,
	"Xiaochen Shen" <shenxiaochen@hygon.cn>
Subject: Re: [PATCH 03/11] crypto: ccp - add engine capability and version information
Date: Wed, 25 Nov 2026 07:55:52 +0000	[thread overview]
Message-ID: <sashiko-outbox-232852@kernel.org> (raw)
In-Reply-To: <2512ecc20c8969a2d51403d8f184bf2f3260cc29.1795588986.git.yangdepei@hygon.cn>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] crypto: ccp - missing @cap kernel-doc description for
  ccp_has_cap() in ccp.h
--

commit a6f9105aa384767e740aed303e637b97511d7aa6
Author: Depei Yang <yangdepei@hygon.cn>

crypto: ccp - add engine capability and version information

This commit adds struct ccp_caps, a get_caps callback for CCP v3 and v5
devices, and a ccp_has_cap() helper to query engine capabilities.

> diff --git a/include/linux/ccp.h b/include/linux/ccp.h
> index e6c599243f116..06c3b14a1eb68 100644
> --- a/include/linux/ccp.h
> +++ b/include/linux/ccp.h
> @@ -11,6 +11,7 @@
>  #ifndef __CCP_H__
>  #define __CCP_H__
>  
> +#include <linux/bits.h>
>  #include <linux/scatterlist.h>
>  #include <linux/workqueue.h>
>  #include <linux/list.h>
> @@ -30,6 +31,13 @@ struct ccp_cmd;
>   */
>  int ccp_present(void);
>  
> +/**
> + * ccp_has_cap - check whether any CCP device provides a capability
> + *
> + * Returns: true if at least one registered CCP device provides it.
> + */
> +bool ccp_has_cap(unsigned int cap);

[Severity: Low]
This kernel-doc comment on ccp_has_cap() omits the @cap parameter
description (unlike the definition in drivers/crypto/ccp/ccp-dev.c), which
causes kernel-doc to emit a warning when parsing include/linux/ccp.h.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795588986.git.yangdepei@hygon.cn?part=3

  reply	other threads:[~2026-11-25  7:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  7:45 [PATCH 00/11] crypto: ccp - add Hygon SM3/SM4 support Depei Yang
2026-11-25  7:45 ` [PATCH 01/11] crypto: ccp - fix LSB region mask calculation Depei Yang
2026-11-25  7:46 ` [PATCH 02/11] crypto: ccp - acknowledge queue interrupt before waking waiter Depei Yang
2026-11-25  7:46 ` [PATCH 03/11] crypto: ccp - add engine capability and version information Depei Yang
2026-11-25  7:55   ` sashiko-bot [this message]
2026-11-25  7:46 ` [PATCH 04/11] crypto: ccp - register algorithms only for supported engines Depei Yang
2026-11-25  7:46 ` [PATCH 05/11] crypto: ccp - split v5 command submission from queue run Depei Yang
2026-11-25  7:46 ` [PATCH 06/11] crypto: ccp - add SM3/SM4 command definitions Depei Yang
2026-11-25  7:46 ` [PATCH 07/11] crypto: ccp - add Hygon CCP device IDs and vdata Depei Yang
2026-11-25  7:46 ` [PATCH 08/11] crypto: ccp - handle only supported interrupts in v5 irq bh Depei Yang
2026-11-25  7:46 ` [PATCH 09/11] crypto: ccp - detect the Hygon CCP engines from the version register Depei Yang
2026-11-25  7:46 ` [PATCH 10/11] crypto: ccp - add SM4 engine and skcipher algorithms Depei Yang
2026-11-25  8:11   ` sashiko-bot
2026-11-25  7:46 ` [PATCH 11/11] crypto: ccp - add SM3 engine and ahash algorithms Depei Yang
2026-11-25  8:10   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-232852@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=chenshan@hygon.cn \
    --cc=davem@davemloft.net \
    --cc=gary.hook@amd.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shenxiaochen@hygon.cn \
    --cc=thomas.lendacky@amd.com \
    --cc=xuyongwei@hygon.cn \
    --cc=yangdepei@hygon.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox