From patchwork Wed Mar 8 14:12:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9611291 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4CDA6046A for ; Wed, 8 Mar 2017 14:19:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4484628527 for ; Wed, 8 Mar 2017 14:19:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3928028574; Wed, 8 Mar 2017 14:19:45 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3CEA28527 for ; Wed, 8 Mar 2017 14:19:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753030AbdCHOTo (ORCPT ); Wed, 8 Mar 2017 09:19:44 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33583 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752985AbdCHOTn (ORCPT ); Wed, 8 Mar 2017 09:19:43 -0500 Received: by mail-wm0-f65.google.com with SMTP id n11so6315043wma.0 for ; Wed, 08 Mar 2017 06:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WQBldJcxtrMUsv0ObTEQscpAGTIozKaXsxV0R5x+JoI=; b=fNKbznitKdc1A60UVEKPD8z/h4gmYueBXBk2+nHDrYHopnL8xutDBTKo6tLxTIjCRz JR7xnN6hvopMA/lqoKXsPl9SzQ25LMaBDE9T1IXde5ZucgQJpByqgMcKwfgFeKZ/8u5e saGOZFevM6bD8Rco6DNZRiFL7xGGCjUphALz4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WQBldJcxtrMUsv0ObTEQscpAGTIozKaXsxV0R5x+JoI=; b=WbnYeYdNwQ6iSKZ5uGcgFdwf+TRhG+C/plyghxSz0WAYYKRNFnsDMBQyIIUkdZQUV7 FD9URiyAYKQ6SuM5lXQ+79H803yvXEdkizNqDbvBj/ar/o4Pnx9OFqLNAvMqP0UA6ygN 5WLwozTb9T+3n6c7CzSVS9jQ2DKIyOdRgyvo7OBCgmneo57pN4GiPuWY03G+mANAFtjE gnv9tIizDSgfSkA0l6zef/oZZA21kUhebGx6H4+U3Uuy2X5/v70rKa3+uyZOtle4XynJ ciHTbiczkWtfdW3I18e231aLDNjdVQA/v90BAdij3w96Ysz+4WcoxQ3KdrMSRJ22Hzmz bTMg== X-Gm-Message-State: AMke39kCMjaSg3HeagFzFmlDABM/NQ0MQ/PKwVSN8czyNtvaXrEFnJc7UP/bq/C6xvcKnA== X-Received: by 10.28.236.209 with SMTP id h78mr24506416wmi.97.1488982397294; Wed, 08 Mar 2017 06:13:17 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:56c9:0:decc:6e78:7e96:b452]) by smtp.gmail.com with ESMTPSA id m186sm17012515wmd.21.2017.03.08.06.13.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Mar 2017 06:13:16 -0800 (PST) From: Daniel Vetter To: DRI Development Cc: Intel Graphics Development , Daniel Vetter , Rob Clark , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Daniel Vetter Subject: [PATCH 13/24] drm/msm: switch to postclose Date: Wed, 8 Mar 2017 15:12:46 +0100 Message-Id: <20170308141257.12119-14-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170308141257.12119-1-daniel.vetter@ffwll.ch> References: <20170308141257.12119-1-daniel.vetter@ffwll.ch> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I didn't spot anything that would require ordering here (well not anywhere else either), and I'm trying to unify at least modern drivers on one close hook. Cc: Rob Clark Cc: linux-arm-msm@vger.kernel.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Daniel Vetter Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 604331f3cf39..44774f02ef0e 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -540,7 +540,7 @@ static int msm_open(struct drm_device *dev, struct drm_file *file) return 0; } -static void msm_preclose(struct drm_device *dev, struct drm_file *file) +static void msm_postclose(struct drm_device *dev, struct drm_file *file) { struct msm_drm_private *priv = dev->dev_private; struct msm_file_private *ctx = file->driver_priv; @@ -813,7 +813,7 @@ static struct drm_driver msm_driver = { DRIVER_ATOMIC | DRIVER_MODESET, .open = msm_open, - .preclose = msm_preclose, + .postclose = msm_postclose, .lastclose = msm_lastclose, .irq_handler = msm_irq, .irq_preinstall = msm_irq_preinstall,