Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp209475pxh; Thu, 7 Apr 2022 19:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEIDArojmTviqmOMrbWGx/wLkmY8EYpfjQbh23RR9dNcvhCX3hZI91l2GkfCHdqdzAgUdp X-Received: by 2002:a63:5946:0:b0:398:d65e:b987 with SMTP id j6-20020a635946000000b00398d65eb987mr13511017pgm.557.1649383667924; Thu, 07 Apr 2022 19:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649383667; cv=none; d=google.com; s=arc-20160816; b=ohquIDgXwXrLuzt3tm3tH88GQxqYS6tStwSywQa30l+JKv6I3IAjxY0IEFfQ22wZFo DUEMcYQY6YLMaoYpSj8xCzdy0PH0pHk6yh6aLRIxlPO8Wktk2l+UWqWpkC67MFJxggMW lrYn1AtZTEegj6LVk6j7h/B85A1Rlun0J8PoFDV13L7/u9Iq3bDsIcOQiGRZPo7G2zoR AVLyVnZDheTHJXitp18MmjoEA1as/h0fqohHI7/8BbzvaRz8BPXKxskqwIF0Q0VJdvEt frWG3Y+ph6GhdcMk/yQoOrGkevbDVt/eUnz4++LXpdxCCDgeEnwe6F3tb4EUlOPmtWWL YbLQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/EezsOHrqNES46sI6AsD+VneGuUqca3wnvvmlqpc0pQ=; b=qQEnVtLJgjdKsqPek6+S2PsMEu+BbPRafwhTG0YHYP7w3JsRY6743p0TmpTXAuB0w8 5rzcYFHdk5UHaIdC8cZVirjpTyZ+j+qXQve4PcSzorvQJEF8uWC36T9jC6odehsi/ggm 04gJDVCy086v/wxoTdAJ/tSrUEQmplaX/+SJn+Od6BLfhbjaa3VArC30bjphvpSGA/vH thXm8jeZmGbB5ZGzhzWrRqsbhb/zGBV2YXCEPUZq3h46zApmAJgZjPFcCN3bKiPUxSii MgdLN7atiy/Nb9yet62xspLxf4rwP3T4khpW7IpBSD5FpZYHaiGrDU36za4417YVVBTt uCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SQ9QUQfC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t68-20020a635f47000000b003993a5ee24bsi7705198pgb.693.2022.04.07.19.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 19:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SQ9QUQfC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C73B125CAC; Thu, 7 Apr 2022 18:40:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233504AbiDHBmA (ORCPT + 99 others); Thu, 7 Apr 2022 21:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233418AbiDHBl7 (ORCPT ); Thu, 7 Apr 2022 21:41:59 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A570F2101 for ; Thu, 7 Apr 2022 18:39:57 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 2E48A1F46A39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1649381996; bh=Zoo0D97gEmqNrY989eMksqTtr9Q81mrxj7dB1t09D6s=; h=From:To:Cc:Subject:Date:From; b=SQ9QUQfCr2e2hvpXJL9p427drhnonB1hrAQ8NW3YHYwSh7XMHkrq68aZorlrf21qK rxNjA+g4ONZ9RezDcpv3/OYQjrUaiaBo0tlbsPaodSI0pBtpPdm0c1Y8JNg25LcGCM ocvAOI7iADHCPaxskD5eQYeZ12t3qdFf3IL4SHC8tItqZiP4fJyVaoUdoTvKwCFjRH ToDi6AZ2yynJchpugZDEsMe2PFFwramN38bqAYBmAhKLHqP73XvYN5dhhOI7eWrDCT 5zhHtBpnbQ7QB55NIwNBTgjUNfbVLGYhetLLKjxnMm/NGfObTwaDWENbbgBENwLMlD CJpl9ajw90Gjg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Philipp Zabel , Chun-Kuang Hu Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Daniel Vetter , David Airlie , Jitao Shi , Matthias Brugger , Rex-BC Chen , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2] drm/mediatek: dpi: Use mt8183 output formats for mt8192 Date: Thu, 7 Apr 2022 21:39:50 -0400 Message-Id: <20220408013950.674477-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no 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 The configuration for mt8192 was incorrectly using the output formats from mt8173. Since the output formats for mt8192 are instead the same ones as for mt8183, which require two bus samples per pixel, the pixelclock and DDR edge setting were misconfigured. This made external displays unable to show the image. Fix the issue by correcting the output format for mt8192 to be the same as for mt8183, fixing the usage of external displays for mt8192. Fixes: be63f6e8601f ("drm/mediatek: dpi: Add output bus formats to driver data") Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v2: - Added Fixes tag drivers/gpu/drm/mediatek/mtk_dpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 4554e2de1430..e61cd67b978f 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -819,8 +819,8 @@ static const struct mtk_dpi_conf mt8192_conf = { .cal_factor = mt8183_calculate_factor, .reg_h_fre_con = 0xe0, .max_clock_khz = 150000, - .output_fmts = mt8173_output_fmts, - .num_output_fmts = ARRAY_SIZE(mt8173_output_fmts), + .output_fmts = mt8183_output_fmts, + .num_output_fmts = ARRAY_SIZE(mt8183_output_fmts), }; static int mtk_dpi_probe(struct platform_device *pdev) -- 2.35.1