mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Andy Yan" <andyshrk@163.com>
To: "Dragan Simic" <dsimic@manjaro.org>
Cc: linux-rockchip@lists.infradead.org,
	dri-devel@lists.freedesktop.org,  heiko@sntech.de,
	hjc@rock-chips.com, andy.yan@rock-chips.com,
	 maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	 tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch,
	 linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re:[PATCH] drm/rockchip: cdn-dp: Clean up a few logged messages
Date: Mon, 5 Aug 2024 15:40:43 +0800 (CST)	[thread overview]
Message-ID: <714e5664.6e68.191217bbf3a.Coremail.andyshrk@163.com> (raw)
In-Reply-To: <92db74a313547c087cc71059428698c4ec37a9ae.1720048818.git.dsimic@manjaro.org>


Hello Dragan,

At 2024-07-04 07:32:20, "Dragan Simic" <dsimic@manjaro.org> wrote:
>Clean up a few logged messages, which were previously worded as rather
>incomplete sentences separated by periods.  This was both a bit unreadable
>and grammatically incorrect, so convert them into partial sentences separated
>(or connected) by semicolons, together with some wording improvements.
>
>Signed-off-by: Dragan Simic <dsimic@manjaro.org>

 Reviewed-by: Andy Yan <andyshrk@163.com>


>---
> drivers/gpu/drm/rockchip/cdn-dp-core.c | 16 +++++++---------
> 1 file changed, 7 insertions(+), 9 deletions(-)
>
>diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c
>index bd7aa891b839..ee9def197095 100644
>--- a/drivers/gpu/drm/rockchip/cdn-dp-core.c
>+++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c
>@@ -969,46 +969,44 @@ static void cdn_dp_pd_event_work(struct work_struct *work)
> 
> 	/* Not connected, notify userspace to disable the block */
> 	if (!cdn_dp_connected_port(dp)) {
>-		DRM_DEV_INFO(dp->dev, "Not connected. Disabling cdn\n");
>+		DRM_DEV_INFO(dp->dev, "Not connected; disabling cdn\n");
> 		dp->connected = false;
> 
> 	/* Connected but not enabled, enable the block */
> 	} else if (!dp->active) {
>-		DRM_DEV_INFO(dp->dev, "Connected, not enabled. Enabling cdn\n");
>+		DRM_DEV_INFO(dp->dev, "Connected, not enabled; enabling cdn\n");
> 		ret = cdn_dp_enable(dp);
> 		if (ret) {
>-			DRM_DEV_ERROR(dp->dev, "Enable dp failed %d\n", ret);
>+			DRM_DEV_ERROR(dp->dev, "Enabling dp failed: %d\n", ret);
> 			dp->connected = false;
> 		}
> 
> 	/* Enabled and connected to a dongle without a sink, notify userspace */
> 	} else if (!cdn_dp_check_sink_connection(dp)) {
>-		DRM_DEV_INFO(dp->dev, "Connected without sink. Assert hpd\n");
>+		DRM_DEV_INFO(dp->dev, "Connected without sink; assert hpd\n");
> 		dp->connected = false;
> 
> 	/* Enabled and connected with a sink, re-train if requested */
> 	} else if (!cdn_dp_check_link_status(dp)) {
> 		unsigned int rate = dp->max_rate;
> 		unsigned int lanes = dp->max_lanes;
> 		struct drm_display_mode *mode = &dp->mode;
> 
>-		DRM_DEV_INFO(dp->dev, "Connected with sink. Re-train link\n");
>+		DRM_DEV_INFO(dp->dev, "Connected with sink; re-train link\n");
> 		ret = cdn_dp_train_link(dp);
> 		if (ret) {
> 			dp->connected = false;
>-			DRM_DEV_ERROR(dp->dev, "Train link failed %d\n", ret);
>+			DRM_DEV_ERROR(dp->dev, "Training link failed: %d\n", ret);
> 			goto out;
> 		}
> 
> 		/* If training result is changed, update the video config */
> 		if (mode->clock &&
> 		    (rate != dp->max_rate || lanes != dp->max_lanes)) {
> 			ret = cdn_dp_config_video(dp);
> 			if (ret) {
> 				dp->connected = false;
>-				DRM_DEV_ERROR(dp->dev,
>-					      "Failed to config video %d\n",
>-					      ret);
>+				DRM_DEV_ERROR(dp->dev, "Failed to configure video: %d\n", ret);
> 			}
> 		}
> 	}

  parent reply	other threads:[~2024-08-05  7:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-03 23:32 [PATCH] " Dragan Simic
2024-07-25  9:33 ` Dragan Simic
2024-08-02 17:08   ` Dragan Simic
2024-08-05  7:40 ` Andy Yan [this message]
2024-08-15 10:40 ` Heiko Stuebner

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=714e5664.6e68.191217bbf3a.Coremail.andyshrk@163.com \
    --to=andyshrk@163.com \
    --cc=airlied@gmail.com \
    --cc=andy.yan@rock-chips.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=dsimic@manjaro.org \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=tzimmermann@suse.de \
    /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

all inboxes | Powered by JetHome®