dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Sharma, Shashank" <shashank.sharma@intel.com>
To: seanpaul@chromium.org
Cc: Daniel Vetter <daniel.vetter@intel.com>,
	dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: FW: [PATCH v2 2/4] drm: Fix warning when building docs for scdc_helper
Date: Mon, 24 Jul 2017 21:06:53 +0530	[thread overview]
Message-ID: <ad121596-2706-d672-d184-cc7aa12db0b2@intel.com> (raw)
In-Reply-To: <FF3DDC77922A8A4BB08A3BC48A1EA8CB8D8F6A24@BGSMSX101.gar.corp.intel.com>

Thanks for adding this fix , Sean, and sorry about missing this 
alignment in doc.

Regards
Shashank
On 7/24/2017 9:01 PM, Sharma, Shashank wrote:
>
> -----Original Message-----
> From: dri-devel [mailto:dri-devel-bounces@lists.freedesktop.org] On Behalf Of Sean Paul
> Sent: Friday, July 21, 2017 1:39 AM
> To: dri-devel@lists.freedesktop.org; daniel@ffwll.ch
> Cc: Vetter, Daniel <daniel.vetter@intel.com>
> Subject: [PATCH v2 2/4] drm: Fix warning when building docs for scdc_helper
>
> Fixes:
> ../drivers/gpu/drm/drm_scdc_helper.c:203: ERROR: Unexpected indentation.
> ../drivers/gpu/drm/drm_scdc_helper.c:204: WARNING: Block quote ends without a blank line; unexpected unindent.
>
> Changes in v2:
>   - Property blockquote TMDS calculations so they look pretty (Daniel)
>   - Remove duplicate documentation from the header file
>
> Signed-off-by: Sean Paul <seanpaul@chromium.org>
> ---
>   drivers/gpu/drm/drm_scdc_helper.c | 33 ++++++++++++++++++++-------------
>   include/drm/drm_scdc_helper.h     | 25 -------------------------
>   2 files changed, 20 insertions(+), 38 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_scdc_helper.c b/drivers/gpu/drm/drm_scdc_helper.c
> index 3cd96a95736d..7d1b0f011d33 100644
> --- a/drivers/gpu/drm/drm_scdc_helper.c
> +++ b/drivers/gpu/drm/drm_scdc_helper.c
> @@ -194,19 +194,26 @@ EXPORT_SYMBOL(drm_scdc_set_scrambling);
>    * @adapter: I2C adapter for DDC channel
>    * @set: ret or reset the high clock ratio
>    *
> - * TMDS clock ratio calculations go like this:
> - * TMDS character = 10 bit TMDS encoded value
> - * TMDS character rate = The rate at which TMDS characters are transmitted(Mcsc)
> - * TMDS bit rate = 10x TMDS character rate
> - * As per the spec:
> - * TMDS clock rate for pixel clock < 340 MHz = 1x the character rate
> - *	= 1/10 pixel clock rate
> - * TMDS clock rate for pixel clock > 340 MHz = 0.25x the character rate
> - *	= 1/40 pixel clock rate
> - *
> - * Writes to the TMDS config register over SCDC channel, and:
> - * sets TMDS clock ratio to 1/40 when set = 1
> - * sets TMDS clock ratio to 1/10 when set = 0
> + *
> + *	TMDS clock ratio calculations go like this:
> + *		TMDS character = 10 bit TMDS encoded value
> + *
> + *		TMDS character rate = The rate at which TMDS characters are
> + *		transmitted (Mcsc)
> + *
> + *		TMDS bit rate = 10x TMDS character rate
> + *
> + *	As per the spec:
> + *		TMDS clock rate for pixel clock < 340 MHz = 1x the character
> + *		rate = 1/10 pixel clock rate
> + *
> + *		TMDS clock rate for pixel clock > 340 MHz = 0.25x the character
> + *		rate = 1/40 pixel clock rate
> + *
> + *	Writes to the TMDS config register over SCDC channel, and:
> + *		sets TMDS clock ratio to 1/40 when set = 1
> + *
> + *		sets TMDS clock ratio to 1/10 when set = 0
>    *
>    * Returns:
>    * True if write is successful, false otherwise.
> diff --git a/include/drm/drm_scdc_helper.h b/include/drm/drm_scdc_helper.h index c25122bb490a..f92eb2094d6b 100644
> --- a/include/drm/drm_scdc_helper.h
> +++ b/include/drm/drm_scdc_helper.h
> @@ -131,31 +131,6 @@ static inline int drm_scdc_writeb(struct i2c_adapter *adapter, u8 offset,
>   
>   bool drm_scdc_get_scrambling_status(struct i2c_adapter *adapter);
>   
> -/**
> - * drm_scdc_set_scrambling - enable scrambling
> - * @adapter: I2C adapter for DDC channel
> - * @enable: bool to indicate if scrambling is to be enabled/disabled
> - *
> - * Writes the TMDS config register over SCDC channel, and:
> - * enables scrambling when enable = 1
> - * disables scrambling when enable = 0
> - *
> - * Returns:
> - * True if scrambling is set/reset successfully, false otherwise.
> - */
>   bool drm_scdc_set_scrambling(struct i2c_adapter *adapter, bool enable);
> -
> -/**
> - * drm_scdc_set_high_tmds_clock_ratio - set TMDS clock ratio
> - * @adapter: I2C adapter for DDC channel
> - * @set: ret or reset the high clock ratio
> - *
> - * Writes to the TMDS config register over SCDC channel, and:
> - * sets TMDS clock ratio to 1/40 when set = 1
> - * sets TMDS clock ratio to 1/10 when set = 0
> - *
> - * Returns:
> - * True if write is successful, false otherwise.
> - */
>   bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set);  #endif
> --
> 2.14.0.rc0.284.gd933b75aa4-goog

Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>

> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2017-07-24 15:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20 17:47 [PATCH 0/4] drm: Fix some warnings when building docs Sean Paul
2017-07-20 17:47 ` [PATCH 1/4] drm/modes: Fix drm_mode_is_420_only() comment Sean Paul
2017-07-20 18:41   ` Daniel Vetter
2017-07-24 15:44   ` Sharma, Shashank
2017-07-20 17:47 ` [PATCH 2/4] drm: Fix warning when building docs for scdc_helper Sean Paul
2017-07-20 18:42   ` Daniel Vetter
2017-07-20 20:09     ` [PATCH v2 " Sean Paul
     [not found]       ` <FF3DDC77922A8A4BB08A3BC48A1EA8CB8D8F6A24@BGSMSX101.gar.corp.intel.com>
2017-07-24 15:36         ` Sharma, Shashank [this message]
     [not found] ` <20170720174746.29100-1-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2017-07-20 17:47   ` [PATCH 3/4] gpu/host1x: Remove excess parameter in host1x_subdev_add docs Sean Paul
2017-07-20 17:47 ` [PATCH 4/4] drm: Add a few missing descriptions in drm_driver docs Sean Paul
2017-07-20 18:44   ` Daniel Vetter
2017-07-31 12:33 ` [PATCH 0/4] drm: Fix some warnings when building docs Thierry Reding

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=ad121596-2706-d672-d184-cc7aa12db0b2@intel.com \
    --to=shashank.sharma@intel.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=seanpaul@chromium.org \
    /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