Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4092373imw; Tue, 12 Jul 2022 01:23:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKapTNah7r0OazNDlBXFeUeRp2nKEoAUbhubhkk1q2XoMEUnHGDjNIC0WPBV8pnTvCdDc7 X-Received: by 2002:a05:6402:5205:b0:43a:b520:c7de with SMTP id s5-20020a056402520500b0043ab520c7demr26198291edd.22.1657614181783; Tue, 12 Jul 2022 01:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657614181; cv=none; d=google.com; s=arc-20160816; b=OCdXLpU1qsO0Zl44EJQfc2j4zqLXljWR2cIDaINABNZshPJ1Xwun8n9p7Dvvs+3WRW 3suaTllmLpNbrQBRU0cuZMNGhkWfegsAPY/bUljl12TFh+iIXRTnwSHuitK6WaBhOjq5 kuw5OBlSy6nByYo5bB2W35NK6AxOsgoIzxTwFj/Ceg+aXaBik3H+L6FWEsxK9umVihoV NK9s0/xdJnd4Q0wrcz6S4PLVWk1JLBl4gEi34v+dke16R8flmebRI//eYsaiTGUr+/gd +tdWprhAEWQjpZqNowzbMbSP2qDExWhXxhqQn1vCW4GbUykchMNJ+1haebOmlDcdxhDK jNYQ== 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=owNGXTG6trvHPmdErnbDiIfwqp/UAMQF528p+GbC9XU=; b=fQh2J2phQSdd4s4loFLL3K2nI9ltxdVD0JNIO02fPgm5OnQXLPCACgtoL99AGJbNTP jowH0dp2peIt+oiLEBR5w2mlNhvXmPIfhXUG+2c5zDnYxQbAsBb0NV9LvlTSCCoOQiwY 3ThlbUid27gqqb3B0kgwMyLW8GdVRAaal4HIg+t2IM+43nZtxXHWB4oWBORhsMqYpE9h x89ZK+EmOn4pcjYr5P2xOjgPZkOeCTrnpHYUqRTAGwW92Kee/LmpkUAsU5fDzGDcMt8o c17Z9PEJ5EciCCWAhlkQV6o5Fu1q6KnCiIAjL6BKrqsaYCzs575dUvL0meWVpgPcEjeN fD4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U+hnbQfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a170906974300b00726b8cf8debsi579280ejy.869.2022.07.12.01.22.37; Tue, 12 Jul 2022 01:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U+hnbQfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232460AbiGLIML (ORCPT + 99 others); Tue, 12 Jul 2022 04:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231814AbiGLIMJ (ORCPT ); Tue, 12 Jul 2022 04:12:09 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DBF152E6A for ; Tue, 12 Jul 2022 01:12:07 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id e15so9104377edj.2 for ; Tue, 12 Jul 2022 01:12:07 -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=owNGXTG6trvHPmdErnbDiIfwqp/UAMQF528p+GbC9XU=; b=U+hnbQfWIDaw1K825D2TgYJS1lfVHB59AiGRORo//U6OpdXRqxyLW5Rw95DiruSuZo 6bZKjdQHk8ceVGjQt0KM+0ZfqGLo6lst+Vw8g1pLKiPasESmqAhwd2AoH2aXSamOV4HE vtTYYXDydZGgphpwzJ3WsRSx/lOopLf8s39CTdFdIZBk2WTZ9Iq+25m7/n8a3+qls8fx OTc6pk57nEQmyB96mD00jWPq06fIv61cUfWVlCUHqUEOEbcxn7unugdeShPeVCf0h8h9 +FuLetynE0KBn67nmMw60xEY0iW9bHd08AZhMXff39fLnk+4y4vv++8RRFvNR8D3C5Nc yTTg== 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=owNGXTG6trvHPmdErnbDiIfwqp/UAMQF528p+GbC9XU=; b=f5aMHC62+HZOHU95e+Xs1qTddQ1RMkbMZOLvHNt4tb9kapNXN01zZmehDpQn61iMTr jS6nP4FJEyHEq0SH2eOF1gcmQ/Ub9EHfNba26oZfjj2vRLt1yW02N1p2JhLfn32/HMpj ivrdrxRzSe0V8gCzFa75SDmpRL3UTNzZl1dUqpne7q46cWu5KcthDqbEZk5s/Q5EvbGV Al91IojIjHttFzwpmZRgntixYkh35p7NMsapnxdCHMV2o9o67UuzYbdpk6ykx4siqTCg 7tdCyQ3TT3pUTthVIPOekLkF0v0axoQRcgdxhxWtvcH357v5gA7V/5EbJgn0mXOmqW+f S8GA== X-Gm-Message-State: AJIora9xbCHdG75MiQgBNTEQeTzhty+NvsCUoJaVfL1lHROg+91CZ+eS QnSCpDiHwAmwe7bH2R4JxCZ2PsqKGK4zfGMCZtmsDg== X-Received: by 2002:aa7:cdc2:0:b0:43a:7255:5274 with SMTP id h2-20020aa7cdc2000000b0043a72555274mr30566286edw.159.1657613525708; Tue, 12 Jul 2022 01:12:05 -0700 (PDT) MIME-Version: 1.0 References: <20220707080600.49041-1-allen.chen@ite.com.tw> <20220707080600.49041-4-allen.chen@ite.com.tw> In-Reply-To: <20220707080600.49041-4-allen.chen@ite.com.tw> From: Robert Foss Date: Tue, 12 Jul 2022 10:11:54 +0200 Message-ID: Subject: Re: [PATCH 3/3] drm/bridge: it6505: Modified video clock calculation and video debug message To: allen Cc: Pin-yen Lin , Jau-Chih Tseng , Kenneth Hung , Hermes Wu , Pin-Yen Lin , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , "open list:DRM DRIVERS" , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Jul 2022 at 10:06, allen wrote: > > From: allen chen > > Speed up video clock calculation and remove redundant video debug message. > > Signed-off-by: Pin-Yen Lin > Signed-off-by: Allen Chen > > --- > drivers/gpu/drm/bridge/ite-it6505.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c > index cfd2c3275dc5..11a34ddb60a1 100644 > --- a/drivers/gpu/drm/bridge/ite-it6505.c > +++ b/drivers/gpu/drm/bridge/ite-it6505.c > @@ -703,7 +703,7 @@ static void it6505_calc_video_info(struct it6505 *it6505) > DRM_DEV_DEBUG_DRIVER(dev, "hactive_start:%d, vactive_start:%d", > hdes, vdes); > > - for (i = 0; i < 10; i++) { > + for (i = 0; i < 3; i++) { > it6505_set_bits(it6505, REG_DATA_CTRL0, ENABLE_PCLK_COUNTER, > ENABLE_PCLK_COUNTER); > usleep_range(10000, 15000); > @@ -720,7 +720,7 @@ static void it6505_calc_video_info(struct it6505 *it6505) > return; > } > > - sum /= 10; > + sum /= 3; > pclk = 13500 * 2048 / sum; > it6505->video_info.clock = pclk; > it6505->video_info.hdisplay = hdew; > @@ -2344,8 +2344,6 @@ static void it6505_irq_hpd(struct it6505 *it6505) > > if (!it6505_get_video_status(it6505)) > it6505_video_reset(it6505); > - > - it6505_calc_video_info(it6505); > } else { > memset(it6505->dpcd, 0, sizeof(it6505->dpcd)); > > -- > 2.25.1 > Reviewed-by: Robert Foss