Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111AbcJCLNY (ORCPT ); Mon, 3 Oct 2016 07:13:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56978 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752798AbcJCLNP (ORCPT ); Mon, 3 Oct 2016 07:13:15 -0400 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 7FA99612C0 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=architt@codeaurora.org Subject: Re: [PATCH 1/2] drm/bridge: analogix_dp: Add analogix_dp_psr_supported To: Sean Paul , Tomeu Vizoso References: <1474639600-30090-1-git-send-email-tomeu.vizoso@collabora.com> Cc: Linux Kernel Mailing List , Yakir Yang , David Airlie , dri-devel From: Archit Taneja Message-ID: <31a91d33-302a-482a-cec8-bceed97e24cc@codeaurora.org> Date: Mon, 3 Oct 2016 16:43:09 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2001 Lines: 62 On 09/27/2016 06:58 PM, Sean Paul wrote: > On Fri, Sep 23, 2016 at 10:06 AM, Tomeu Vizoso > wrote: >> So users know whether PSR should be enabled or not. >> >> Signed-off-by: Tomeu Vizoso >> Cc: Sean Paul >> Cc: Yakir Yang >> Cc: Archit Taneja > > Reviewed-by: Sean Paul queued to drm-misc. Archit > >> --- >> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 8 ++++++++ >> include/drm/bridge/analogix_dp.h | 1 + >> 2 files changed, 9 insertions(+) >> >> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c >> index bf992460a6c7..91d8540ac8f0 100644 >> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c >> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c >> @@ -98,6 +98,14 @@ static int analogix_dp_detect_hpd(struct analogix_dp_device *dp) >> return 0; >> } >> >> +int analogix_dp_psr_supported(struct device *dev) >> +{ >> + struct analogix_dp_device *dp = dev_get_drvdata(dev); >> + >> + return dp->psr_support; >> +} >> +EXPORT_SYMBOL_GPL(analogix_dp_psr_supported); >> + >> int analogix_dp_enable_psr(struct device *dev) >> { >> struct analogix_dp_device *dp = dev_get_drvdata(dev); >> diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h >> index 5f498ca07eea..c99d6eaef1ac 100644 >> --- a/include/drm/bridge/analogix_dp.h >> +++ b/include/drm/bridge/analogix_dp.h >> @@ -38,6 +38,7 @@ struct analogix_dp_plat_data { >> struct drm_connector *); >> }; >> >> +int analogix_dp_psr_supported(struct device *dev); >> int analogix_dp_enable_psr(struct device *dev); >> int analogix_dp_disable_psr(struct device *dev); >> >> -- >> 2.7.4 >> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project