Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3655749pxb; Mon, 24 Jan 2022 14:34:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4QoiRDuNlMp57XlMiXQVKYxBOcMeg2cFqVClvoVUqzxz1dGafcQ/OrLsG84xp/8owXiZ+ X-Received: by 2002:a17:90b:33c6:: with SMTP id lk6mr442779pjb.217.1643063670113; Mon, 24 Jan 2022 14:34:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063670; cv=none; d=google.com; s=arc-20160816; b=tD6VnP4HguZFUNeOXKDbJMfjRbCmHskpK3iAg5T6G7UiwgnHdPhK3p8Deoo9+uQMGo yC0InJ8sRhk0sLemPTuLtwW7vkyH3Fo04J2KDedA0TFlkoH587BVFR7CzChqIXHvkQAf rLfYeZ0FHG9CzcCzBD6sCg+I7oQ2iW4VVM8P0TeFoMUcnfYvEadKas0ieNSY5JZx2xfX DHbU6/Mu5LD4vLBi8vLvSCFHAgs8Uj2mlLm1cB9Hs5+2qdqUUJ/dOHuWZAUt4aNFRXCw EuiohrKKpTWr/GMwcpAbC4I9Chpq+VxQLTfoHKmKxfahNPdyQLCOuQTKPTNuEzGnr1jQ 1ABg== 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=V+O0hgJpf9cln6mzF32yfiD1mh8hbvNlIsLq0qdKGt8=; b=DEqVe+giwv96xbK2lY7dekp/GL2HQJzwVzCt9mVJt4m9xm1Ym30GHbYd5G7pdYPkPV V4FNvcUK2Y6cVhD+tvUzN8S6dqah2PKThy8lT+wK+M91it6N+FNp3azudJic3IgzmL9Q tCa1qKkmNUBOQgE06QcHpRhOsATdwxHvbm2VprO7rokq5o/fAEUqnYUWEXODsphPTEDV KRBd3c2Ps0Txr6neROjah2OvlyKyV2OOYa7SsNtNazHPV0Od2Ng2q+F4Y55zq8HHRJoJ t/GGovsafFGkd8IJmMXQWwQlVf+JXPPYr33BFGCYZEQtsPBOdR7+VDxTC+XxqqMKJQko a7eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ThBcvM8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si15391698pfm.13.2022.01.24.14.34.18; Mon, 24 Jan 2022 14:34:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ThBcvM8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1588587AbiAXWdW (ORCPT + 99 others); Mon, 24 Jan 2022 17:33:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456542AbiAXVjb (ORCPT ); Mon, 24 Jan 2022 16:39:31 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AB83C0417C5; Mon, 24 Jan 2022 12:24:43 -0800 (PST) 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 2AF1061233; Mon, 24 Jan 2022 20:24:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09E3CC340E5; Mon, 24 Jan 2022 20:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055880; bh=EQEDabkSpaRuhi0tQo1Cce0GjX27thOY8EKOCMv4/6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ThBcvM8h6q8GTN5d7Uc0DNksCje5an8OYX1iHkyTlI3dQ6JMV42P56DecvMw6vlyL 4rZF/JxnqwgdqhjBj0pA6vWhvIMWgOD84L6ays7zoIEPWV0SCZ9ILLKrOex3zQO6W3 NPzdM3mdHutkFh62CD7ib0iGz4HhD6T4m2pG29Sc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Baryshkov , Abhinav Kumar , Rob Clark , Sasha Levin Subject: [PATCH 5.15 253/846] drm/msm/dpu: fix safe status debugfs file Date: Mon, 24 Jan 2022 19:36:10 +0100 Message-Id: <20220124184109.674260363@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Baryshkov [ Upstream commit f31b0e24d31e18b4503eeaf0032baeacc0beaff6 ] Make safe_status debugfs fs file actually return safe status rather than danger status data. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Link: https://lore.kernel.org/r/20211201222633.2476780-3-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index ad247c06e198f..93d916858d5ad 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -73,8 +73,8 @@ static int _dpu_danger_signal_status(struct seq_file *s, &status); } else { seq_puts(s, "\nSafe signal status:\n"); - if (kms->hw_mdp->ops.get_danger_status) - kms->hw_mdp->ops.get_danger_status(kms->hw_mdp, + if (kms->hw_mdp->ops.get_safe_status) + kms->hw_mdp->ops.get_safe_status(kms->hw_mdp, &status); } pm_runtime_put_sync(&kms->pdev->dev); -- 2.34.1