Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp406604ybt; Wed, 8 Jul 2020 02:52:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw51BUzFnZCn170WIZbItgCnmbm6ayL9jVSn4+0GVIUTH+UBwRgSm0ptxfFvwO5dawuFchL X-Received: by 2002:a17:906:94c4:: with SMTP id d4mr49660050ejy.232.1594201963351; Wed, 08 Jul 2020 02:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594201963; cv=none; d=google.com; s=arc-20160816; b=V1PlWy0irfJfocVP7SRKO1nzo/gs32+ikeqpjszHPvlVw/uXgxVdFQIp+jeXc2ZWn2 ZzelwHxXJX5jIzNE24ZnEyNYE13M3Ta8yhYMZocG8DPR3MwZ7EzayMub2g2FYaJm43Cx C8MWHTwUT9pzSgrBuJrkeY8rHAUNyc7cWwG/SXbxTSYHIRuwuprHg8cwLdye7rtv4O7k 9SArc0VKbSoZMRvuqjv1LgUyFUcLVMpCuauLHuL3cShig+oLEAfsRnhtosFMKzcw5KCM WHdWbTv6R9L2xjsr+h3HA5qEp0zZTv+SkRAUCpnX/ZTcbHkU9VDvgWHFU+DI3k524OQ0 YUgQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iieBKdbIkdmEuMGEGprBPwP4csgir63UCa7hLiCZa6M=; b=qMc3Ah3SDr28CFPBYwX19EPye/77zHqr0hflCCob6S4RFqhP9gAOfKsmCA0L2ktL2H RpgtJ0pZ6EmABDZCO1P8Wp+UysiJ51gguTLdr1Z1PcLqr7EwPoB8GTGwtp8GafoPI64j db4p8dNPkQlYWHt4o4X2zZ5h61X/uprITRoEjVcb9iK34AWonI7i/WZmVIJZ4aGUJEP2 5HkZCJEeSELZcvH4TzilLPRnkJKMB7de2NHzZY1wi32cihnqvYbPkRs2VUbfY2tBP5hT LknxFkkL+CKVeZIqq1CSbpwxHA9oxcDvPwwrmJ8haFTL66q/gFo51+ySDlXFAieFdGmy 6zMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V0OXdErR; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si15805012ejv.385.2020.07.08.02.52.19; Wed, 08 Jul 2020 02:52:43 -0700 (PDT) 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=@linaro.org header.s=google header.b=V0OXdErR; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728269AbgGHJuL (ORCPT + 99 others); Wed, 8 Jul 2020 05:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgGHJuL (ORCPT ); Wed, 8 Jul 2020 05:50:11 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E14C08C5DC for ; Wed, 8 Jul 2020 02:50:11 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id a14so20167024qvq.6 for ; Wed, 08 Jul 2020 02:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iieBKdbIkdmEuMGEGprBPwP4csgir63UCa7hLiCZa6M=; b=V0OXdErRBTLupYqEipOINuiPtJHpcBsQM7/vHKaEFnLr1pkYpzxqJ1o5kwevmUf51v ymvzDBTQSIilevzrrRUM4+4ipAZ9ih4hVe6ZrAzFnVeVEgMQ/k2aThSZ2/nQya1S7EDH Qd2TD6ya6A/5iK9oYR34gwpj0ux70WO/xXd5/m1+qP2Qi8PJapFMg38N6nIeKQA6F44a GguvxOE49pmpAi27JrlclXO/t4Bsy9Bg8cXEh7oBOU+iCPn7jMB2DEooEv/rQcEXDzPs oAO68G4VpK+E6o+siOv3ErW+s7llta1udcMF/FyfjlLVvSsUxmrp9eFPuQcV5fdzmHkU olmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iieBKdbIkdmEuMGEGprBPwP4csgir63UCa7hLiCZa6M=; b=Y/awkqsHFZxF3vgb7oOXSivKnoiKjSKl6rXyLofTjeWVCV6HXJq3K6JrV8Ma9JxTm8 94cn/KPBk2je+P0dJyqhSYSK8vdeHMMScY3U7jTMPLebyP94zlp3+NKZ0++cPBEGd3s5 YUyF1sNaqEFgoFFxwk5iBTPlDcnaVq3VR7ZECmI6yhW816Dfw+f/07Df4KMxiUAmflHK RupGKDpIL9nAhZIe6+uGhkM26pTcixDMaIs/9uutgyz7rRZaGBSnyEzEiDVC9Cx3qPSJ +7aiQ/bhcMxShA/J81xzAcUcKV8YSaM+EdWR3lywKHCk5p64T60d6yeuiYDAs9IqVa1x q+HA== X-Gm-Message-State: AOAM530Rni9pS7OmFRxdSP3/SBt5WEzqRWzWFAH4o9FLvOI0r9K5qfdH NT0WAHw8amgZI4st+m7gC1SbYw9L94TFZiWEerxavw== X-Received: by 2002:a0c:ec04:: with SMTP id y4mr52177980qvo.148.1594201810456; Wed, 08 Jul 2020 02:50:10 -0700 (PDT) MIME-Version: 1.0 References: <20200701120402.6444-1-yannick.fertre@st.com> <3b6e02b8-0f54-4eb0-9728-b304a1aa85d5@st.com> In-Reply-To: <3b6e02b8-0f54-4eb0-9728-b304a1aa85d5@st.com> From: Benjamin Gaignard Date: Wed, 8 Jul 2020 11:49:59 +0200 Message-ID: Subject: Re: [PATCH] drm/stm: ltdc: remove call of pm-runtime functions To: Philippe CORNU Cc: Yannick FERTRE , Benjamin GAIGNARD , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre TORGUE , "dri-devel@lists.freedesktop.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeu. 2 juil. 2020 =C3=A0 14:18, Philippe CORNU a= =C3=A9crit : > > > > On 7/1/20 2:04 PM, Yannick Fertre wrote: > > It is not necessary to suspend or stop the ltdc clocks > > to modify the pixel clock. > > > > Signed-off-by: Yannick Fertre > > --- > > drivers/gpu/drm/stm/ltdc.c | 16 ---------------- > > 1 file changed, 16 deletions(-) > > > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > > index 3f590d916e91..6e28f707092f 100644 > > --- a/drivers/gpu/drm/stm/ltdc.c > > +++ b/drivers/gpu/drm/stm/ltdc.c > > @@ -506,15 +506,7 @@ static bool ltdc_crtc_mode_fixup(struct drm_crtc *= crtc, > > struct drm_display_mode *adjusted_mode) > > { > > struct ltdc_device *ldev =3D crtc_to_ltdc(crtc); > > - struct drm_device *ddev =3D crtc->dev; > > int rate =3D mode->clock * 1000; > > - bool runtime_active; > > - int ret; > > - > > - runtime_active =3D pm_runtime_active(ddev->dev); > > - > > - if (runtime_active) > > - pm_runtime_put_sync(ddev->dev); > > > > if (clk_set_rate(ldev->pixel_clk, rate) < 0) { > > DRM_ERROR("Cannot set rate (%dHz) for pixel clk\n", rate)= ; > > @@ -523,14 +515,6 @@ static bool ltdc_crtc_mode_fixup(struct drm_crtc *= crtc, > > > > adjusted_mode->clock =3D clk_get_rate(ldev->pixel_clk) / 1000; > > > > - if (runtime_active) { > > - ret =3D pm_runtime_get_sync(ddev->dev); > > - if (ret) { > > - DRM_ERROR("Failed to fixup mode, cannot get sync\= n"); > > - return false; > > - } > > - } > > - > > DRM_DEBUG_DRIVER("requested clock %dkHz, adjusted clock %dkHz\n", > > mode->clock, adjusted_mode->clock); > > > > > Hi Yannick, > Many thanks for your patch, > Acked-by: Philippe Cornu > Philippe :-) Applied on drm-misc-next. Thanks, Benjamin > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel