From patchwork Sun Jan 20 11:43:07 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: 10772355 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 DB41F14E5 for ; Sun, 20 Jan 2019 11:43:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAA432AA4A for ; Sun, 20 Jan 2019 11:43:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEA282AA4C; Sun, 20 Jan 2019 11:43:36 +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 772242AA4A for ; Sun, 20 Jan 2019 11:43:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EBE066E5EC; Sun, 20 Jan 2019 11:43:31 +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 CEAA96E5EB for ; Sun, 20 Jan 2019 11:43:30 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:41476 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 1glBVg-0000O0-Qt; Sun, 20 Jan 2019 12:43:28 +0100 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 00/11] drm/tinydrm: Remove tinydrm_device Date: Sun, 20 Jan 2019 12:43:07 +0100 Message-Id: <20190120114318.49199-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: 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. While doing this refactoring I have ensured that device unplug is working. The generic fbdev emulation has now been verified that it properly handles device unplug with open file handles and bound fbcon. Noralf. Noralf Trønnes (11): drm: Add devm_drm_dev_init/register drm/modes: Add DRM_SIMPLE_MODE() drm/simple-kms-helper: Add drm_simple_connector_create() drm/tinydrm: Remove tinydrm_display_pipe_init() drm/tinydrm/mipi-dbi: Add drm_to_mipi_dbi() drm/tinydrm: Remove tinydrm_shutdown() drm/tinydrm/repaper: Use devm_drm_dev_*() drm/tinydrm: Use devm_drm_dev_*() 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 | 4 + Documentation/gpu/tinydrm.rst | 29 +-- Documentation/gpu/todo.rst | 4 - drivers/gpu/drm/drm_drv.c | 106 ++++++++++ drivers/gpu/drm/drm_fb_helper.c | 6 +- drivers/gpu/drm/drm_simple_kms_helper.c | 122 ++++++++++++ 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 | 183 ------------------ drivers/gpu/drm/tinydrm/hx8357d.c | 44 +++-- drivers/gpu/drm/tinydrm/ili9225.c | 67 +++++-- drivers/gpu/drm/tinydrm/ili9341.c | 44 +++-- drivers/gpu/drm/tinydrm/mi0283qt.c | 52 +++-- drivers/gpu/drm/tinydrm/mipi-dbi.c | 133 +++++++++---- drivers/gpu/drm/tinydrm/repaper.c | 129 ++++++++---- drivers/gpu/drm/tinydrm/st7586.c | 133 +++++++------ drivers/gpu/drm/tinydrm/st7735r.c | 44 +++-- include/drm/drm_drv.h | 6 + include/drm/drm_modes.h | 16 ++ include/drm/drm_simple_kms_helper.h | 6 + include/drm/tinydrm/mipi-dbi.h | 27 ++- include/drm/tinydrm/tinydrm.h | 75 ------- 23 files changed, 715 insertions(+), 702 deletions(-) delete mode 100644 drivers/gpu/drm/tinydrm/core/tinydrm-core.c delete mode 100644 drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c delete mode 100644 include/drm/tinydrm/tinydrm.h