Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2869344rwb; Mon, 15 Aug 2022 13:00:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4nM3lfY1ej2YfHve6PypQHF2xLp7b9foEHF4Nwou1W43qLMoBARDrvTlFR+f3sC6CLlSSI X-Received: by 2002:a17:90b:4c51:b0:1f5:b530:af88 with SMTP id np17-20020a17090b4c5100b001f5b530af88mr20190197pjb.76.1660593615188; Mon, 15 Aug 2022 13:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660593615; cv=none; d=google.com; s=arc-20160816; b=dDbK3xuWKU9u9DQ/iiczGV/YdnMQVh2d7xqHzmS9irSMQvwts6ZUPzKe3D6/8lkcDQ 4Bmi1ATXnTdOV7B3NE17LSYneFkDcxLAzrZxudpAcbKj66lTTNr5DyKwNvBbGsdOMWQM Uh/TebeJCVbzZTR4IQU09bnbqngkShFYYXv/uewLumsNI+jwM39xgjS8zzvRfqMHP2cc /uLxNl+ygS+LcckUdhePefjXMymAr3kn2AL51ewGBm1ywzpjxshu4Hn9Mnx81rLhcLyB 3Rbp3WdT5CJWk/EbeDhwkw3/pqrVObJDM3BiINum3hTpLBGFRfPRmQiMXyLiB8zZ3pCW QLGw== 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=SXVCv8gXMsJD+EBRErMsBOBjVplsUT7enrb0K63+X7M=; b=PXYRtETtqLJXKXh2tTMx9diFJe/P4WZ2nWqa+ciTVnPTxT/VRPMTe+vHlMLjNXNM8i uiezxQ4o7LxcKueWqrfYcKys4Okf2RDicKWLhuJDja3WPMROFTVrMNS6xyFjkwc5YnQG 9BifvzZ0V5aYVdfDrCzmh9xIjuo8aszTHG++pFTrdoxfBw4gLDqz+7Yv5qOvvePIbiz/ XR5yq5brYgwSESDPBfy0GK666HgKDy23Fol5eOklPhvrz2mFOUT/pX+nkkYaFEcG36C5 IUZQMeHun8JswRFvRxR/cUARYnkXiv+g7q+NE3cP8c0h0sKrvP8x67G8oMDIsGjE8viY 7f9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UeCv0/Ek"; 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 i62-20020a638741000000b0041de4749f80si11951808pge.277.2022.08.15.13.00.04; Mon, 15 Aug 2022 13:00:15 -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="UeCv0/Ek"; 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 S244316AbiHOSxJ (ORCPT + 99 others); Mon, 15 Aug 2022 14:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243618AbiHOSs6 (ORCPT ); Mon, 15 Aug 2022 14:48:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B172131DF2; Mon, 15 Aug 2022 11:28:42 -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 B343160FD0; Mon, 15 Aug 2022 18:28:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA244C433C1; Mon, 15 Aug 2022 18:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588121; bh=KcEV8SKvsjL468XkPQvCHNAT9nTCGEg25sQJaScv6vE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UeCv0/Ekv/Wrz3UWBkSg0TUZjqUGEE9gJsfnWbfzWvHBx46r+DkiDwkTrC0r8bUKG DlU55Z36BroX5owM5VJTsizMMipA2gcQkh3WPBFafr9jX9YXwg+swvppC++qzBHNVi BNE7N/ct3yVWg14QDZLd/Vaa9fvAIfaCex1xAZAU= 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.15 302/779] drm/vc4: dsi: Register dsi0 as the correct vc4 encoder type Date: Mon, 15 Aug 2022 19:59:06 +0200 Message-Id: <20220815180350.197867110@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 4d9273c978d4c1af15d7874c10c732ec83d444d0 ] vc4_dsi was registering both dsi0 and dsi1 as VC4_ENCODER_TYPE_DSI1 which seemed to work OK for a single DSI display, but fails if there are two DSI displays connected. Update to register the correct type. Fixes: 4078f5757144 ("drm/vc4: Add DSI driver") Signed-off-by: Dave Stevenson Link: https://lore.kernel.org/r/20220613144800.326124-15-maxime@cerno.tech Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_dsi.c b/drivers/gpu/drm/vc4/vc4_dsi.c index 81a6c4e9576d..97a258c934af 100644 --- a/drivers/gpu/drm/vc4/vc4_dsi.c +++ b/drivers/gpu/drm/vc4/vc4_dsi.c @@ -1518,7 +1518,8 @@ static int vc4_dsi_bind(struct device *dev, struct device *master, void *data) return -ENOMEM; INIT_LIST_HEAD(&dsi->bridge_chain); - vc4_dsi_encoder->base.type = VC4_ENCODER_TYPE_DSI1; + vc4_dsi_encoder->base.type = dsi->variant->port ? + VC4_ENCODER_TYPE_DSI1 : VC4_ENCODER_TYPE_DSI0; vc4_dsi_encoder->dsi = dsi; dsi->encoder = &vc4_dsi_encoder->base.base; -- 2.35.1