Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp800186rwb; Thu, 22 Sep 2022 06:36:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7t3j/pf357P/x4gpHvSQVp/4EVhjsevUKGu/lksp8J+pBLCC0fF78nrXux5MHPgIIk8b6C X-Received: by 2002:a17:90b:1941:b0:202:5715:2180 with SMTP id nk1-20020a17090b194100b0020257152180mr3870237pjb.23.1663853818590; Thu, 22 Sep 2022 06:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663853818; cv=none; d=google.com; s=arc-20160816; b=xfthvOwgkenhSyVnWdrx4hYxF8AqqbtYDGw1qPC9q1c6dmqT1EF5ixgYhg9tlR0mc7 cUHy7rIO5AUCkn/LUbZ6MXa4v26zN+Cb4Nqe3wkHyFsalHs15sRRJqLy08E7SLSqOe/B zyTeYeBVrCdqHHCc3uanKqfo52tgAPovEEoRp+TD7UHldUKmftK19ekVcHqVUudjzmyd 3zqamcByebpRX/85P6R0n7Xt6dxjwJK2LiE21VnoOJOOapcigcpOFEwE5M86zZO5mER/ xJid3OrlmuKz+9DU5qOJElbYGGA7xMIBPPr7yS4EHPnTom66LQe5DB2DCq1bYLKExpKy r9kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4hhAZQ9OJmypn2XQWcsIJCdMZpRatvudu2INNAEnHEU=; b=XIWIr5f/JLIqenh5UyqrWcd8vyPFNJD309bnZWVVlsME5Xk7FUm6MsdMCEQdRlnne8 fXV1i1cOVUE/uVdYrgru/15pmk8aO/nc9tmxcYj8ElfklTeL7aI445lQJUCy7OrNIdxk R4sAua1n3MeorrkgjcecJ3zQkSdVNoIJE2ZLIuMNDk0eWBdyEweTys2C+gWShoJqDlvg uSMzujpi5UbyYguhPQV8TIAkRO7Yux6VkPa1zU8i25vNqOEG4ZuHf8AxO9slNSpwO6j6 SaqQMaH+WY+OOCFl4GXpNNEFZDoAm5lBnr+MRxLMD34gvg60elsBuTRcpTPMCud1kwYY izaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=av5JMroO; 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=pschenker.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g187-20020a636bc4000000b0042a363886b4si6476637pgc.789.2022.09.22.06.36.46; Thu, 22 Sep 2022 06:36:58 -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=@pschenker.ch header.s=20220412 header.b=av5JMroO; 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=pschenker.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231658AbiIVMw5 (ORCPT + 99 others); Thu, 22 Sep 2022 08:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbiIVMwt (ORCPT ); Thu, 22 Sep 2022 08:52:49 -0400 X-Greylist: delayed 566 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 22 Sep 2022 05:52:46 PDT Received: from smtp-42ae.mail.infomaniak.ch (smtp-42ae.mail.infomaniak.ch [84.16.66.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E51E7C03 for ; Thu, 22 Sep 2022 05:52:46 -0700 (PDT) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4MYFLs2jySzMqJ30; Thu, 22 Sep 2022 14:43:17 +0200 (CEST) Received: from philippe-pc.toradex.int (unknown [31.10.206.125]) by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4MYFLs0bwZzx4; Thu, 22 Sep 2022 14:43:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1663850597; bh=+OIz10N0TA8uuQex2ybW9n6SGAbwcDokvY4GhIEiPro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=av5JMroOBKiey1Rx1ox6FjGZK+pgv1N0kM2fJGIJQoRKGafLPwBJVCoDSFa6SUGqI g8ADwi3jh/0D6nX3yIlEH1zclnikto68pCqs73JC6BBfYefSo8s2zfn9iOqaowkshn S/dK2UHJ0GuyVRFlJjqXjav6u9iF4sZRgbKJVCPo= From: Philippe Schenker To: dri-devel@lists.freedesktop.org, Adrien Grassein Cc: Jernej Skrabec , Jonas Karlman , Robert Foss , linux-kernel@vger.kernel.org, Daniel Vetter , Neil Armstrong , Laurent Pinchart , Andrzej Hajda , David Airlie , Francesco Dolcini , Philippe Schenker Subject: [PATCH 3/4] drm/bridge: lt8912b: fix corrupted image output Date: Thu, 22 Sep 2022 14:43:05 +0200 Message-Id: <20220922124306.34729-4-dev@pschenker.ch> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220922124306.34729-1-dev@pschenker.ch> References: <20220922124306.34729-1-dev@pschenker.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 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 --- 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/bridge/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_SIZE(seq)); }; static inline struct lt8912 *bridge_to_lt8912(struct drm_bridge *b) -- 2.37.3