From patchwork Mon Jul 22 10:43:03 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: 11052125 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 57045138D for ; Mon, 22 Jul 2019 10:43:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4753628500 for ; Mon, 22 Jul 2019 10:43:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B1EB2851B; Mon, 22 Jul 2019 10:43: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,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 E324728500 for ; Mon, 22 Jul 2019 10:43:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 407C089A61; Mon, 22 Jul 2019 10:43:29 +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 838638979F for ; Mon, 22 Jul 2019 10:43:25 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:55388 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 1hpVmt-0001lD-FP; Mon, 22 Jul 2019 12:43:23 +0200 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/9] drm/tinydrm: Move mipi_dbi Date: Mon, 22 Jul 2019 12:43:03 +0200 Message-Id: <20190722104312.16184-1-noralf@tronnes.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org; s=ds201810; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=9lVw8Daw75Cl/FhAP9iO62NlT5uXanMC5OK90Eol54w=; b=WDrrp8oGvpmiVvYlnbJH2w6khqQmxcy5NAxqIOXIuhQ9dWgqCg5nqZOrUrbpSM3cxcXXJvgTBHSo2MHkeu8/UVtbZGYpoXj7xcXhH+0uMYtzqUl6UjQQLdMJdQcOrkoUjsSfymAva0pa5WRF9XezgNBvdRtXg6SLXPPqKrLgoWLJPVAoYWhCk0oWbVWBX9DNEfnZRQf+DZtdST6NVpdmGlNz7cCz6saz/YaHQ7MYNVYo2Z2Y9j6u8r7ozY8MRTXPFjdjAcHBtyUEwlF/F1zEv8F9Tg5LrxWzz8Rt86Jvzkt3Uppc5iUE7Vn6MRodjcQ8pXy7ZsYsCgDMbyhVsrNWHA==; 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: sam@ravnborg.org, david@lechnology.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series ticks off the last tinydrm todo entry and moves out mipi_dbi to be a core helper. It splits struct mipi_dbi into an interface part and a display pipeline part (upload framebuffer over SPI). I also took the opportunity to rename the ambiguous 'mipi' variable name to 'dbi'. This lines up with the use of the 'dsi' variable name in the MIPI DSI helper. Changes since v1: The kbuild test robot alerted me to the fact that I was missing a dependency on DRM_MIPI_DBI. I also realised that it had a dependency on the CMA helper as well. The CMA helper dependency was resolved by open coding a function. The KMS helper dependency revealed a problem with the BACKLIGHT dependency. Details in the patch. I had mistakenly set DRM_MIPI_DBI to bool, this has been changed to tristate. Note: This depends on series: drm/tinydrm: Remove tinydrm.ko Series is also available here: https://github.com/notro/linux/tree/move_mipi_dbi Noralf. Noralf Trønnes (9): drm/tinydrm/mipi-dbi: Move cmdlock mutex init drm/tinydrm: Rename variable mipi -> dbi drm/tinydrm: Rename remaining variable mipi -> dbidev drm/tinydrm: Split struct mipi_dbi in two drm/tinydrm/mipi-dbi: Remove CMA helper dependency drm/tinydrm/Kconfig: drivers: Select BACKLIGHT_CLASS_DEVICE drm/tinydrm/mipi-dbi: Select DRM_KMS_HELPER drm/tinydrm: Move mipi-dbi MAINTAINERS: Remove tinydrm entry Documentation/gpu/drivers.rst | 1 - Documentation/gpu/drm-kms-helpers.rst | 12 + Documentation/gpu/tinydrm.rst | 18 - Documentation/gpu/todo.rst | 13 - MAINTAINERS | 13 +- drivers/gpu/drm/Kconfig | 4 + drivers/gpu/drm/Makefile | 1 + .../{tinydrm/mipi-dbi.c => drm_mipi_dbi.c} | 333 +++++++++--------- drivers/gpu/drm/tinydrm/Kconfig | 23 +- drivers/gpu/drm/tinydrm/Makefile | 4 - drivers/gpu/drm/tinydrm/hx8357d.c | 61 ++-- drivers/gpu/drm/tinydrm/ili9225.c | 171 ++++----- drivers/gpu/drm/tinydrm/ili9341.c | 83 ++--- drivers/gpu/drm/tinydrm/mi0283qt.c | 89 ++--- drivers/gpu/drm/tinydrm/st7586.c | 104 +++--- drivers/gpu/drm/tinydrm/st7735r.c | 77 ++-- include/drm/drm_mipi_dbi.h | 188 ++++++++++ include/drm/tinydrm/mipi-dbi.h | 135 ------- 18 files changed, 691 insertions(+), 639 deletions(-) delete mode 100644 Documentation/gpu/tinydrm.rst rename drivers/gpu/drm/{tinydrm/mipi-dbi.c => drm_mipi_dbi.c} (77%) create mode 100644 include/drm/drm_mipi_dbi.h delete mode 100644 include/drm/tinydrm/mipi-dbi.h