Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1215781rwb; Thu, 22 Sep 2022 11:41:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BThVka/X8LzEshiRKLz6pGDTCWvDp3qwaBPuZoqw8Ny67GgdT5JJ8ExCLEQxYXMyWCMkV X-Received: by 2002:aa7:cdd2:0:b0:44e:be4d:3231 with SMTP id h18-20020aa7cdd2000000b0044ebe4d3231mr4890563edw.296.1663872119389; Thu, 22 Sep 2022 11:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663872119; cv=none; d=google.com; s=arc-20160816; b=a5SOZSQJ6AvSCCkbNWWVwPoMlQ7QU+V/7afxcs6Ogg8W52TZMattXsveYn6WUpbDml COsxQybc6tUNHMIwvRYa1dW4irMmZirCbiH532Pjg9pQZyk1UNIai1zj6uFLw2rhPgGN gis6dT7YRcOND0ONeQfqCswDuwkmvbrvp2w18saNqZx8bqFT9rcg2f63DsQ7G3N/HoON rfMGz+mpKhNjeFBen27wVLhV/L+ixAh+AkArB4aczLNAmM3Zdj4J+ZvlZL5Xhxh1cgtp 42IPm/MQ7rmBFld7jIRtndSG5kxXeLvOmcLggkP7wXVSVUwiUPScUH8qhYXtE4vCngmm S0Aw== 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=x/KOEzvs5/HZ3ITyDMwqUGxQmeTcr0AR1wyo8XABotg=; b=HqM3rhalUmjzB5j4o0+D+yYRWM160Tvnkf9TiA1LRXKE16h3Pygykc7Hp/jGXsHsBT HyWjkHGbyr4zXW8E+9+lIXzTnkmp0xqp9UQXXtM4RoVXL+xP0E9Rq+tE2XIADAhfVpfl qxYotVoWEulBhmA92ies34huQiUCfBrDwXzFt5ss0U6/NKFvWPZDklY69fyhF0DJ7KLT ldaaTpQI2JOht9YXCeNqqi4ccL/nksr+9fFQ4lbyabVoHhykVwOP5Y42++T61MopodA+ KMlbxXc9CEk0T0qE13dyJEvpCWH6PV98HSTcqnJSFkweF90D9Yxw5EViMUj6d/D/xPAZ OUqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oAxyP8tC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv22-20020a17090760d600b0078239e3f846si3528609ejc.1.2022.09.22.11.41.33; Thu, 22 Sep 2022 11:41:59 -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=@gmail.com header.s=20210112 header.b=oAxyP8tC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232648AbiIVSa3 (ORCPT + 99 others); Thu, 22 Sep 2022 14:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232925AbiIVS3F (ORCPT ); Thu, 22 Sep 2022 14:29:05 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A4E1114C2 for ; Thu, 22 Sep 2022 11:26:57 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id u69so9983092pgd.2 for ; Thu, 22 Sep 2022 11:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=x/KOEzvs5/HZ3ITyDMwqUGxQmeTcr0AR1wyo8XABotg=; b=oAxyP8tCqeYuU1oeTTDzPYwAqW0TWMjBk4MNm/Q9k1jDviJ2qcMy7OceSjh3XrlXt+ WrJ+yOR5ex/qDj8dt7tlnl2XGCAvoZO8td+AMezzfYRVUPdslh8eBR95OmSePwMdsY5w 3xtyQTxmWE5Q4RNdohSNfkLFDqoCcD6ufLevaPyBO+DVdoEXzu0mo/PRJJWJFqFvcSwK sGOo1/zyIuhLmTPgLaKUvqllYvtcrC4IFp5CsofhcgxRVcvSocTW/e6ptYefbqGssPoJ jRCb4UK8zF68zyaR3bjkUAx621UjF9YuaXrpLkf2noW4zTj6hS6l28jZypsbhXvdHYQg ZfJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=x/KOEzvs5/HZ3ITyDMwqUGxQmeTcr0AR1wyo8XABotg=; b=3ErSGq7emEO/OJahwivt8eNRqI5YA2C9rIeDF8RVRpOAdLsCPwxxLZiLqlofz9PytY vlOejYD0uaz3kmLSQzNAw4LG47/tSSDvnVflEPMFznrbRlZ7KsqwBfhAKC6cY0R6WR1h IzgOE+fBtaBmYkshodBvLL9uhX6N1i0qqRooaGmtl4CXzDJQvNNwQqPHaGuvHUZLc95C Cg+cCHYpEGVPo+wudyb1zAfY1ZjhLZgU4olUv/H8D3camMkrzdFH6xTHj/+mIN5srieN OvgHPS87SethIXq7sG9goF8A6hPfLbNxgfCuSiB+z7Y/NAooB/8f+aVa8ixcmb3QT6QQ eloQ== X-Gm-Message-State: ACrzQf0jbV60PPmHgARtuAGrinrbdE8LdQ3Mm9tbLTo0+zOnJaHJBWUS Z4OcgvYDhpDT6mv7JsKVfmyET+sv6UTln3CABT0= X-Received: by 2002:a63:1f49:0:b0:43b:a2df:857 with SMTP id q9-20020a631f49000000b0043ba2df0857mr4244126pgm.137.1663871165524; Thu, 22 Sep 2022 11:26:05 -0700 (PDT) MIME-Version: 1.0 References: <20220922124306.34729-1-dev@pschenker.ch> <20220922124306.34729-3-dev@pschenker.ch> In-Reply-To: <20220922124306.34729-3-dev@pschenker.ch> From: Adrien Grassein Date: Thu, 22 Sep 2022 20:25:54 +0200 Message-ID: Subject: Re: [PATCH 2/4] drm/bridge: lt8912b: set hdmi or dvi mode To: Philippe Schenker Cc: dri-devel , Jernej Skrabec , Jonas Karlman , Robert Foss , linux-kernel , Daniel Vetter , Neil Armstrong , Laurent Pinchart , Andrzej Hajda , David Airlie , Philippe Schenker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Le jeu. 22 sept. 2022 =C3=A0 14:43, Philippe Schenker a = =C3=A9crit : > > From: Philippe Schenker > > The Lontium LT8912 does have a setting for DVI or HDMI. This patch reads > from EDID what the display needs and sets it accordingly. > > Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") > Signed-off-by: Philippe Schenker Acked-by: Adrien Grassein > --- > > drivers/gpu/drm/bridge/lontium-lt8912b.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/b= ridge/lontium-lt8912b.c > index 0fd3472e767c..6a4bb7422176 100644 > --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c > +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c > @@ -323,6 +323,8 @@ static int lt8912_video_setup(struct lt8912 *lt) > vsync_activehigh ? BIT(0) : 0); > ret |=3D regmap_update_bits(lt->regmap[I2C_MAIN], 0xab, BIT(1), > hsync_activehigh ? BIT(1) : 0); > + ret |=3D regmap_update_bits(lt->regmap[I2C_MAIN], 0xb2, BIT(0), > + lt->connector.display_info.is_hdmi ? BI= T(0) : 0); > > return ret; > } > -- > 2.37.3 >