From patchwork Wed May 22 15:46:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10956145 Return-Path: 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 8D91313AD for ; Wed, 22 May 2019 15:48:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EFE120134 for ; Wed, 22 May 2019 15:48:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7373D288C6; Wed, 22 May 2019 15:48:33 +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=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UPPERCASE_50_75 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 2149128C1E for ; Wed, 22 May 2019 15:48:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 02FD889B3B; Wed, 22 May 2019 15:48:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D1E489B3B for ; Wed, 22 May 2019 15:48:29 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id j187so5028258wma.1 for ; Wed, 22 May 2019 08:48:29 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=4ymCN4zK26ZTUFCEXX7eQSW+kelBNJC5uXfNvBUA89w=; b=jmtSKRfGHjdqiYDtPJScn4QaG4tWvlRcDiH7ndsaJC/j7zi20Uo0/cA+SqkDgS8sr4 sa2Zo18fkmh7f3WSIU3v1MYAp1BWMOIuEkIoSnQgjjiZ5g9e+3MmkqqdGkwN3lYaeUDa m6Z/Oz2yyKAPwUUX2Ptb+1Z/I1MFUrWNv5Ez4vnxMexNJODUkiW0imSYgS9zZ0Yi7vsZ xZPkunPZ7+xZr57x/Lx01THByWM6VKqtFOmBHBl4IFMrmNC0yes2MBf+TKhBDunnF2pt XF3NQ2Cpwn4rAnee43za5FPHoL/AeIfW4rb4pn0OdiF6Cxdz/Psf8L06FM6MJkChKXSs T9AQ== X-Gm-Message-State: APjAAAXQJIpxjcbJYCdyYZZ6NT3oTDbIZ2Pa1OhASBFfrfFeclBEN3EV Ono7uZrcAlmfSxJ3+J1DxfAaSszr X-Google-Smtp-Source: APXvYqzs7YHIDcZN4IrAo88L1Gs+cRh/lgeCh5bjQJtVA479VVwk4p4HXw1ftnCxMsHoHR99X76uVA== X-Received: by 2002:a1c:6a0e:: with SMTP id f14mr1642875wmc.69.1558540107798; Wed, 22 May 2019 08:48:27 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id t6sm12567117wmt.34.2019.05.22.08.48.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 08:48:27 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/4] drm/tegra: remove irrelevant DRM_UNLOCKED flag Date: Wed, 22 May 2019 16:46:59 +0100 Message-Id: <20190522154702.16269-1-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ymCN4zK26ZTUFCEXX7eQSW+kelBNJC5uXfNvBUA89w=; b=SFk/HRAUYcYrwCMhsQ2edNdvV5hwj+tm2jzDiidQKYpQ7PC6R3+2qJ6oihdSnqcAR5 1N7zPNgIENz0Xa7mggkJ9pMW5U+leJ9FwbRm/ZuOf82rpKimd9LKqoE4Sey3atnhhtGH sgAYV8IDrSRwA//5yQ7YSMQeM2Hfdx8cC2XyUhoLMjcVbLLmZrPAiyaxDVDQZNgn7r4A dc5cv2fEPpkTY4wqXBc1BstyU6YwlQSwaEXsqERVK7MBXPT4rHoVMvHuMs7djKFPdmLA /VoeiSotnElK/vtb6xVFXGfRCD/eEkP1kn9AGBofejsYnXrngE6nq27zBuGj8/smPEcx fK2Q== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, Thierry Reding , kernel@collabora.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov DRM_UNLOCKED doesn't do anything for non-legacy drivers. Remove it. Cc: Thierry Reding Cc: linux-tegra@vger.kernel.org Cc: Daniel Vetter Signed-off-by: Emil Velikov Acked-by: Thierry Reding --- drivers/gpu/drm/tegra/drm.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 0c5f1e6a0446..8836c113b392 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -891,33 +891,33 @@ static int tegra_gem_get_flags(struct drm_device *drm, void *data, static const struct drm_ioctl_desc tegra_drm_ioctls[] = { #ifdef CONFIG_DRM_TEGRA_STAGING DRM_IOCTL_DEF_DRV(TEGRA_GEM_CREATE, tegra_gem_create, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GEM_MMAP, tegra_gem_mmap, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_SYNCPT_READ, tegra_syncpt_read, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_SYNCPT_INCR, tegra_syncpt_incr, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_SYNCPT_WAIT, tegra_syncpt_wait, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_OPEN_CHANNEL, tegra_open_channel, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_CLOSE_CHANNEL, tegra_close_channel, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GET_SYNCPT, tegra_get_syncpt, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_SUBMIT, tegra_submit, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GET_SYNCPT_BASE, tegra_get_syncpt_base, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GEM_SET_TILING, tegra_gem_set_tiling, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GEM_GET_TILING, tegra_gem_get_tiling, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GEM_SET_FLAGS, tegra_gem_set_flags, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(TEGRA_GEM_GET_FLAGS, tegra_gem_get_flags, - DRM_UNLOCKED | DRM_RENDER_ALLOW), + DRM_RENDER_ALLOW), #endif };