Received: by 10.213.65.68 with SMTP id h4csp795222imn; Tue, 13 Mar 2018 23:34:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELu/sdIW0580K9fUw9wFMmt9xf0O1ZbhzMEMChelwwO6ACG0SP4u63kzB75BxOrF9u/siSD3 X-Received: by 10.99.119.9 with SMTP id s9mr1988286pgc.276.1521009288907; Tue, 13 Mar 2018 23:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521009288; cv=none; d=google.com; s=arc-20160816; b=mgxlfRZoNlprW0jxA65exrspUY/wd+9GZza9tTPy90Jb66IgKFZ+gLXA/DgE4QqnDh 5NgW3AEFLTEuH5Xi0uK+ezgsicgISoRtqCmTuRrPqot8tE1KOcScM9qtfIpeNhBRKnnx QVnqtvP8jj5oZMGKf8mODWgH5H8zo2XO5IjjRRx9Qa2F26VEr+qMO3StTtNwK99jzc/l WrPasXoiOgfn/Fw5wOCrkroNucjc27BPlNNFrdVmBHirkY6eF2rbRrrkIsnq3GuiwIba EEeoMjPJciOOKXnH+3zTG+94xbnBkElJ9brP8vU37yVZSZzBODLHiMY0H2ZbKx5ScTGM kefg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=dFyvkJ2Gb6tvA2z8Xt9WGmBg2HzeJ2D0VDECt6idRkM=; b=epVcQaJ0i1NRu5yUCxfS8R3m6vmONG5TQYpT63I+K9rllWqMca4T8EK9z2Ek/sgSpv JMKqp/I+aTlpjt5hMfbkN9MInp186sSHC84kgnHzKTgfYo/w/YMYeTDLbSoUAuGqQDUv 6MgjCYYg19rD9AQfJNiTFPcIiD/82TvqFmbCTRB24s2XnGTLP2XMYzAZK4oGvtASyGoI /r+YiOScexSnWNZuVqL7u8TcWA/aGvNE9rDovCRn3sl06LZ0nS6hfZgv92ZW7NxrIMKi 5ao8nxQfB7RteGU2Hpo0/xc5PISuOeXTn0cclDjo/JqgdhG1AZ6CQ58ws6WhdyQK9ZaO aogA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=aa2XwrWc; dkim=pass header.i=@codeaurora.org header.s=default header.b=aa2XwrWc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si1398838pge.286.2018.03.13.23.34.34; Tue, 13 Mar 2018 23:34:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=aa2XwrWc; dkim=pass header.i=@codeaurora.org header.s=default header.b=aa2XwrWc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753439AbeCNGdS (ORCPT + 99 others); Wed, 14 Mar 2018 02:33:18 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52738 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270AbeCNGdQ (ORCPT ); Wed, 14 Mar 2018 02:33:16 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 72882605FB; Wed, 14 Mar 2018 06:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521009195; bh=XI/dANJGaujdyGyame5z8bk+od25a7r/R6W72pRb/dA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aa2XwrWcfc3uU6PZ4Ss+IywcOMFbfw061iyD31Enw5gHb3+LVWrIeuvpZ6b0sRRxK qe96+VuFQaLd4Uydg5V9RQHfzm9mJLG+nhlQfLzVxHKRPan3w5qZmrU/PLKQHBh3F2 qTnFTb7JKkb6wRmIymiGAV1EhxnAYlOYZ/qdM+s8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.84] (unknown [182.71.117.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: architt@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 12C77607A2; Wed, 14 Mar 2018 06:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521009195; bh=XI/dANJGaujdyGyame5z8bk+od25a7r/R6W72pRb/dA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aa2XwrWcfc3uU6PZ4Ss+IywcOMFbfw061iyD31Enw5gHb3+LVWrIeuvpZ6b0sRRxK qe96+VuFQaLd4Uydg5V9RQHfzm9mJLG+nhlQfLzVxHKRPan3w5qZmrU/PLKQHBh3F2 qTnFTb7JKkb6wRmIymiGAV1EhxnAYlOYZ/qdM+s8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 12C77607A2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=architt@codeaurora.org Subject: Re: [PATCH v5 20/36] drm/bridge: analogix_dp: Don't use ANALOGIX_DP_PLL_CTL to control pll To: Enric Balletbo i Serra , inki.dae@samsung.com, thierry.reding@gmail.com, hjc@rock-chips.com, seanpaul@chromium.org, airlied@linux.ie, tfiga@chromium.org, heiko@sntech.de Cc: dri-devel@lists.freedesktop.org, dianders@chromium.org, a.hajda@samsung.com, ykk@rock-chips.com, kernel@collabora.com, m.szyprowski@samsung.com, linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, rydberg@bitmath.org, krzk@kernel.org, linux-rockchip@lists.infradead.org, kgene@kernel.org, linux-input@vger.kernel.org, orjan.eide@arm.com, wxt@rock-chips.com, jeffy.chen@rock-chips.com, linux-arm-kernel@lists.infradead.org, mark.yao@rock-chips.com, wzz@rock-chips.com, hl@rock-chips.com, jingoohan1@gmail.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, kyungmin.park@samsung.com, Laurent.pinchart@ideasonboard.com, kuankuan.y@gmail.com, hshi@chromium.org References: <20180309222327.18689-1-enric.balletbo@collabora.com> <20180309222327.18689-21-enric.balletbo@collabora.com> From: Archit Taneja Message-ID: Date: Wed, 14 Mar 2018 12:03:02 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309222327.18689-21-enric.balletbo@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 10 March 2018 03:53 AM, Enric Balletbo i Serra wrote: > From: zain wang > > There is no register named ANALOGIX_DP_PLL_CTL in Rockchip edp phy reg > list. We should use BIT_4 in ANALOGIX_DP_PD to control the pll power > instead of ANALOGIX_DP_PLL_CTL. > Reviewed-by: Archit Taneja Thanks, Archit > Cc: Douglas Anderson > Signed-off-by: zain wang > Signed-off-by: Sean Paul > Signed-off-by: Thierry Escande > Reviewed-by: Andrzej Hajda > Signed-off-by: Enric Balletbo i Serra > Tested-by: Marek Szyprowski > --- > > drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 20 ++++++++++++-------- > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c > index 7b7fd227e1f9..02ab1aaa9993 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c > @@ -230,16 +230,20 @@ enum pll_status analogix_dp_get_pll_lock_status(struct analogix_dp_device *dp) > void analogix_dp_set_pll_power_down(struct analogix_dp_device *dp, bool enable) > { > u32 reg; > + u32 mask = DP_PLL_PD; > + u32 pd_addr = ANALOGIX_DP_PLL_CTL; > > - if (enable) { > - reg = readl(dp->reg_base + ANALOGIX_DP_PLL_CTL); > - reg |= DP_PLL_PD; > - writel(reg, dp->reg_base + ANALOGIX_DP_PLL_CTL); > - } else { > - reg = readl(dp->reg_base + ANALOGIX_DP_PLL_CTL); > - reg &= ~DP_PLL_PD; > - writel(reg, dp->reg_base + ANALOGIX_DP_PLL_CTL); > + if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { > + pd_addr = ANALOGIX_DP_PD; > + mask = RK_PLL_PD; > } > + > + reg = readl(dp->reg_base + pd_addr); > + if (enable) > + reg |= mask; > + else > + reg &= ~mask; > + writel(reg, dp->reg_base + pd_addr); > } > > void analogix_dp_set_analog_power_down(struct analogix_dp_device *dp, >