Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3589532pxb; Mon, 24 Jan 2022 12:58:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5jnla9EuF+kcvz175CAjYhx0p7K1p/2m1lJE4kqjIwUT0bQ3RrRxVN19RUBBE3+SUAmcC X-Received: by 2002:a05:6a00:230d:b0:49f:b8ad:ae23 with SMTP id h13-20020a056a00230d00b0049fb8adae23mr15175845pfh.80.1643057914703; Mon, 24 Jan 2022 12:58:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057914; cv=none; d=google.com; s=arc-20160816; b=0U+4d24/pwYkB37ZV41nn04sv0594AKrHDd/GU3oMqxl1B9xEsH06iI9O67WSC901z ATGCiVjimfJVjrI5BJR4yUjhLQfnlcG6UA88KTA6NRX4XHjVdR+0iuHNlzkpBRJNcHVL j20/kFTSRkaqlWHodToW2cDCbuClEZzKWWnq5ITVLXe7g0y3kpe1aC0q202Hc8GgsLdD uKs8+UgVw9hzBCLNV/AUxCsOGoWGPQuMIWcB2LVyvz7PzZ17mDYdDABl7UpWY0IIj/O2 XGC+SrKnJUECCAB9dkY6e2OKPecmqGG/3mJYhU9UDGts3corcW2iCEG6YCCRsArgE3nK hqcQ== 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=Ke01HM3q1toaChHE45ihnt1T6NXmGOzNCo7h23RmRyU=; b=jiDIddIRylGyi5hc+7WlPa+JGPaPoDh2Mf9dMJQWHs2mR5Zvcsb0RUuYmgtixaaJ3m g6xo7pYxXlpjALBJcSSTQ2bU8mwOrtYDx1TfpwNAAHYCOS22jRYmVunRJQMJyukVEw+9 okdOnh5/lP5lvu6B8esss5oj5tDGt3bM1WKU7N96cZrF8a2VrtnWFDwb1YRykhGvk5yx ItX3u5p2yIa5C+HjvunB6TzO8sZoODwraBNiJiKT70gZyYP7W/FulM/4xiyajohcDr1C hJlAMhA9m7hNeH1Jv6DQ4p1q09YJHbQFfQbmhwM6uZhmwpjnhBcLkk4Smr/gZ8jl1AzO sUdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Pv/yinmD"; 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 bd6si4662181pgb.465.2022.01.24.12.58.18; Mon, 24 Jan 2022 12:58:34 -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="Pv/yinmD"; 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 S1346767AbiAXUW5 (ORCPT + 99 others); Mon, 24 Jan 2022 15:22:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376330AbiAXUBY (ORCPT ); Mon, 24 Jan 2022 15:01:24 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA885C055AB2; Mon, 24 Jan 2022 11:28: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 ams.source.kernel.org (Postfix) with ESMTPS id 64CA7B8123D; Mon, 24 Jan 2022 19:28:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 756A8C340E5; Mon, 24 Jan 2022 19:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052521; bh=aLxp9MG1FvXaB/4/0PbB5rq6RL/Jlk7y49FhlN07VPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pv/yinmDaYuVNA3OZeY751J75/xwZlux5ewd2GhSDXsAhrKHlSR08uzbISxH1FrZi 0KdhUdP5qHQvjElcYr0I+o/PMYmPt+/0neVU06EFTyT8+4XW82Gk/k4lQ7pNP8W9ue YJDqEAMxoGY8Af+R49mWrfvni0/GU+XrIOb+3pDU= 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.4 086/320] drm/msm/dpu: fix safe status debugfs file Date: Mon, 24 Jan 2022 19:41:10 +0100 Message-Id: <20220124183956.668770381@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 58b0485dc3750..72f487692adbb 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -88,8 +88,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