From patchwork Sun Feb 10 13:10:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Noralf_Tr=C3=B8nnes?= X-Patchwork-Id: 10804741 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 C987814E1 for ; Sun, 10 Feb 2019 13:10:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1D5929F95 for ; Sun, 10 Feb 2019 13:10:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A066129F99; Sun, 10 Feb 2019 13:10:58 +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,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 CDF5029F95 for ; Sun, 10 Feb 2019 13:10:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E72B6E0D9; Sun, 10 Feb 2019 13:10:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE8076E0D8 for ; Sun, 10 Feb 2019 13:10:53 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:41944 helo=localhost.localdomain) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1gsosl-00071t-RZ; Sun, 10 Feb 2019 14:10:51 +0100 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 00/12] drm/tinydrm: Remove tinydrm_device Date: Sun, 10 Feb 2019 14:10:27 +0100 Message-Id: <20190210131039.52664-1-noralf@tronnes.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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: daniel.vetter@ffwll.ch, david@lechnology.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset is part of the effort to remove tinydrm.ko. It removes struct tinydrm_device and tinydrm.h. Main changes in this version: Take a ref on the parent device for the drm_device lifetime. Drop devm_drm_dev_register() and add driver remove callbacks. The reason is that drm_atomic_helper_shutdown() must be called after unregister and it's not allowed to touch hardware in a devm release action. Drop drm_simple_connector. I couldn't do rotation the proposed way so I need more time to sort it out. I've also started on a driver example for the documentation. Note: The series depends on this: drm/drv: Rework drm_dev_unplug() https://patchwork.freedesktop.org/series/56406/ Noralf. Noralf Trønnes (12): drm/drv: Hold ref on parent device during drm_device lifetime drm: Add devm_drm_dev_init() drm/drv: DOC: Add driver example code drm/modes: Add DRM_SIMPLE_MODE() drm/tinydrm: tinydrm_display_pipe_init() don't use tinydrm_device drm/tinydrm: Remove tinydrm_shutdown() drm/tinydrm/mipi-dbi: Add drm_to_mipi_dbi() drm/tinydrm/repaper: Drop using tinydrm_device drm/tinydrm: Drop using tinydrm_device drm/tinydrm: Remove tinydrm_device drm/tinydrm: Use drm_dev_enter/exit() drm/fb-helper: generic: Don't take module ref for fbcon Documentation/driver-model/devres.txt | 3 + Documentation/gpu/tinydrm.rst | 32 +-- Documentation/gpu/todo.rst | 4 - drivers/gpu/drm/drm_drv.c | 162 +++++++++++++++- drivers/gpu/drm/drm_fb_helper.c | 6 +- drivers/gpu/drm/tinydrm/core/Makefile | 2 +- drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 183 ------------------ .../gpu/drm/tinydrm/core/tinydrm-helpers.c | 2 + drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 24 +-- drivers/gpu/drm/tinydrm/hx8357d.c | 59 ++++-- drivers/gpu/drm/tinydrm/ili9225.c | 81 ++++++-- drivers/gpu/drm/tinydrm/ili9341.c | 59 ++++-- drivers/gpu/drm/tinydrm/mi0283qt.c | 67 +++++-- drivers/gpu/drm/tinydrm/mipi-dbi.c | 118 +++++++---- drivers/gpu/drm/tinydrm/repaper.c | 144 ++++++++++---- drivers/gpu/drm/tinydrm/st7586.c | 145 ++++++++------ drivers/gpu/drm/tinydrm/st7735r.c | 59 ++++-- include/drm/drm_drv.h | 3 + include/drm/drm_modes.h | 17 ++ include/drm/tinydrm/mipi-dbi.h | 27 ++- include/drm/tinydrm/tinydrm-helpers.h | 13 ++ include/drm/tinydrm/tinydrm.h | 75 ------- 22 files changed, 762 insertions(+), 523 deletions(-) delete mode 100644 drivers/gpu/drm/tinydrm/core/tinydrm-core.c delete mode 100644 include/drm/tinydrm/tinydrm.h