Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2492365rwb; Mon, 3 Oct 2022 01:14:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DYgzJKC43v/cjWhGtGhO8dfXw5DtQlHmrNILsPmPg0U6/E13LTpatH4t7NCehXshmJdn4 X-Received: by 2002:a17:903:18b:b0:176:afb8:b4ab with SMTP id z11-20020a170903018b00b00176afb8b4abmr21439296plg.80.1664784862479; Mon, 03 Oct 2022 01:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664784862; cv=none; d=google.com; s=arc-20160816; b=F82nxadkPoYYox3GPdKd+v6/JpL2twfNARyw45jydr0JPJtJ/vg4h0uyJWXUbkKRkl 0MWHvAz39gcidomqsmg1yA2DgzX812BypzhHrwn51lziqwLl8o4lZ0uek58qb0XR7Jzd iB4ldXFEpqvRg/A3gWq+o8G8o7pQq8o7aWDTVKX1sITH2JteLi0eL2vVRM9WvMaRIMYh GhoLhfsiqdH/S2r1edESShcG30STK/4P41I1zrtPWD9OILigk+Nw3rViM5wbLkryNpag +1p48o73vokdXbHK/pwQHxjxHwQxo981Rszdiczc5ey/B5XmxSkMf+QyXVwu0615QNJl 9PUg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EVpMV8bn6iZxAiau8mbjHE1QGDQ8u0DkBSCOAXARQyQ=; b=MAjjqXOrmarIUa1HhPQq0i48R1TgF41LSoDO7MpWsB6owY/7k67vol1fJtFbA8tTnf RBcenpPcYmUF1+dcurWlbDtQQbGyhyvwBtBePT4y61xre7IiXBJQfmfczGMcicvk/JYt lQbxI6mNtNGgxMdhKGq/iRsifgf04YTRafK6aQkGyvlFjNMq0H2kzphx39LN8cAR5wVU 5fIrb/2bn2j3Ybiu2SdbOHNPCrSlpxzfLgSyMS6UP4pN2JbWcA0Otne8LP1/CdyduiKu SB1W/1AuTZpAnRopY4ZqFFIhS4ecKMArBZbtp13omavxHa77YYSBovGYYSHDYyFBspa/ n5XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WpQcoaUx; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv1-20020a17090b1b4100b0020038eb8b5asi11342477pjb.21.2022.10.03.01.14.10; Mon, 03 Oct 2022 01:14:22 -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=@linuxfoundation.org header.s=korg header.b=WpQcoaUx; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbiJCH1Z (ORCPT + 99 others); Mon, 3 Oct 2022 03:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiJCH00 (ORCPT ); Mon, 3 Oct 2022 03:26:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D6064BD1C; Mon, 3 Oct 2022 00:18:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4EB4060F08; Mon, 3 Oct 2022 07:18:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 587CCC433C1; Mon, 3 Oct 2022 07:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781528; bh=v7g4F4OSPeaZNOBmVwP/wUNFNVZYgcHERgCo9de8d90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WpQcoaUxjWFJubczK4ryFwuQqSEGR6K+FVagBi8bq+01PWFU47iJC39bdneghUIkD pypE23fap4+oBWzrsZzQgRz09xzO9relst+GquLoBrb03xHc2RqxNU/TIswevuzjyh ep2ecP5P0flTrd8ED9c5fiCLF/jmsKIClxFAgF3Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Francesco Dolcini , Philippe Schenker , Adrien Grassein , Neil Armstrong , Sasha Levin Subject: [PATCH 5.15 52/83] drm/bridge: lt8912b: fix corrupted image output Date: Mon, 3 Oct 2022 09:11:17 +0200 Message-Id: <20221003070723.305982375@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 [ Upstream commit 051ad2788d35ca07aec8402542e5d38429f2426a ] 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 Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20220922124306.34729-4-dev@pschenker.ch Signed-off-by: Sasha Levin --- 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 6e04d51b4636..82169b6bfca1 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -186,7 +186,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.35.1