Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp687169pxb; Tue, 5 Apr 2022 18:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN2eXQKHUgKoHxcKicDM7dGQkR2R3HXcy0keZlENsDXMmWvQp3s0ilTRU1IEpz3TcWouoG X-Received: by 2002:a05:6a00:228b:b0:4fa:e12b:2c7b with SMTP id f11-20020a056a00228b00b004fae12b2c7bmr6392497pfe.79.1649209721217; Tue, 05 Apr 2022 18:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209721; cv=none; d=google.com; s=arc-20160816; b=MPHyCbXDL8DfRHtgn80Q6bfq6k9qu5NyrkvkycFFLPC/rLDx3xa5ZDG99iNvgqw0Zg AfQyDCtJGf3XlEcFS/r0iLBOHOt6BP3i53/qpK7PsHNVNh0xIn0U8fgiDDnJiMZLGB7V RPalE2rgiNqaA/8Fy6DjFgsBaZHeHnPq7IoUuu7c0IurgNQd6f63O9Yvj9An71vWN4Cr LTxGnB6S15hMEvwC1d1zeZ7oCjJjGQ88qxGQCwLKSmjPY2qs6oMC3HHyJZ4jeZTbJHWd jG3u3pHvhlBKdQoafJ+TB2atT64JAK9bGI2MQyqgFANnPDmcYnD44ltBwlEAJ0ihYcKw rWvg== 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=h9oyvROOS5/vxUm++wY8vj2WbkIQ+QW5qrY3s3a7RzI=; b=EdM9nWXysGpoyHDYT9+EuvBujDFhVpGyvryr+xQpn3wsfKv0CiFyyy3j0hjjL6KXL8 Tn5DMGTjRDXlfL5Tv7qc77ozXLo92mmtsK8qaPaVqUMYKMYnRoYwqYhccUg6ldrnQaQd 3R/ifxIaDL/HC2KREfgPUZJvJwQ8J+YHs25w2NvgtnmseL0AWhXXl+Mk+i0ckVkHZn1Y bhdlqLFb2AL85S/Pv1ppN3laZQ8PuzVby6n9Jw08M+5hbNceX9ETMCUMpzghu9LuY8yW haPttiRErkJLVIJQDKDPMXzPhNjEpR8dZJ7V1JhJnJcLj42wYQP3TCS6WEo+f7vxvvtf 69oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dBAfvjMj; 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 q3-20020a17090a2e0300b001ca86a1e430si2955380pjd.121.2022.04.05.18.48.25; Tue, 05 Apr 2022 18:48:41 -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=dBAfvjMj; 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 S1386113AbiDEMkO (ORCPT + 99 others); Tue, 5 Apr 2022 08:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236590AbiDEJDK (ORCPT ); Tue, 5 Apr 2022 05:03:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A9ECDBD; Tue, 5 Apr 2022 01:55:01 -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 25F8EB81BC5; Tue, 5 Apr 2022 08:55:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B2FC385A1; Tue, 5 Apr 2022 08:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148898; bh=Y5iazv/oV7OhWApihC2GFnbA0CL+8cL689bRz3QbMdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dBAfvjMjG+MPP6lsgqs8PbV1JaoOSNTizz4t9OkDYlxYHhkehntsA39TyaDTBIU2Y keYvVZuOITOFQQs0izRCwP6O+oa3OlnZ7Fbhh4WhA8AD+AEbJC9LLEE4C7087qIIOd oF+HaywX0o8y7IuXvV7hJQnt12DbUBvqISagWNPY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abhinav Kumar , Bjorn Andersson , Stephen Boyd , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 5.16 0522/1017] drm/msm/dpu: fix dp audio condition Date: Tue, 5 Apr 2022 09:23:55 +0200 Message-Id: <20220405070409.790712484@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 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: Dmitry Baryshkov [ Upstream commit 1e0505a5a7a2fea243f8e6d7e13fcde65f9e41bc ] DP audio enablement code which is comparing intf_type, DRM_MODE_ENCODER_TMDS (= 2) with DRM_MODE_CONNECTOR_DisplayPort (= 10). Which would never succeed. Fix it to check for DRM_MODE_ENCODER_TMDS. Fixes: d13e36d7d222 ("drm/msm/dp: add audio support for Display Port on MSM") Reviewed-by: Abhinav Kumar Reviewed-by: Bjorn Andersson Reviewed-by: Stephen Boyd Signed-off-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20220217035358.465904-2-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index e7ee4cfb8461..ad27a01c22af 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -1102,7 +1102,7 @@ static void _dpu_encoder_virt_enable_helper(struct drm_encoder *drm_enc) } - if (dpu_enc->disp_info.intf_type == DRM_MODE_CONNECTOR_DisplayPort && + if (dpu_enc->disp_info.intf_type == DRM_MODE_ENCODER_TMDS && dpu_enc->cur_master->hw_mdptop && dpu_enc->cur_master->hw_mdptop->ops.intf_audio_select) dpu_enc->cur_master->hw_mdptop->ops.intf_audio_select( -- 2.34.1