Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1223498rwb; Thu, 22 Sep 2022 11:49:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6KWN+fesm9JRv84I0N7YLI82hcJ41+iq6XVwfM9XGoo2DXyerPK5yb3kWtZ53P9bEfZYgp X-Received: by 2002:a17:906:4fd0:b0:781:bcca:78e6 with SMTP id i16-20020a1709064fd000b00781bcca78e6mr4038391ejw.508.1663872596561; Thu, 22 Sep 2022 11:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663872596; cv=none; d=google.com; s=arc-20160816; b=KxJKL0ryi2tmgCaPxPfd6rK7W9ML2zhhz93hj7lmSGeCx4ZRLDJ9SBxJx7zkMo7gI1 4RckqzYm796m4ilb5eHxLGEyEKkWBIzURoPDBsxja8JkGSvvAgikNGD5yc7vT2KhYtbg TpBmFvUD1fSH/hk5nb4SCXAWm8eypD2DHfchwPTqt9+lCswZRvPgKrzRDxdLWxQ0mhFO Z+XD5m042Q1Qz+nmJZgIisAdCbi2EeonU8unZzm18OXn1tKcig7k/YAs6ayIGWrYqI91 bQGzk/CDEWlIJ6tDobzf+c7L8EvIYC9/2+QpJ/dbchXexiaNmyoEKAWlZG+oPY1p3dKG Pvrg== 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=TBgCkH3JkIc+IniQbGJXoodAUuhOgxlJRYBUPHsWxrI=; b=1IR3dP37ZKrS1FfpKJbm/FWsvifla3mXceRJil5i1lWoSr2SuRYH8zlPGFv0/D3Z7g fEOeU+SOFCO+EPOMVxdZMUwWR1St7xCSSaZDIVC3HwMKbUGsHvCzXYPbJTZKGCmWvRj4 1pClwT5COAdgmET9C9VBNetD44CTLp/kKKAbB2MxqBV2oPzSFvjYrKaaQT91eDSWUrUm xSckLqETpzP5cIMxnmFSj2UMQj1NTQeonpONLB5CaamR1+6Vd3HnZ67gmtuFEM37ZPJ5 254DGsxnkurGh0umZ81LCqSf6ad+XE7S9/hprs9nK4t9H07DPGdESMzdo12ZL3rifuHz 4z9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HPMAzRpC; 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.49.30; Thu, 22 Sep 2022 11:49:56 -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=HPMAzRpC; 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 S232350AbiIVSaV (ORCPT + 99 others); Thu, 22 Sep 2022 14:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbiIVS3l (ORCPT ); Thu, 22 Sep 2022 14:29:41 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64B4510B597 for ; Thu, 22 Sep 2022 11:27:23 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id f23so9576470plr.6 for ; Thu, 22 Sep 2022 11:27:23 -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=TBgCkH3JkIc+IniQbGJXoodAUuhOgxlJRYBUPHsWxrI=; b=HPMAzRpCXEpObfn/F63fTuscb+vLxR36rz8hUk97RWQnfpREP1bquwZIrUmttoBnot fGHtp1cvokVQjHv9zBLi5zT4154UtPQseIPvE9Tq0z+BCMKIkgyKMhCE02OfrMsyoT2n /i+vE/a0M0lzPIXgS3xawXCGdPlyTh8Cp0T3W3WNCAGeHg4iR9pZGqLIGVI/3x6Eclhm sUHPBDIWchRu1NaNexKsymA46SS1Ko55YLZsxo8LuyCMhthFG4RoQJTZwVYBzabQmKx6 0iDDZPf9OLiuerOeERMyxHplIp4G4I9VpFpV2R3cMgXWGY692B8D4wKPrlingk7zmSsq dZwQ== 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=TBgCkH3JkIc+IniQbGJXoodAUuhOgxlJRYBUPHsWxrI=; b=voVCyOPR0pSSqjG9d8OaAQgCZoeTziAh1JtXDbDxuPIDrlqG0tSFxkycqYzZBNH1eT /IrKpTiH0b/NP/oGYT9TL0wqIMHLqRnpG//F5tzGhazF473/l14xQkpzj7ZHcK5VvLuY wvjCOUEMJg5c8rHNGZ3X992uzudTiLvBfLnCTy5ZG7RCpl2m6gY1TT7kxsdichpyre0Z EkI4dD/ECXyo/7ti5FxHez/o/bUF+a0foBkjH4On1jqYNnK5kvakGmFCbEwjF64eMncz d4amu93wpWeCEXdCEm7wUrZmvH/0yuINcOY6LNAg6UMwuXa5FFjPpAPUaYA3tImq7bN7 G9EQ== X-Gm-Message-State: ACrzQf1BKo+U3WGZskzgo+cE6FChOQ+2wIXmS8FqDZOK52bKs1uHMc9U Brw5K/TJhY8XVWoDWHR2YHvwmbqGA5fLtRVyBFs= X-Received: by 2002:a17:90b:2bd3:b0:203:1a03:6b1b with SMTP id ru19-20020a17090b2bd300b002031a036b1bmr5041786pjb.58.1663871199819; Thu, 22 Sep 2022 11:26:39 -0700 (PDT) MIME-Version: 1.0 References: <20220922124306.34729-1-dev@pschenker.ch> <20220922124306.34729-4-dev@pschenker.ch> In-Reply-To: <20220922124306.34729-4-dev@pschenker.ch> From: Adrien Grassein Date: Thu, 22 Sep 2022 20:26:28 +0200 Message-ID: Subject: Re: [PATCH 3/4] drm/bridge: lt8912b: fix corrupted image output To: Philippe Schenker Cc: dri-devel , Jernej Skrabec , Jonas Karlman , Robert Foss , linux-kernel , Daniel Vetter , Neil Armstrong , Laurent Pinchart , Andrzej Hajda , David Airlie , Francesco Dolcini , 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: Francesco Dolcini > > Correct I2C address for the register list in lt8912_write_lvds_config(), > these registers are on the first I2C address (0x48), the current > function is just writing garbage to the wrong registers and this creates > multiple issues (artifacts and output completely corrupted) on some HDMI > displays. > > Correct I2C address comes from Lontium documentation and it is the one > used on other out-of-tree LT8912B drivers [1]. > > [1] https://github.com/boundarydevices/linux/blob/boundary-imx_5.10.x_2.0= .0/drivers/video/lt8912.c#L296 > > Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") > Signed-off-by: Francesco Dolcini > Signed-off-by: Philippe Schenker Acked-by: Adrien Grassein > --- > > drivers/gpu/drm/bridge/lontium-lt8912b.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/b= ridge/lontium-lt8912b.c > index 6a4bb7422176..5968f4af190b 100644 > --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c > +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c > @@ -188,7 +188,7 @@ static int lt8912_write_lvds_config(struct lt8912 *lt= ) > {0x03, 0xff}, > }; > > - return regmap_multi_reg_write(lt->regmap[I2C_CEC_DSI], seq, ARRAY= _SIZE(seq)); > + return regmap_multi_reg_write(lt->regmap[I2C_MAIN], seq, ARRAY_SI= ZE(seq)); > }; > > static inline struct lt8912 *bridge_to_lt8912(struct drm_bridge *b) > -- > 2.37.3 >