Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3629968pxb; Mon, 24 Jan 2022 13:56:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhUdGq+QMnMXVzYH2lmpg/85Ch4ekTFopn8Y975QRk+s3K5g4xg8ekUM6dpbhB/qTpkYHI X-Received: by 2002:a17:90a:50f:: with SMTP id h15mr356509pjh.78.1643061412636; Mon, 24 Jan 2022 13:56:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061412; cv=none; d=google.com; s=arc-20160816; b=Yrx7VL5isxfE3hfBjrGnDSBYETXra33nVOawbjlApmNAPxGKhAUcnR5w3uwIliXMFG rAmBCPzddFbdmiwsJ3wm+yXgBU9hm/QC4EKmvEhilHyUxRif/Nn6m5t1kD/nUmnKlHmp nq9EJHvqNKjxeWGghDex9XQI51oDG2mOGxoF8EexlAsgny+jPdP4aUWM7pvQHeefvDXr 0UNsvgyl2NgnZC/WygNrWeLN+X3ltFlHo94l4Ekr47oNLqB9Oe323w5qhry6GsUWBHK7 It4Etvk1ho2LUSVcA3HzttWciRQly5Ox/k8SMsQ4II8x9L5vecOWVZD1FSfy3V7K1J5i BjTQ== 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=Vh2rVj/lsTP3cz1G9hD4SEjBltbd2K4B7CNzMkdSzSE=; b=w6roJSQjscmu0drGK6sxyl0WmZTt7UgpemuRsD/M6gwme54n0CQSCFHi6xQiyPdxam cJBszgnCGOZdVihPhFEECJmDzxTDvS6kLFo0NUSrJp53zp6E9KZ/en3N6GCoS38ow9zn h0Vz1z7nrBv+EGhzLlpUy5gBhyCoKyM/nLR+gqpL9RWB2TKSKVbgP6oRdWO+LZWq+bwy RWqrOVSI2GnhhXU7c8yOsvibMgG31CPvlaSJSB1cDtNrnY2tZooVDlY8zm28lWPuLVZx AgSF1Y1LL+VAeZBPdvszgkXAZ6jAYUvje/nwgoQbDNxX1athhLne1ndD7avNR2PBAj0c 45Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h25Yy9ax; 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 ip13si477058pjb.161.2022.01.24.13.56.40; Mon, 24 Jan 2022 13:56:52 -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=h25Yy9ax; 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 S1573062AbiAXVoP (ORCPT + 99 others); Mon, 24 Jan 2022 16:44:15 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:59520 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446237AbiAXVHn (ORCPT ); Mon, 24 Jan 2022 16:07:43 -0500 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 AF593B810BD; Mon, 24 Jan 2022 21:07:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8C51C36AF6; Mon, 24 Jan 2022 21:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058460; bh=W2fz6Dp5kFEdezSW4eSWeBiIQQYuoPrdjPWyRGEBVoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h25Yy9axh02KWLN9IVDnOLAt1UKJtW8GSUu9VFJBVfPgfbXrFh+bdIPSzD/DIbuFK XZVt2Sock1wEzIZdk0lpauuqELMe1GrlsoaBMNmAtavnsuUICOaBk/O9mzvETN6EJO XvavEWDuE+3CEbraHm/8AlpduX3I3Oo27J5P884s= 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.16 0295/1039] drm/msm/dpu: fix safe status debugfs file Date: Mon, 24 Jan 2022 19:34:44 +0100 Message-Id: <20220124184135.206087473@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 a15b264282809..d25d18a0084d9 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