Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1847338pxb; Mon, 20 Sep 2021 06:44:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE+FCBi/PEB8zaImz/k7owVis0TqrM9eKXgK1cxqMlvt/VTvd3DYTLplTKS8yXmHxPU2Fu X-Received: by 2002:a02:2402:: with SMTP id f2mr19319940jaa.28.1632145445650; Mon, 20 Sep 2021 06:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632145445; cv=none; d=google.com; s=arc-20160816; b=xTIK/DaScXGsQt5xT6ucURYvsWHpfHHnKOWgF/mejwN0iy7SDiTQZvLMV0Kg4YRSgJ 0zSI+V6iWPtpc73mosQCN3dTOY/GIkWehXvmJ9yGjiiX53ZMRAzujMaJ0DGu03ItSQln RcIpz01WQ1vXm3v9t32jPgo7yzCloeymPTudiHPOc49e6PEZi/Up1ydc2Rsve0R5GIZu 2PVWy8ohseL3BMQ0Yt2sdBsKh6L/gfsor304Y6+EqzZPVyuGlGiaXCB5TMKc4ItobMqW a0g3UTUksH+yMFHfNtmy7dqA7i7l5GnoshujiTyhJzFulqw/RfWh1832/2p59m2s4PDy hE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lP4lLyZsFEqWiwhyXMr4Opdw5/67jPTt6YJ5qHZtMJc=; b=zuT2Ihehg3YxVEsdAR5/P7hQvnNdgXYphrSjee8hHoN7L1dsQRqI85ejmBaGN2hpwI JswZhRLngU4ZqrA8n0JYHfs/5bAhELXlZNc2izaMftdVd/EqzY6AJWGVUuQhLd+Mg2xx OUuxiyDFjQU/n/QdahrFOHVbpy/hpBDafooSkYX8aSfMJA2cIqSqyju4aUe9JmIvEdEp s+DrdY6gfL3sD0LgcDKkJQmkq1czk81SihY8oL3o6vRaenGwxwwBSOjzN23Gh2WflVNM ThPwpVLRUJ30CoO2AMNeAHvoF7pNdLUy7JdoyA2ITU8VeLaNEcuXZoCkWzdWguqILZDq Nc7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUWR1YeZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si12570744jaa.83.2021.09.20.06.43.48; Mon, 20 Sep 2021 06:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUWR1YeZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236212AbhITJtc (ORCPT + 99 others); Mon, 20 Sep 2021 05:49:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbhITJtb (ORCPT ); Mon, 20 Sep 2021 05:49:31 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD34BC061574 for ; Mon, 20 Sep 2021 02:48:04 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id e7so16742338pgk.2 for ; Mon, 20 Sep 2021 02:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lP4lLyZsFEqWiwhyXMr4Opdw5/67jPTt6YJ5qHZtMJc=; b=fUWR1YeZCHBdf8WtcFiuDXW1UEOcO/z5GdAQKZefe5vPNlOUyRCInBmb64Yv94OFNq UIAcV472D0ALte6gWvbvcXdILE5WjurM27eLZGWV9VPheDaaQ7HXsyscibpQZ5u/0qRM il7QTUh8Vw+KRFYiEkRlKzWi67OyAsPLeamH+kwvLh/vUMPU1IPzaZj4DCI1nw5ZCKRF 05fWoQE90MqwnFi1XCjGOeqmsRB4A1hhaOgEq9V5ebiXOnycTP9OEyd+AHAZSRV024F6 MQ4j4FTxk0AZHdSuKcmpf2+qfkLmWGgYJRtzl68g0ocIyvr2p0yKGfpznaHA4W5AvLaB 4qpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lP4lLyZsFEqWiwhyXMr4Opdw5/67jPTt6YJ5qHZtMJc=; b=MI+OFuHPJlOXtMcMSrfCJLAgldbqtWbxCge4xCAIQdg8cFOoSa8YSQkMakk9WjupHF P7P92TOMYY3YYqzSr2aWx6AoTSInq6dd5u9WN8G6MErsWOD63ucmDFY+fAclisNMXfW1 27WAkCGd1NsXjVjBn4hs/CZB1jGcCGFJWmGN0TSHCFO5MiO5Eb825yNeXg8VSowcg4pC a0aQHOQIBp7btoHQFkvjJQnXJnwINbgeZG/8fl5mCrI+s7RDP8AQYpXpPZDnI1w7vl3r X6TjmN6AUm0SO3Fnx9Jeq7cKLoZ4keoden8s3YWc4O7Y+jpAzYrqczTa62gGzFRKLp2A mMcg== X-Gm-Message-State: AOAM53290lJkv3gY2+dSeJQH9fyWaQrUNzQLWz8t94lP9jyeggcTH1fW lRNnYEA+srTilfiWnFHPVBnnmi3Gb+0alTwfQo0cjg== X-Received: by 2002:a63:391:: with SMTP id 139mr22691394pgd.410.1632131284170; Mon, 20 Sep 2021 02:48:04 -0700 (PDT) MIME-Version: 1.0 References: <20210918035041.25512-1-liyunlonga@uniontech.com> In-Reply-To: <20210918035041.25512-1-liyunlonga@uniontech.com> From: Robert Foss Date: Mon, 20 Sep 2021 11:47:53 +0200 Message-ID: Subject: Re: [PATCH] drm: bridge: it66121: Added it66121 chip external screen status judgment. To: Yunlongli Cc: Phong LE , Neil Armstrong , Andrzej Hajda , David Airlie , Daniel Vetter , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Yunlongli, Thanks for submitting this fix. On Sat, 18 Sept 2021 at 05:51, Yunlongli wrote: The formatting of this commit message is a bit unusual, let's try to change it to the normal formatting. Remove the dot from the commit title: "drm: bridge: it66121: Added it66121 chip external screen status judgment." -> "drm: bridge: it66121: Added it66121 chip external screen status judgment" > > fix: Add further confirm if external screens are involved. The "fix:" tag is not needed. However if this commit fixes a bug introduced in an earlier commit a machine readable tag like the the one below could be added after the commit message. Fixes: 988156dc2fc9 ("drm: bridge: add it66121 driver") > > log: In the actual tests, the IT66121 chip sometimes misjudged whether > it had an external screen, so, reference the it66121_user_guid.pdf > about Audio/Video data is stable or not A typical initialization > of HDMI link should be based on interrupt signal and appropriate > register probing. Recommended flow is detailed in IT66121 > Programming Guide. Simply put, the microcontroller should monitor > the HPD status first. Upon valid HPD event, move on to check > RxSENDetect register to see if the receiver chip is ready for > further handshaking. When RxSENDetect is asserted, start reading EDID > data through DDC channels and carry on the rest of the handshaking > subsequently.If the micro-controller makes no use of the interrupt > signal as well as the above-mentioned status registers, the link > establishment might fail. Please do follow the suggested > initialization flow recommended in IT66121 Programming Guide. > So, I add the IT66121_SYS_STATUS_SENDECTECT register status detection. > The "log:" prefix is not needed, and neither is the indentation of the text. Secondly maybe it would be nice to format the above chunk of text into paragraphs just to make it easier to read. > Signed-off-by: Yunlongli > --- > drivers/gpu/drm/bridge/ite-it66121.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c > index 2f2a09adb4bc..9ed4fa298d11 100644 > --- a/drivers/gpu/drm/bridge/ite-it66121.c > +++ b/drivers/gpu/drm/bridge/ite-it66121.c > @@ -523,7 +523,7 @@ static bool it66121_is_hpd_detect(struct it66121_ctx *ctx) > if (regmap_read(ctx->regmap, IT66121_SYS_STATUS_REG, &val)) > return false; > > - return val & IT66121_SYS_STATUS_HPDETECT; > + return ((val & IT66121_SYS_STATUS_HPDETECT) && (val & IT66121_SYS_STATUS_SENDECTECT)); > } > > static int it66121_bridge_attach(struct drm_bridge *bridge, > -- > 2.20.1 > > > With the above suggestions fixed, feel free to add my r-b and submit a v2 of this patch. Reviewed-by: Robert Foss