Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6544562rwp; Tue, 18 Jul 2023 01:57:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlE3uh+88wAFQEX0waTK/UH3pFl6tCBoyn0FXjwoCbR6z0L53LNnYc/SzMstA5EvyuQ+YxXn X-Received: by 2002:a05:6358:c1e:b0:135:7c30:51a with SMTP id f30-20020a0563580c1e00b001357c30051amr4843008rwj.0.1689670632702; Tue, 18 Jul 2023 01:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689670632; cv=none; d=google.com; s=arc-20160816; b=PI2iUO/ySGAnknnecORL9u3B7B4SnwhRAK+D8hzT1MYRD/wyYOldewlxJulpDSmi6Z S//S3tXSvDN2jUjm0Ka94qs1xfxtxrYg/g16pHEL0RFBJ2gbdMkA3aMtuulJnaOUsh8W rDVqImC7S2QFeTgSUxtioTYw1+MOpJoJ7sAQkyFuLYt/UrwFQbzTtCRlPaApf8utqWcA XLzcPbj6IG6LWTm+S4UKLc3fiDXjMEGNPS/VkvD9mTLpUUo9JHZcln5j/G+ceJaOLrwV Za7GKPFAIzcNFEedtVQi6/Zyg5ZYMSngsj0B49scYSG+hhxyaH0j+toFKoUzG++B7LIO 8M6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0FAjjlFJMhYYhEn4cuk55R7hTz2rcMK9MMxmywNIilg=; fh=vSHT8sA+Z5SBrMKVzrY9Q66GlHciOrF74TFGC8ewhgY=; b=pIeC7++Ofkp/MTGc6MSfLA0snwtVDyG9EwK6I4Gr8OFUp+PPA16G7KExeZDhVeD6QT YKV0LBPYZXoHDNh4us3uSKiBCEtv2dOLFWrJij3kEX665NlMJmtTdTLRfJWjheJeWMnb T07WNotkJ/jzI0KqQWlJqKM4YtgAb/JbiEiV4TQta3y3GF4+DcdO9FbxwqGHjNmGBq0b HroG7GZNOsGXkAfiLxhoepbtaJM1cqRZaqo37gHWCB1jUquGtb0uKJI35FSjA7grZf93 fzb8BtCVvSXirtnev0DeSj1PY63mmJGaieeKnfgTQsgSX/KEDIQ2vlsbd9jGYG7Tr95b ut+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=us7q9Q7b; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q123-20020a632a81000000b0055ae20ada77si1175307pgq.591.2023.07.18.01.56.59; Tue, 18 Jul 2023 01:57:12 -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=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=us7q9Q7b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231562AbjGRIfV (ORCPT + 99 others); Tue, 18 Jul 2023 04:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjGRIfU (ORCPT ); Tue, 18 Jul 2023 04:35:20 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A617BE4F for ; Tue, 18 Jul 2023 01:35:17 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fa48b5dc2eso8869861e87.1 for ; Tue, 18 Jul 2023 01:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20221208.gappssmtp.com; s=20221208; t=1689669316; x=1692261316; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0FAjjlFJMhYYhEn4cuk55R7hTz2rcMK9MMxmywNIilg=; b=us7q9Q7bMQD6QiZGe7pAzDFn9TJxGirtRL8iZql96Zy6630wyGXPeHXYKmndc2adge defvKpa39g1PLfi/Qa87PSa5VjYDOFj1/sf26QrS6bvKBfVyEjHRgTEF931rQ633349i HiAd8ubJEEeXEHnxixYxEbTGGUv8HSMEOvrAMko7piHcGLxcHEXH3GSpxck8UYBgmYUG CaefSXyl9tInyUc97WnYFdQF+3/x+o1hg2DOlUXpSlz30iCHlxb1TqIGqDwnBEHEKvzk cKFQAZOnu1piVVjEyOAwFh076QZtXqZT152xYMsoV0M+e62CCOHazXpJp+ooaTT9P0wJ 9S4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689669316; x=1692261316; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0FAjjlFJMhYYhEn4cuk55R7hTz2rcMK9MMxmywNIilg=; b=NoeSqywbIhQjrrrkuuxTVVL0h/EvJ89KTOiekhWIc89O66XSmTendf/kJA2sgGqrIx /3Rd3vHFE7TDNa/7BetsRD0DNFi38YU0lQ03eGAPfc9pr0ue/G0B1kUjEUzZK/nocRq0 LCxtEB4SEeVom3/NhhCNrQSsQ3DowhsuyQBx43llcoPbLqnb5IqFp5vIC63QKKuVy6gV CJoXGB5w3yfBsbPJgM9onwW1twr1DH/FcU1/AgudJxAajZgHsRyuAP+87al41PHpzAgU /Jto7cXinnWhwobmJHMHki1Iinc6RgQPvcCBbUh2ZzNHhgCd8/qr+aZEogsIwzKbZwPY 3oRQ== X-Gm-Message-State: ABy/qLYYmJlORn480NLr/1OAdItLwk+iw0t/56hUK97+jUm1cvdrSI/w FI2HaI07+uYE4/43D9xOD8KCBG/G3Dpt8HsVXlIxiw== X-Received: by 2002:a2e:9891:0:b0:2b6:d6e1:a191 with SMTP id b17-20020a2e9891000000b002b6d6e1a191mr1205288ljj.23.1689669315761; Tue, 18 Jul 2023 01:35:15 -0700 (PDT) MIME-Version: 1.0 References: <20190716131005.761-1-bogdan.togorean@analog.com> <20230718062854.29875-1-alex@shruggie.ro> <1c3fde3a873b0f948d3c4d37107c5bb67dc9f7bb.camel@gmail.com> In-Reply-To: <1c3fde3a873b0f948d3c4d37107c5bb67dc9f7bb.camel@gmail.com> From: Alexandru Ardelean Date: Tue, 18 Jul 2023 11:35:04 +0300 Message-ID: Subject: Re: [PATCH V2] drm: adv7511: Fix low refresh rate register for ADV7533/5 To: =?UTF-8?B?TnVubyBTw6E=?= Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, architt@codeaurora.org, bogdan.togorean@analog.com, nuno.sa@analog.com, daniel@ffwll.ch, airlied@gmail.com, jonas@kwiboo.se, Laurent.pinchart@ideasonboard.com, rfoss@kernel.org, neil.armstrong@linaro.org, andrzej.hajda@intel.com, festevam@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,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 Tue, Jul 18, 2023 at 10:00=E2=80=AFAM Nuno S=C3=A1 wrote: > > On Tue, 2023-07-18 at 09:28 +0300, Alexandru Ardelean wrote: > > From: Bogdan Togorean > > > > For ADV7533 and ADV7535 low refresh rate is selected using > > bits [3:2] of 0x4a main register. > > So depending on ADV model write 0xfb or 0x4a register. > > > > Fixes: 2437e7cd88e8 ("drm/bridge: adv7533: Initial support for ADV7533"= ) > > Reviewed-by: Nuno Sa > > Signed-off-by: Bogdan Togorean > > --- > > > > It looks like you dropped your S-o-b tag in v2? I guess it was not on pur= pose :) oops; yes; will send a V3; thanks for the notification; > > - Nuno S=C3=A1 > > > Changelog v1 -> v2: > > * > > https://lore.kernel.org/dri-devel/20190716131005.761-1-bogdan.togorean@= analog.com/ > > * added Fixes: tag > > * added Reviewed-by: tag for Nuno > > > > drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 9 +++++++-- > > 1 file changed, 7 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c > > b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c > > index ddceafa7b637..09290a377957 100644 > > --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c > > +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c > > @@ -786,8 +786,13 @@ static void adv7511_mode_set(struct adv7511 *adv75= 11, > > else > > low_refresh_rate =3D ADV7511_LOW_REFRESH_RATE_NONE; > > > > - regmap_update_bits(adv7511->regmap, 0xfb, > > - 0x6, low_refresh_rate << 1); > > + if (adv7511->type =3D=3D ADV7511) > > + regmap_update_bits(adv7511->regmap, 0xfb, > > + 0x6, low_refresh_rate << 1); > > + else > > + regmap_update_bits(adv7511->regmap, 0x4a, > > + 0xc, low_refresh_rate << 2); > > + > > regmap_update_bits(adv7511->regmap, 0x17, > > 0x60, (vsync_polarity << 6) | (hsync_polarity << 5)); > > >