Received: by 10.192.165.156 with SMTP id m28csp446668imm; Mon, 16 Apr 2018 03:04:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48IRJ0ph2Bs1kA/0ZzZ8Bs9H0cDsRDbwhKUXNU7nYEvogmNM4w9d0eZjHOMrBwlLXstyVQ+ X-Received: by 2002:a17:902:6a01:: with SMTP id m1-v6mr8295690plk.220.1523873053733; Mon, 16 Apr 2018 03:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523873053; cv=none; d=google.com; s=arc-20160816; b=bQqiDRPRM+pVW1pqjc38EzzPjmnFLQts8abHu8iFueXWTqBu2iSxxubFzeCoGSGtAI 5X2gCNcdWrOZ2rDQftSTtDRKEEewv3HG5XJNegP8dRR+NXvqP9pTYyiDoOA9SVLU+63g j+25cfH2cbV7Xp/pdqzMH/j0qq+KzRojlx9hKmrTw7BdJgOhyQDGdePeqv0qwMJwjheN z2akf3+XcRQ+1vtl8xTmwbjp48w/c+rMIHeY0xDa4AAb+qP+cWYbVsGeVaEE3AapqQRP qRtTaxOO4v3QbT3/3rHVQZIXrlQ6DPbbjjTe2By39RBrqpJh/LWSzWn1IxJLrd2AqS9g CSDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=KUMA1suO91mSjtrArV0ibUwWd6u7iq8cfGHgS7zfVhQ=; b=rzj4gnk9GhGYGH5oRuaDzCOE38R5jYbAR6wVw5mgwN2hAQVPgDBbaliOHI1rJd8Yap mWff0uNDx1Ib0331yzjIiSzOiIkDA3+U/0euFBrwazJnAJB5sffIQUkW7MljzT2YePSx YnA4snNH+laN8CH8Crd+jOJevSlpTKb4XyJM4Gz6jL2L5HNU2RZkV0kkkIGTk/8v+FeP pPq7u99AWk0Vult36QwtO+SwLEmNOBgaLQbkkO3+rVsqZP0JeVjX89V+Ohju6ory/ijU 8K3eK1BrRTpwxjzzUUnK+wQdRN+WTKtEwBhNHOpmGCpWs3G4XCX6GOvzN9YN5b3GJebN BRrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=jQ077PFA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n71si10460949pfk.277.2018.04.16.03.03.59; Mon, 16 Apr 2018 03:04:13 -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=@samsung.com header.s=mail20170921 header.b=jQ077PFA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753090AbeDPJxx (ORCPT + 99 others); Mon, 16 Apr 2018 05:53:53 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:49093 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbeDPJxv (ORCPT ); Mon, 16 Apr 2018 05:53:51 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180416095348euoutp0109b78db1acfed98d462dd875f086fc8e~l4eZTIhZt2540825408euoutp01O; Mon, 16 Apr 2018 09:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180416095348euoutp0109b78db1acfed98d462dd875f086fc8e~l4eZTIhZt2540825408euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523872428; bh=KUMA1suO91mSjtrArV0ibUwWd6u7iq8cfGHgS7zfVhQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=jQ077PFA4vQYqF8NGrrquk1vdhiM8nZrTDw5Xfs9CHDY/2eiv9gbPzMEzTBQiEQJ9 Lqn/vL6UQte5qEA4rx3uWhL50LnLywWVK/AMql+AdEh/rDf0LQKhvfdFL2tzp/jy8f QGb267tCOggJq0Cu8RlhtvwScOp3qdCTHZY9iZOw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180416095347eucas1p197ccf331c36b554aebe95bbf535b7fe6~l4eYZHPqH3094130941eucas1p1V; Mon, 16 Apr 2018 09:53:47 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 73.20.17380.AA274DA5; Mon, 16 Apr 2018 10:53:46 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180416095346eucas1p1b6b2c0a4fdc7f2a9d587bb39202e13b1~l4eXdRak71993719937eucas1p1q; Mon, 16 Apr 2018 09:53:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180416095346eusmtrp11e765876ab573e9a85d043fc769fff39~l4eXNbh8I0328103281eusmtrp1W; Mon, 16 Apr 2018 09:53:46 +0000 (GMT) X-AuditID: cbfec7f4-713ff700000043e4-84-5ad472aac425 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CF.3D.04183.9A274DA5; Mon, 16 Apr 2018 10:53:45 +0100 (BST) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180416095344eusmtip113b28e21871ec34bbbed7dfb02c1bd30~l4eV-_DOC1173411734eusmtip1P; Mon, 16 Apr 2018 09:53:44 +0000 (GMT) Subject: Re: [PATCH v6 30/30] drm/rockchip: psr: Remove flush by CRTC To: Enric Balletbo i Serra , architt@codeaurora.org, 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, 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 From: Andrzej Hajda Message-ID: Date: Mon, 16 Apr 2018 11:53:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180405095000.9756-31-enric.balletbo@collabora.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02Sf0zUdRjH+3x/wzj6elj3ZE3nEU3b0mrWnk1zWLq+rs3VP9jY+nHoN3Ry p7sTzZqG5/QQ+WH8MDgKayLhRYvdnXKczTPQDoQvCJiAeRwhKUJ0JefVhWLcfW3x3+t5P8/n eZ73s49Aa29yC4Stpp2y2WTI0XOJzJkfo13POcxXMp9XbKuwqKudQmv+JItK3Q8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9Nu+2dNR8uPu28fkFFyYWiZhtpkcX/APh4f0yMAwAA X-CMS-MailID: 20180416095346eucas1p1b6b2c0a4fdc7f2a9d587bb39202e13b1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180416095346eucas1p1b6b2c0a4fdc7f2a9d587bb39202e13b1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180405095121epcas3p36dd90bcde69f6502ed09d9eb96545744 X-RootMTR: 20180405095121epcas3p36dd90bcde69f6502ed09d9eb96545744 References: <20180405095000.9756-1-enric.balletbo@collabora.com> <20180405095000.9756-31-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.04.2018 11:50, Enric Balletbo i Serra wrote: > From: Tomasz Figa > > It is not used anymore after last changes and it was not even correct to > begin with as it assumed a 1:1 relation between a CRTC and encoder, > while in fact a CRTC can be attached to multiple encoders. > > Signed-off-by: Tomasz Figa > Signed-off-by: Thierry Escande > Signed-off-by: Enric Balletbo i Serra > Tested-by: Marek Szyprowski Reviewed-by: Andrzej Hajda  -- Regards Andrzej > --- > > drivers/gpu/drm/rockchip/rockchip_drm_psr.c | 35 ----------------------------- > drivers/gpu/drm/rockchip/rockchip_drm_psr.h | 1 - > 2 files changed, 36 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_psr.c b/drivers/gpu/drm/rockchip/rockchip_drm_psr.c > index 1bf5cba9a64d..b1988ac758d5 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_psr.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_psr.c > @@ -40,23 +40,6 @@ struct psr_drv { > int (*set)(struct drm_encoder *encoder, bool enable); > }; > > -static struct psr_drv *find_psr_by_crtc(struct drm_crtc *crtc) > -{ > - struct rockchip_drm_private *drm_drv = crtc->dev->dev_private; > - struct psr_drv *psr; > - > - mutex_lock(&drm_drv->psr_list_lock); > - list_for_each_entry(psr, &drm_drv->psr_list, list) { > - if (psr->encoder->crtc == crtc) > - goto out; > - } > - psr = ERR_PTR(-ENODEV); > - > -out: > - mutex_unlock(&drm_drv->psr_list_lock); > - return psr; > -} > - > static struct psr_drv *find_psr_by_encoder(struct drm_encoder *encoder) > { > struct rockchip_drm_private *drm_drv = encoder->dev->dev_private; > @@ -173,24 +156,6 @@ static void rockchip_drm_do_flush(struct psr_drv *psr) > mutex_unlock(&psr->lock); > } > > -/** > - * rockchip_drm_psr_flush - flush a single pipe > - * @crtc: CRTC of the pipe to flush > - * > - * Returns: > - * 0 on success, -errno on fail > - */ > -int rockchip_drm_psr_flush(struct drm_crtc *crtc) > -{ > - struct psr_drv *psr = find_psr_by_crtc(crtc); > - if (IS_ERR(psr)) > - return PTR_ERR(psr); > - > - rockchip_drm_do_flush(psr); > - return 0; > -} > -EXPORT_SYMBOL(rockchip_drm_psr_flush); > - > /** > * rockchip_drm_psr_flush_all - force to flush all registered PSR encoders > * @dev: drm device > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_psr.h b/drivers/gpu/drm/rockchip/rockchip_drm_psr.h > index 40e026c14168..860c62494496 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_psr.h > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_psr.h > @@ -16,7 +16,6 @@ > #define __ROCKCHIP_DRM_PSR___ > > void rockchip_drm_psr_flush_all(struct drm_device *dev); > -int rockchip_drm_psr_flush(struct drm_crtc *crtc); > > int rockchip_drm_psr_inhibit_put(struct drm_encoder *encoder); > int rockchip_drm_psr_inhibit_get(struct drm_encoder *encoder);