Message ID | ee88148399c63494cda4129b05444b0ac331b7a7.1537191359.git.leonard.crestez@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E1A5F13AD for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 18 Sep 2018 09:58:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D00EC29C4C for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 18 Sep 2018 09:58:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3D3829C66; Tue, 18 Sep 2018 09:58:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 545B729C4C for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 18 Sep 2018 09:58:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 834106E3B1; Tue, 18 Sep 2018 09:57:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30041.outbound.protection.outlook.com [40.107.3.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0CE2188FE1 for <dri-devel@lists.freedesktop.org>; Mon, 17 Sep 2018 13:43:05 +0000 (UTC) Received: from localhost.localdomain (95.76.156.53) by AM0PR04MB4290.eurprd04.prod.outlook.com (2603:10a6:208:67::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Mon, 17 Sep 2018 13:43:02 +0000 From: Leonard Crestez <leonard.crestez@nxp.com> To: Daniel Vetter <daniel.vetter@ffwll.ch>, Philipp Zabel <p.zabel@pengutronix.de>, Marek Vasut <marex@denx.de> Subject: [RESEND 3/5] drm/mxsfb: Add pm_runtime calls to pipe_enable/disable Date: Mon, 17 Sep 2018 16:42:13 +0300 Message-Id: <ee88148399c63494cda4129b05444b0ac331b7a7.1537191359.git.leonard.crestez@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1537191359.git.leonard.crestez@nxp.com> References: <cover.1537191359.git.leonard.crestez@nxp.com> MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: HE1P190CA0028.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::17) To AM0PR04MB4290.eurprd04.prod.outlook.com (2603:10a6:208:67::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c412547d-8a03-47f3-9c83-08d61ca37de6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4290; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4290; 3:zseh1xHD4uJ5TpV7bINKtL9vAnbz0KdO1yfwh6aXnTYv6c5ajBxn/5CuT3tHMFW5Su0jwroOvsNncnj4AzyfLHGeKcnjibOgT9I1y+yEEphsKuZhOuz3/f/vidfI97yDO/0GihMlxjdh5Kabhv76o0htDa8Cd3802QPpc2E5+mV21s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gDUunoosLB3e6563WzI54ggAjiwlu9JrQsRaYk6dHxBbEKD00TKW/MTUSgTdeTvsU/QvS2U6XqXL/1kQq8ZSv7G1LFAXZZ//ss7JxvmEjGe6zwlXbQegQBOsCmt+2jyYllEg3nNsN+T4EKWVRZRM+ybcctnd7P1fnc; 4:6SWPbcFpGYeeNTFWgJUP+kp3GBmcdx4AsPK8lRUkacCoSBDXUnbMugmK8e6rj4EU2DUCGqq77AGg2EM/Jb6NLZyvmhKnfjb4x92V5hIrIP2o8TMpEUQp0Lvqq+vG4Nsd4/hRikM9uGkMMLSK2gldykE9GzJZkp5WHq6n7OwDsL1VTMDJRxLi+W57aJ19XV9lRej+fOlke7Cglh7WLFQYhrQuaesUvYH3nxpTbgB22eB8xr+4BnlDG+DXy8tTebFpXm6YYQeciFgXCshc9ad8a9YyAYcrpKSR2lszNZUywZuPXH93lCGjfTWv7Jl6Rv5c97fVgTXYQ23MnSkS4RjegOV4E32cgY9KfqWYd/ViCQc= X-Microsoft-Antispam-PRVS: <AM0PR04MB4290628054E5DFE8B8390F50EE1E0@AM0PR04MB4290.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(269456686620040); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231355)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699050); SRVR:AM0PR04MB4290; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4290; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(396003)(346002)(136003)(39860400002)(366004)(199004)(189003)(6506007)(81166006)(81156014)(8936002)(14444005)(50226002)(478600001)(16526019)(186003)(106356001)(3846002)(6116002)(105586002)(97736004)(47776003)(26005)(68736007)(50466002)(48376002)(66066001)(6512007)(2906002)(5660300001)(118296001)(11346002)(446003)(386003)(110136005)(4326008)(7736002)(6666003)(476003)(956004)(2616005)(54906003)(51416003)(16586007)(575784001)(86362001)(305945005)(6486002)(44832011)(25786009)(53936002)(36756003)(8676002)(52116002)(486006)(69590400006)(76176011)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4290; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4290; 23:MOUwt4EzFXlNedLc2KbGOzAFr6IyNoWIBGb1O6gCm?= 2UtXzf623aT6yqEy+hqKmMXvuPy10oG4fHkCYcWstvrnx3lqs2I6PCPHf/LV7kcfCP15bscm4EflR7jD/y9fmgygu76l02zyND0NrenBtGVE8ihG70KLGbLCtKVVq2pcRTXmMrHfaSCWT0sxcbpKIHHJANfqjFGQWCNsmFlPM1ZuTDirtQwJbs5slI1ztMWdD+InfhXLFav9ZGW3/pNSnwasl0Y8743KQ45JAR8UYqaxNEnFXFvgNTkUoMX8l1YwbBRy2a/TeLdYBIDY+4cIWp98BudM1/4g2QXZTZ2wUxAJYZsRtay8xs+vxKXwlN2PyZeZTWCa189mAlMuzC6EKSge9Qz5F+AbN6sCj6w8eP9eQ5/idRSfJxUD6qYqnygljhqKgISNnwJwZ9AcG+3+luMG9fo5LtQKL6u3Cpjz6T3KF2jraYfcWhV/L1UCuGLr/2F3Ba0VUAuMrd0LiVEopTsRowwffE1/OlXcW3r+zgO+GjvKTWZpybBCSOpV+O9iy6eVoIcTAnopEzU0vhH4+ZexKlbr8qghELw6oy39VIp/M08EJCi1ep6Mr29trkZZe0SsJI8guDcKRGnErJZkvwDsDjnDhb1NsTLp07VU7tVckFknwp9pyqas794dhSjmhv8f8spXSNkaLRA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6:KKJZM7kT7tsdbGnuIRgPsQl39kgYQmopEMDPJ/LVlZ+O9jTL0VaC/5EIrzhbeNasEt7ehCEq8Ixnir/N5+yngYG4IjzrUXkqgTvqlRDSpt4xKE2eCqUwAyb/hkqVdHltEIbJZSDwPOWjzRuT6A0zuT33WupEbeAmmDgGFPHiEE6wRC7kokZakN+9PjX4p9yey0lT4e8s5qrO1r8JemevkWpTz9MSs5EZFV0kRDysBUCS1Jci396o2Jv7DAwXeIrHfC0kndNpI8+PXrP1tUfpkIgol7QAl3cruYmuLF9Yn/VIKmX4djTuX5vx566GVo5Cct4UUc08w+v8QQhtFEK18MBxEYHhicbnMB7I/HotQfM1zhgsNabohDTdlMN+FclDtu5O9iofP5OYTc0IqUbNmugqxJlMa2H0rPwGDyMjdQcUg89/uZpeQRi9OcBLdV5rSWf37buGZRmFjsQwFApjrw==; 5:wO+0W+cq4eciUwJnhc9AtD5c4tMvFh7bQPQM2YLC4cXYOBDD9p4N0swBblSLAagc0WcBZASTwR4YuuiJvnpD+acpheeBEIxCTQUuweY2/go5ph8Fb/HiHmQnZ0GPxNIMdqAuWH2V1XtLudFVkmafigXsdaZ+rrUx6D4QeXPCl6c=; 7:VsnsnLDNWbU40W8SJ4IKrMigjhQIU+fZIcEf6noRx9AxyZwQVKqksYZKSb+gfKMk8CBFhOnjasmUy58OPADCiaejgfZelKLuyZ7Md/eIPk/dCsDKU0f0tBipJkIQKEo1ihTXOrPyD9gVIrU83ToIRdAUeNPax5K2uaEzTPb5PvKozAIosExypXtsK2OjUJV3AKr681z1VpDORJa+4STzHRY8p7fTY8ayvx+c/R3SgrpWwV2phcH6Cgk1HMfCNx7i SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 13:43:02.3006 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c412547d-8a03-47f3-9c83-08d61ca37de6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4290 X-Mailman-Approved-At: Tue, 18 Sep 2018 09:57:51 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Anson Huang <Anson.Huang@nxp.com>, David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, Robert Chiras <robert.chiras@nxp.com>, dri-devel@lists.freedesktop.org, kernel@pengutronix.de, Fabio Estevam <fabio.estevam@nxp.com>, Shawn Guo <shawnguo@kernel.org>, linux-imx@nxp.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
drm/mxsfb: Fix runtime PM for unpowering lcdif block
|
expand
|
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index ffe5137ccaf8..68d79f5dc0d3 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -101,23 +101,27 @@ static const struct drm_mode_config_funcs mxsfb_mode_config_funcs = { static void mxsfb_pipe_enable(struct drm_simple_display_pipe *pipe, struct drm_crtc_state *crtc_state, struct drm_plane_state *plane_state) { struct mxsfb_drm_private *mxsfb = drm_pipe_to_mxsfb_drm_private(pipe); + struct drm_device *drm = pipe->plane.dev; + pm_runtime_get_sync(drm->dev); drm_panel_prepare(mxsfb->panel); mxsfb_crtc_enable(mxsfb); drm_panel_enable(mxsfb->panel); } static void mxsfb_pipe_disable(struct drm_simple_display_pipe *pipe) { struct mxsfb_drm_private *mxsfb = drm_pipe_to_mxsfb_drm_private(pipe); + struct drm_device *drm = pipe->plane.dev; drm_panel_disable(mxsfb->panel); mxsfb_crtc_disable(mxsfb); drm_panel_unprepare(mxsfb->panel); + pm_runtime_put_sync(drm->dev); } static void mxsfb_pipe_update(struct drm_simple_display_pipe *pipe, struct drm_plane_state *plane_state) {