Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2928851rwb; Mon, 15 Aug 2022 14:14:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wqJ/oGljVdONbcYqo61MKHoH/LJmjsD2CRkOTS8jn46BZi4IXvW8VBdnARlLZjH2tqHzC X-Received: by 2002:a17:90b:38c8:b0:1f5:1311:5bd3 with SMTP id nn8-20020a17090b38c800b001f513115bd3mr20044707pjb.161.1660598069801; Mon, 15 Aug 2022 14:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598069; cv=none; d=google.com; s=arc-20160816; b=VNFXlEHvrT4qsqqztlc3h5xVh/ObSHWZRYu6Vbaeqw77W2gA4QUqfNB/F/X70VkTbP pOvHsFas37uCVUfgLrL+4sBcu+JWufLA3Ied9B/LNiXqV1GpS6YkW12OPXLv4qzbrN/l 3PrmwIJO2SPWe38rrIdZL8SPYonxHEiNuORTNaqfm1MOSaq/E+wa8+73LS6VivWqMLjF yjj9jfY3iY5SDiP/9mqxmk5OcD2nvXMwukE5Sco3R/zyr2hql/YodDRXvj6gOFEG0kyV Jwv+OjJ8VKFJYornd4SEETPFamru9mXnGLEgUy2eEPTFJv2i0a53iIwwdGwo6dMfRFD7 9GAg== 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=7qjvLV955+OzOJAcZfLstNlmapSYRsQ/9VLhTLtWAS8=; b=SANliYXHlUdCf32/MHWmcZ59MH3Huygl4oEburYqi683L4aGgTHjaJvQjufDgySkna Cw8cTYFeGJrSwNkgROWU4AUdgkhqJvjdWp9rO53c3dANCBT7RoS/UNPh1t23fnCdLLMd VPGw3v8b/tCTFCZD8iY66MFNqiZmu2iLFBu2FcPECAF9erEFOwZ33DLpqIqERpOh3cPm pKpJpNlOyQEZ2SrGbUeKwXTuASYypjvFpKYhcczRJxjzue/TXa0ZnpSZevT0r1zV5vcD c0it09xF+o0jbCDZ+pBL75LWADw6eiReJJJTlEVskGR+fIkwmdNeJr7xdV1yIkTt1bpL +qmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lloUeSRO; 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 h6-20020a056a00230600b0052e7d706a6fsi10982652pfh.149.2022.08.15.14.14.18; Mon, 15 Aug 2022 14:14:29 -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=lloUeSRO; 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 S243248AbiHOVE6 (ORCPT + 99 others); Mon, 15 Aug 2022 17:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347595AbiHOVCJ (ORCPT ); Mon, 15 Aug 2022 17:02:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80C94CAC71; Mon, 15 Aug 2022 12:14:05 -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 ams.source.kernel.org (Postfix) with ESMTPS id A7935B81115; Mon, 15 Aug 2022 19:14:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9D1FC433C1; Mon, 15 Aug 2022 19:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590842; bh=p+lLgH6ceTfuqTDR32cF1V9u3wTChHSwPS5LpO3gH1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lloUeSROF68+Ze9dVfBkxv8l+AnQJGdSlHSDQzziQD86uGmOe5KS6LGwXeDpTYVDo qyIjYkgkplsJsC1p4XFvCOGOaXcGYNl1Et7HYorhW6hg5K4s4mp+pZVYVDqJCmZ1UD zeJp7IixfaqbWBzWowNH50pvOyCssEebe9wqf0QQ= 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.18 0388/1095] drm/vc4: dsi: Correct pixel order for DSI0 Date: Mon, 15 Aug 2022 19:56:27 +0200 Message-Id: <20220815180445.739615247@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 477b3c5ad089..0a5f58cdd781 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -317,7 +317,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