Message ID | 5b434a3d8b2968552e9bdff9eb5c78266c3bb28b.1533743954.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 B75D914C0 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 11 Aug 2018 12:08:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92F532A157 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 11 Aug 2018 12:08:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86D312A6F5; Sat, 11 Aug 2018 12:08:53 +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 3446A2A157 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 11 Aug 2018 12:08:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF33A6E1ED; Sat, 11 Aug 2018 12:06:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40047.outbound.protection.outlook.com [40.107.4.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 867D289E08 for <dri-devel@lists.freedesktop.org>; Wed, 8 Aug 2018 16:09:35 +0000 (UTC) Received: from localhost.localdomain (95.76.156.53) by VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Wed, 8 Aug 2018 16:09:31 +0000 From: Leonard Crestez <leonard.crestez@nxp.com> To: Stefan Agner <stefan@agner.ch>, Marek Vasut <marex@denx.de>, Shawn Guo <shawnguo@kernel.org> Subject: [PATCH v4 3/5] drm/mxsfb: Add pm_runtime calls to pipe_enable/disable Date: Wed, 8 Aug 2018 19:09:00 +0300 Message-Id: <5b434a3d8b2968552e9bdff9eb5c78266c3bb28b.1533743954.git.leonard.crestez@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1533743954.git.leonard.crestez@nxp.com> References: <cover.1533743954.git.leonard.crestez@nxp.com> MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: DB6PR02CA0004.eurprd02.prod.outlook.com (2603:10a6:6:15::17) To VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a3e8284-ceb8-4fbe-fc31-08d5fd49543b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4301; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4301; 3:HCY3JrMiwzZGqdMU+3Ofd4ivnwTTBrgXVR+/+bhe7oOkeScxDdhvswd6FYI7QcIJmfoIL7w78mv76k4+CsfJAJfzfMVvHNeA/Kae0ZCt4v7lWspkcjQz7ZdauDCGgSFE80BrvwKefVHKPohY4ixyDkZFcrIVK56L8sqE2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YmkpmUqzJn4xZDQiO8m2SkPfYPkWxFUDF6NBNfVmpXHTh01YIR0jMZ8xzbDOUxP3uPC6yAxJhTpN1lGpSKwa4oZFFrlZM+a66sUAE4WEphgjxrsmTjkgCyRaePrfmNXa767KiaSJLpeodafiBb8AGzvAzdKa1gG2Py1B7tiHNHSLf/mWbvm+Y; 4:EIGGgQEOVtLQefZV6qnkvCEpnNSg/DGJD+q130izkHPJ7ZPD1dOhbO2hV6tJ1+kfrDMyWI3YQ8N4ob0ICOcS65MjK5jzEir6wbR2I/TYe61sZuezHdvSMcf1bhFjNx2HltdyexoS3Ik+gpVlfWbX6CCNJvYgqJennZ8xX0drSyYdNjpaKYQYZ2B2yDzlxzIB2BFVxqNUrvoSbVdGaVyNMgs0i98DyJnEX8+n7wTEU1v29ATE19PY2zovlrVWNyg14zg771CRQ612GGKmT2bvz0bg8rcxP+UZbZDxWs615+8rxACbXdMu3UOx6bPMBjnP X-Microsoft-Antispam-PRVS: <VI1PR04MB4301F83A44424461333A1D5CEE260@VI1PR04MB4301.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:VI1PR04MB4301; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4301; X-Forefront-PRVS: 07584EDBCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39850400004)(376002)(396003)(346002)(366004)(136003)(199004)(189003)(66066001)(7736002)(76176011)(47776003)(6512007)(81166006)(68736007)(81156014)(25786009)(8676002)(6666003)(110136005)(54906003)(36756003)(14444005)(305945005)(106356001)(105586002)(53936002)(50466002)(6486002)(97736004)(48376002)(86362001)(4326008)(575784001)(3846002)(5660300001)(26005)(486006)(16526019)(186003)(316002)(2906002)(16586007)(6116002)(6506007)(44832011)(478600001)(8936002)(956004)(11346002)(2616005)(50226002)(386003)(446003)(476003)(51416003)(52116002)(118296001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4301; 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; VI1PR04MB4301; 23:a6W7MBoGtyGyLRWRsAfUmXb44FY52HCrj7WXmy1z9?= OjDxRMWtGzvswikUOL2Fk1JIyLVWHx+y+60czaNpUENiCjdOiTJKfgnStAr6Gi8L2RBtsfFzjsF124MqYtYqmOHYiJQJC/Cpn8oJHcxFlQG1M0J0lGnDNH/eQyROitQBarTlQZarN7HsFFv8Fpyyt1bdJzxA/m5jWzXILnr+rNlBUzI6U9iGZyKkbveF27fByo4rewVvvGQ0sqcFPvVcPgmXBbCrt466iykG2KJgW/TdrSo+qGcgCCZ56xIAGmM0XmR1vzNLOUxyeUslaw8W9sLZuJ6lmCTnbVcEgL0nMPYTouplPDCQe6zjn1n9wF2RAQS6XnCFDK/3pnj48/Wx24bW6vwONTEG/k4zXOGkzQuJt+w6LBeUrW647uclGHukyad4BtXTTpRh8x5Un7iO/OJXBSuqjOwc2QtmRWDZX39ThZWMkJxurBN2VQkxt10g1X05j8GF22I/d4p6X7IjETeONGyR0SW/0S3tHJ4NDwgFbezjdw1EIEe/5ZXT5kXa1TnJ67k9zm2Ym5uQ0lZI+C2lhrCXv4XXtZPVyCFjk8k2cESQYNqbpI1c8Yv6BDoM9I0PY1R0kiOj0+RtvXOv7pkwQvvSHzVXjrPv0ijDLs8o/AgcO2O+O1isgzTb0uxNbuv80qe+jhPwUcK595D6LkMyuXBPdvSspYCKe+h5s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xneuGrhE7jwEuCfjQL26A6X39nXpNaHyCEBnedAkJDaERd2tq6rGYkZVtmRG6uSDkJcSKi63ReBfh2giYmcoSfDuioSNij8G73Zb04xi/KaPyA6+LKzrmRRUVIjopIe7VydJPgTxdHMurlru9oXBhfZ8AIl0e6m7NADg6ikNDjbHpA1HvI+m+cXQoJJZNZ/WBd1IOGX4kSTt/JaEQ1ty+WdQmBRGT3nTLmnUB24WaBAdImu7NJoARkqfPZsLUKY+PADMJ1TsKysREJEkMnNkAtis6CeUGRnQo56PpUyk9CKRnZAtm2rUfgYvxJyDs/Gi3Nqix7gKEn6AHY3+rEjh7syk8N2iyeEY8sPrVXK5HhEcKFkRAj75hrQ8H8ImRSQ1brrwblkaQy+Mbgg==; 5:VBOXR5MhUkQDKl+1q4oYN46BYpnINq1R/oDi/IDEhzITfYZF/GmlQPW7UU7fEdDLIKStpOHzqOInQMHYkHFwlmkFh5NOAR+IUgU3oCA0IO9nE+cDaoFvky8V+Zzx5TpmvCdz0DoH50Y5CpD9MJpjgSBZxzfJGNvtRJsIQSqYM8g=; 7:ULHRbynEAfEdJJlDFeTstpfFeZ6dF1Cpp2otlxr8vzdgbWD1O45fYDkO5o6l4TS3EZKp00Ig2O4fastr2OWETWfSJVIIItXR9K+dXHFpb7upgJBNdjle71/mM3OkoJAWZy8RWf3ufTFpPpHY1xPQmf8Iz4fdPfERt2MOY7quCIpYqVWMLlZaocvdnZSoByFDUTHQwfe9gt84plSy0iqN5SJzlWI8Gk0UKLcPUedYeiHouQMassFujXruC81/gpON SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2018 16:09:31.7325 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a3e8284-ceb8-4fbe-fc31-08d5fd49543b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4301 X-Mailman-Approved-At: Sat, 11 Aug 2018 12:05:13 +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: Dong Aisheng <aisheng.dong@nxp.com>, kernel@pengutronix.de, Anson Huang <Anson.Huang@nxp.com>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Fabio Estevam <fabio.estevam@nxp.com>, linux-imx@nxp.com, Robert Chiras <robert.chiras@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) {