From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 728A3C47254 for ; Tue, 5 May 2020 09:57:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53295206A4 for ; Tue, 5 May 2020 09:57:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 53295206A4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CB5506E15C; Tue, 5 May 2020 09:56:55 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2183A6E14E for ; Tue, 5 May 2020 09:56:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D9CDFAC7D; Tue, 5 May 2020 09:56:54 +0000 (UTC) From: Thomas Zimmermann To: airlied@redhat.com, daniel@ffwll.ch, kraxel@redhat.com, sam@ravnborg.org, emil.velikov@collabora.com, cogarre@gmail.com Subject: [PATCH 0/5] drm/mgag200: Embed DRM device in struct mga_device Date: Tue, 5 May 2020 11:56:44 +0200 Message-Id: <20200505095649.25814-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Zimmermann , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" After receiving reviews on the conversion of mgag200 to atomic mode setting, I thought it would make sense to embed the DRM device in struct mga_device first. Several comments in the atomic-conversion reviews refer to that. Patches 1 to 3 do some cleanups and preparation work. Patch 4 changes the the init functions to allocate struct mga_device before struct drm_device. Patch 5 does the conversion. I did not switch over struct mga_device to the new managed release code. I found that this justifies another round of cleanup patches, which I did not want to put into this patchset. The patches were tested on mgag200 hardware. Thomas Zimmermann (5): drm/mgag200: Convert struct drm_device to struct mga_device with macro drm/mgag200: Integrate init function into load function drm/mgag200: Remove several references to struct mga_device.dev drm/mgag200: Init and finalize devices in mgag200_device_{init,fini}() drm/mgag200: Embed DRM device instance in struct mga_device drivers/gpu/drm/mgag200/mgag200_cursor.c | 10 +- drivers/gpu/drm/mgag200/mgag200_drv.c | 29 +++--- drivers/gpu/drm/mgag200/mgag200_drv.h | 8 +- drivers/gpu/drm/mgag200/mgag200_i2c.c | 10 +- drivers/gpu/drm/mgag200/mgag200_main.c | 114 +++++++++++------------ drivers/gpu/drm/mgag200/mgag200_mode.c | 35 +++---- drivers/gpu/drm/mgag200/mgag200_ttm.c | 4 +- 7 files changed, 101 insertions(+), 109 deletions(-) -- 2.26.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel