Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3044433rwb; Mon, 15 Aug 2022 16:48:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5H/4qcXFy4VVCiw67GPZnqQcGQPcYsC17WXhVdJ0bSqUyjzvOJGDLkvj4d8UbkCrIrJH96 X-Received: by 2002:a63:2021:0:b0:41b:c2e5:f4ab with SMTP id g33-20020a632021000000b0041bc2e5f4abmr15871144pgg.496.1660607292752; Mon, 15 Aug 2022 16:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660607292; cv=none; d=google.com; s=arc-20160816; b=P65+zG8R0zgGvrva94u2hWu5fosvzZDmyUyw2QjT5BskpnAKtlWG8UPRdFoy78NGNf UL4PV5eqe2B/iU/E0fglqrO858cdWMGunORWzOFeQFXzKAFZEdE9LCge0jkF1xe9Ol9Z RXEE9sIvvV6MsufZWc1t2cQYK+o4G2uPt3dWUtWPmnBLIHdiwhx1WB+VCidd6/AhzkYC 816lGDFKD/HYnlVxtx+P6SeDaj7l9R9wbNX14PX9qs+0IVseOe8pDAqgAOUWCD6AzGpC Gmi3NicVxcSXOEQ5vHxMB6orUdzqFHXVvFW66ksNMgQPQYlBYImMXXk0oaGrc3ksHdts o0kQ== 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=N7r7Bk2w01AcLrHLntbJ7pEkt9z5OqEnPEnzplvNUlU=; b=rSejbY62PZkynYl43Ur4XrUwd8jZhtlnuxaNpMa50qGDlpIlSlzqNpoaePcqB+gm9h eUSi0CjJdDSU3pvlBN4JdYqb2WcprmILlmfsDMB9pKv2FnfYkD/bl0owdvF4g6wHbbvz LekdJw+6XmJGOaDAyee0fsd9GWee7+ciikKI8wzXTXy9SYD7ds/WpbkutOTJNqfirxJ2 1L5++mzDQj/7CVFwNcoRYyX9Sesqwykq+v31vahB5lwyDrg6PSEmTuq0ElOiqo7UcH6/ rSdJZJj0zVTzCO0F+3wyKzAk5HJvNm8DBN7hCdp4v1oLX9Xy9dXdZxtQP82jYIvMeOiC ne4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OZK2R9Ku; 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 iw18-20020a170903045200b0016d0bf9a5f5si10967830plb.110.2022.08.15.16.47.59; Mon, 15 Aug 2022 16:48:12 -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=OZK2R9Ku; 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 S1354197AbiHOXpb (ORCPT + 99 others); Mon, 15 Aug 2022 19:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354293AbiHOXls (ORCPT ); Mon, 15 Aug 2022 19:41:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B73152873A; Mon, 15 Aug 2022 13:11:43 -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 54B5B60DEB; Mon, 15 Aug 2022 20:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 574D8C433D6; Mon, 15 Aug 2022 20:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594302; bh=QaRXUr3r4AsmHygVeKEdOsmgYRPBs1WjnhmGFYW8NS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZK2R9Ku46qiSafV1RMVbrO/vtsIznVi16QIGMXUpbzHXPeovvFykCQO9kk9vP8Co co71s3J2S100kQWopYH8IvsfqfiSIlR0xpNI7UPD00gIkXomKzY2cVGTVptbm0GPpG Kjvqe0yniJ4urwR0Upq/HBL44VZKXJsTSZcRa3n0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Stevenson , Maxime Ripard , Sasha Levin Subject: [PATCH 5.19 0411/1157] drm/vc4: dsi: Correct pixel order for DSI0 Date: Mon, 15 Aug 2022 19:56:07 +0200 Message-Id: <20220815180456.087530143@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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,T_SCC_BODY_TEXT_LINE 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: Dave Stevenson [ Upstream commit edfe84ae0df16be1251b5a8e840d95f1f3827500 ] For slightly unknown reasons, dsi0 takes a different pixel format to dsi1, and that has to be set in the pixel valve. Amend the setup accordingly. Fixes: a86773d120d7 ("drm/vc4: Add support for feeding DSI encoders from the pixel valve.") Signed-off-by: Dave Stevenson Link: https://lore.kernel.org/r/20220613144800.326124-14-maxime@cerno.tech Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_crtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 9355213dc883..12a5944ee980 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -319,7 +319,8 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc, struct drm_encoder *encode u32 pixel_rep = (mode->flags & DRM_MODE_FLAG_DBLCLK) ? 2 : 1; bool is_dsi = (vc4_encoder->type == VC4_ENCODER_TYPE_DSI0 || vc4_encoder->type == VC4_ENCODER_TYPE_DSI1); - u32 format = is_dsi ? PV_CONTROL_FORMAT_DSIV_24 : PV_CONTROL_FORMAT_24; + bool is_dsi1 = vc4_encoder->type == VC4_ENCODER_TYPE_DSI1; + u32 format = is_dsi1 ? PV_CONTROL_FORMAT_DSIV_24 : PV_CONTROL_FORMAT_24; u8 ppc = pv_data->pixels_per_clock; bool debug_dump_regs = false; -- 2.35.1