Received: by 10.223.185.116 with SMTP id b49csp6282001wrg; Wed, 28 Feb 2018 06:57:58 -0800 (PST) X-Google-Smtp-Source: AG47ELtdzVEQOW10H44CGqBwJG1GyZeLQ+PfXWBhS4wzdHynB4x/SKc+lBaAmQ+89dAF/4tvGyOg X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr12844373pld.143.1519829878588; Wed, 28 Feb 2018 06:57:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519829878; cv=none; d=google.com; s=arc-20160816; b=mn0Esrhf4aoj660U79Dk8VR75hI/3QdaS68BTsns7szmi+B+Z6BGZoPz1f3HID0boM PL0nqH7RKmSGrE3Lskg6E2DfHDPuYLOuBBjyvuLxyvIzF+XKlgrj1D6DRrktiYxcAvCf pGpoo95oAX3SpCipibHtnYOcSmrOtEn6IUXr99RL0JTqDuDZ7TVvHc7U8Fl5s8xLM3Ba kmSudagFyo8v0LeG1b4N9Ey/omFKK7mBIeU8Ypxwdo7FxpNIZNI02ylAPIWafIyUVeCb 71/Ly06c+O4ZOwt5dhRwqVoaQ74KcV2N7gHfAXZtlHSJ7CY5CLqj4MMuGh3gMR+iDLl9 gqJg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8Ja3mTybod113QTtv/sDnhAACKDRtSa3MyrOuXgUpco=; b=efjkBg9MEVwobo9QS2NaDTqjILz8Z0GjpTNORPJ3fX/X5lWQk1CtVbbMIUXufLhdvd mtUx/fXGPFzQSKXf3yFymSEwHowDDGVTrNjSx/ZPCRoQ3UeKriABThanHzbv52eP14jL YkciP4L1U8f0kcA1gwiw9HcqcXEY1i1urcyq2NrkizZW3ggKnAUrzG3izHmL4NGtieIu Ik/YFXsYNMV8eE6cq4BDNqA0FPqjseP91juX96hTTOCdVvFuG1ybj6hBHzJ1+EofhDl6 iRTuuqMLSZ6GAwus9+B2P4k27BYOIXj8EU68VXao17UUNfkLM74WaGiAqHP2LCecAfi1 MXCw== ARC-Authentication-Results: i=1; mx.google.com; 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 m39-v6si1410607plg.151.2018.02.28.06.57.43; Wed, 28 Feb 2018 06:57:58 -0800 (PST) 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; 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 S1752814AbeB1O43 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Feb 2018 09:56:29 -0500 Received: from gloria.sntech.de ([95.129.55.99]:56694 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbeB1O4Z (ORCPT ); Wed, 28 Feb 2018 09:56:25 -0500 Received: from ip92343f6b.dynamic.kabel-deutschland.de ([146.52.63.107] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1er39R-00079g-4B; Wed, 28 Feb 2018 15:56:13 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Marc Zyngier Cc: linux-rockchip@lists.infradead.org, Thierry Escande , Archit Taneja , Inki Dae , Thierry Reding , Sandy Huang , Sean Paul , David Airlie , Tomasz Figa , Enric Balletbo i Serra , Zain Wang , Lin Huang , Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yakir Yang , =?ISO-8859-1?Q?=D8rjan?= Eide , Mark Yao , Haixia Shi Subject: Re: [PATCH v3 05/43] drm/bridge: analogix_dp: Don't power bridge in analogix_dp_bind Date: Wed, 28 Feb 2018 15:56:12 +0100 Message-ID: <7345252.P7zEYUIqsL@diego> In-Reply-To: <2c89da60-3c54-a8db-db9d-6079c51ed29d@arm.com> References: <20180130202913.28724-1-thierry.escande@collabora.com> <2776489.2p7NH6SBud@diego> <2c89da60-3c54-a8db-db9d-6079c51ed29d@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 28. Februar 2018, 15:54:30 CET schrieb Marc Zyngier: > On 28/02/18 14:37, Heiko St?bner wrote: > > Am Dienstag, 30. Januar 2018, 21:28:35 CET schrieb Thierry Escande: > >> From: zain wang > >> > >> The bridge does not need to be powered in analogix_dp_bind(), so > >> remove the calls to pm_runtime_get()/phy_power_on()/analogix_dp_init_dp() > >> as well as their power-off counterparts. > >> > >> Cc: St?phane Marchesin > >> Signed-off-by: zain wang > >> Signed-off-by: Caesar Wang > >> [the patch originally just removed the power_on portion, seanpaul removed > >> the power off code as well as improved the commit message] > >> Signed-off-by: Sean Paul > >> Signed-off-by: Thierry Escande > >> --- > >> > >> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 10 ---------- > >> 1 file changed, 10 deletions(-) > >> > >> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > >> b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index > >> cb5e18d6ba04..1477ea9ba85d 100644 > >> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > >> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > >> @@ -1382,11 +1382,6 @@ analogix_dp_bind(struct device *dev, struct > >> drm_device *drm_dev, > >> > >> pm_runtime_enable(dev); > >> > >> - pm_runtime_get_sync(dev); > >> - phy_power_on(dp->phy); > >> - > >> - analogix_dp_init_dp(dp); > >> - > >> > >> ret = devm_request_threaded_irq(&pdev->dev, dp->irq, > >> > >> analogix_dp_hardirq, > >> analogix_dp_irq_thread, > > > > Not 100% sure here, as the driver has the request-irq + disable-irq hack > > here. So a pending interrupt could possibly fire between request and > > disable. > > > > Right now the block should be on, but can it still handle such an irq > > when the power is removed? > > Probably not (see below). > > > So before removing the power here, we might want something > > similar to what Marc posted for the vop [0] for the analogix-dp? > > You can do that trick only if the interrupt is not shared. In the VOP > case, it is shared with the IOMMU, which makes it more... interesting. Yep, which is why I mentioned it, as the dp-irq should not be shared I'd think :-) Heiko