* [PATCH] drm/amd/display: Fix dc/dcn20/dcn20_optc.c kdoc
@ 2023-06-02 9:53 Srinivasan Shanmugam
2023-06-02 13:15 ` Harry Wentland
0 siblings, 1 reply; 2+ messages in thread
From: Srinivasan Shanmugam @ 2023-06-02 9:53 UTC (permalink / raw)
To: Aurabindo Pillai, Rodrigo Siqueira, Harry Wentland
Cc: Srinivasan Shanmugam, amd-gfx
Fix all kdoc warnings in dc/dcn20/dcn20_optc.c:
display/dc/dcn20/dcn20_optc.c:41: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Enable CRTC
display/dc/dcn20/dcn20_optc.c:76: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
*For the below, I'm not sure how your GSL parameters are stored in your
env,
display/dc/dcn20/dcn20_optc.c:85: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* There are (MAX_OPTC+1)/2 gsl groups available for use.
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
---
.../gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
index e0edc163d767..d6f095b4555d 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
@@ -38,8 +38,12 @@
optc1->tg_shift->field_name, optc1->tg_mask->field_name
/**
- * Enable CRTC
- * Enable CRTC - call ASIC Control Object to enable Timing generator.
+ * optc2_enable_crtc() - Enable CRTC - call ASIC Control Object to enable Timing generator.
+ *
+ * @optc: timing_generator instance.
+ *
+ * Return: If CRTC is enabled, return true.
+ *
*/
bool optc2_enable_crtc(struct timing_generator *optc)
{
@@ -73,15 +77,18 @@ bool optc2_enable_crtc(struct timing_generator *optc)
}
/**
- *For the below, I'm not sure how your GSL parameters are stored in your env,
- * so I will assume a gsl_params struct for now
+ * optc2_set_gsl() - Assign OTG to GSL groups,
+ * set one of the OTGs to be master & rest are slaves
+ *
+ * @optc: timing_generator instance.
+ * @params: pointer to gsl_params
*/
void optc2_set_gsl(struct timing_generator *optc,
const struct gsl_params *params)
{
struct optc *optc1 = DCN10TG_FROM_TG(optc);
-/**
+/*
* There are (MAX_OPTC+1)/2 gsl groups available for use.
* In each group (assign an OTG to a group by setting OTG_GSLX_EN = 1,
* set one of the OTGs to be the master (OTG_GSL_MASTER_EN = 1) and the rest are slaves.
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amd/display: Fix dc/dcn20/dcn20_optc.c kdoc
2023-06-02 9:53 [PATCH] drm/amd/display: Fix dc/dcn20/dcn20_optc.c kdoc Srinivasan Shanmugam
@ 2023-06-02 13:15 ` Harry Wentland
0 siblings, 0 replies; 2+ messages in thread
From: Harry Wentland @ 2023-06-02 13:15 UTC (permalink / raw)
To: Srinivasan Shanmugam, Aurabindo Pillai, Rodrigo Siqueira; +Cc: amd-gfx
On 6/2/23 05:53, Srinivasan Shanmugam wrote:
> Fix all kdoc warnings in dc/dcn20/dcn20_optc.c:
>
> display/dc/dcn20/dcn20_optc.c:41: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
> * Enable CRTC
> display/dc/dcn20/dcn20_optc.c:76: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
> *For the below, I'm not sure how your GSL parameters are stored in your
> env,
> display/dc/dcn20/dcn20_optc.c:85: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
> * There are (MAX_OPTC+1)/2 gsl groups available for use.
>
> Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
> Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
> Cc: Harry Wentland <harry.wentland@amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Harry
> ---
> .../gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 17 ++++++++++++-----
> 1 file changed, 12 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
> index e0edc163d767..d6f095b4555d 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
> @@ -38,8 +38,12 @@
> optc1->tg_shift->field_name, optc1->tg_mask->field_name
>
> /**
> - * Enable CRTC
> - * Enable CRTC - call ASIC Control Object to enable Timing generator.
> + * optc2_enable_crtc() - Enable CRTC - call ASIC Control Object to enable Timing generator.
> + *
> + * @optc: timing_generator instance.
> + *
> + * Return: If CRTC is enabled, return true.
> + *
> */
> bool optc2_enable_crtc(struct timing_generator *optc)
> {
> @@ -73,15 +77,18 @@ bool optc2_enable_crtc(struct timing_generator *optc)
> }
>
> /**
> - *For the below, I'm not sure how your GSL parameters are stored in your env,
> - * so I will assume a gsl_params struct for now
> + * optc2_set_gsl() - Assign OTG to GSL groups,
> + * set one of the OTGs to be master & rest are slaves
> + *
> + * @optc: timing_generator instance.
> + * @params: pointer to gsl_params
> */
> void optc2_set_gsl(struct timing_generator *optc,
> const struct gsl_params *params)
> {
> struct optc *optc1 = DCN10TG_FROM_TG(optc);
>
> -/**
> +/*
> * There are (MAX_OPTC+1)/2 gsl groups available for use.
> * In each group (assign an OTG to a group by setting OTG_GSLX_EN = 1,
> * set one of the OTGs to be the master (OTG_GSL_MASTER_EN = 1) and the rest are slaves.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-02 13:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-02 9:53 [PATCH] drm/amd/display: Fix dc/dcn20/dcn20_optc.c kdoc Srinivasan Shanmugam
2023-06-02 13:15 ` Harry Wentland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.