From patchwork Thu Feb 8 10:21:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 127280 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1339402ljc; Thu, 8 Feb 2018 02:21:16 -0800 (PST) X-Google-Smtp-Source: AH8x2277GPP1ercRbvyFL1w8Mvuk+hv5iN67XG2/rnjTFbrZJbFuYAQQxJAh2kypEujO7U2SogSe X-Received: by 10.99.96.148 with SMTP id u142mr132048pgb.53.1518085276666; Thu, 08 Feb 2018 02:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518085276; cv=none; d=google.com; s=arc-20160816; b=S2g+wIew7EHEUtAS67dldKLIfeQQL2Ai0e+GFEZbxlYsro9m7FLM0qHdMogngd41eT 1PSg6t7DxwjG9LF85+93cZdhD1amL5DTyfrcgB56Z8dtdXuoyBGLOpP0Spa884INZ2Vv uLy1l1L/SSQvf2Pf4uyiO3ASKT9jB8SCJkcyKtTvX4Dj7tS5u0vHkIq6I1f0pnrmp7Dj mhYv9y9n4IWyJ50hvKNpNfk3Q2jWHselNGiUoCZmfVu+zX7ct4JWp2loUH5Wu0fCBatf qCr7kmaMG1wv4QDdTpzrrqp0jmln3nMfi2wID0IzBzDE7+cT86ceUuyCtgplpAXEzf1W yLwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=vyvgzZxUvAR769JW9fe0oSdDTuFR1d79lVlZmKnLoWk=; b=RvO70ZozGpQZDgPF4OdXKzQK3/jZu2awBo5J21uTs+UQknWRA4xGYYCNaV44IVAgcw DpQLxqJ9Nud1GfSRwm+WDVSvPhCAs5a8ydpaOvY83bi8DmWjGFa3SxA2sXhlbZlXxpU0 RWq66nazmPqkzf6D0rINrRZfmMKrRR8B+xX80L6oJboLVMESeBwK4OeYGoOIU4/mGtWG rmCk67xhTUYcWkQi72FDSmAQkgA+zMTGYgmqxoXzSP15wuG+Oz2IC/lPEIWFKczS6A2l gciPhLPPz9OINhB1ihBsD3jXp/Ax3WLEC62j8BZi6W3C/9KGztqvFkJaw4/bXfLUNYM3 +30g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Bph1Mop8; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id k189si1097340pgc.505.2018.02.08.02.21.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 02:21:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Bph1Mop8; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5AFDE6E5BE; Thu, 8 Feb 2018 10:21:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 340EB6E5BB for ; Thu, 8 Feb 2018 10:21:14 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w18ALBMf013763; Thu, 8 Feb 2018 04:21:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518085271; bh=WReDkdaGVC4jS7FbEURdo/H8yMjwd/IzNlUP5U+TtDg=; h=From:To:CC:Subject:Date; b=Bph1Mop81v4w/Njn4e1lRAVj27svxfk3M2uSQ1Jc6zmXHSzPq8NsG7OcVNJn/dBSR WCasL07aa5YmDI/fgfX7FLxaGfRaQVA8KCgezo7aPrzfj7/NNXkSJytJNv7c9oe22o Tfn0dFRUDQa1ry+CI0OaFGU0aZWla6e0qE5f9XeY= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w18ALBe9002884; Thu, 8 Feb 2018 04:21:11 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 8 Feb 2018 04:21:11 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 8 Feb 2018 04:21:10 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w18AL9Bu012092; Thu, 8 Feb 2018 04:21:09 -0600 From: Jyri Sarha To: Subject: [PATCH v4 0/6] drm/omap: Make omapdss API more generic + related patches Date: Thu, 8 Feb 2018 12:21:00 +0200 Message-ID: X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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: tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, Jyri Sarha Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The purpose of these patches is to make easier to add support for future DSS version. Since v3: - "drm/omap: Add get_ovl_name() and get_mgr_name() to dispc_ops" - Make ovl_names array static const char * const - Add: - "drm/omap: move common stuff from dss.h to omapdss.h" - "drm/omap: dss: Move platform_device_register from core.c to dss.c probe" - "drm/omap: dss: platform_register_drivers() to dss.c and remove core.c" Since v2: - Simplify dispc_mgr_has_framedone() - dispc_hw_to_api_irq() and dispc_api_to_hw_irq() use new dispc_irq_bits[] - rename dispc_ops read_irqstatus() to read_and_clear_irqstatus() and remove clearmask - precalculate priv->irq_uf_mask in omap_drm_irq_install() and use it in omap_irq_fifo_underflow() Here is the v2 round: https://lists.freedesktop.org/archives/dri-devel/2018-January/161353.html Since RFC: This the v2 rouns of a this RFC patch: https://patchwork.kernel.org/patch/10066245/ The first patch is a simple fix that should be applied in any case. I did not split the mgr_has_framedone() callback as a separate patch. It quite literally replaces the mgr_get_framedone_irq() and makes no sense without the "drm/omap: Make omapdss API more generic"-patch. Best regards, Jyri Jyri Sarha (5): drm/omap: Fail probe if irq registration fails drm/omap: Add get_ovl_name() and get_mgr_name() to dispc_ops drm/omap: Make omapdss API more generic drm/omap: dss: Move platform_device_register from core.c to dss.c probe drm/omap: dss: platform_register_drivers() to dss.c and remove core.c Tomi Valkeinen (1): drm/omap: move common stuff from dss.h to omapdss.h drivers/gpu/drm/omapdrm/dss/Makefile | 2 +- drivers/gpu/drm/omapdrm/dss/core.c | 88 ------------------------ drivers/gpu/drm/omapdrm/dss/dispc.c | 113 ++++++++++++++++++++++++------ drivers/gpu/drm/omapdrm/dss/dispc.h | 33 +++++++++ drivers/gpu/drm/omapdrm/dss/dss.c | 56 +++++++++++++++ drivers/gpu/drm/omapdrm/dss/dss.h | 37 ---------- drivers/gpu/drm/omapdrm/dss/omapdss.h | 104 ++++++++++++++++++---------- drivers/gpu/drm/omapdrm/omap_crtc.c | 27 +++----- drivers/gpu/drm/omapdrm/omap_crtc.h | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c | 4 +- drivers/gpu/drm/omapdrm/omap_drv.h | 3 +- drivers/gpu/drm/omapdrm/omap_irq.c | 125 +++++++++++++++------------------- drivers/gpu/drm/omapdrm/omap_irq.h | 2 +- drivers/gpu/drm/omapdrm/omap_plane.c | 18 ++--- drivers/gpu/drm/omapdrm/omap_plane.h | 1 + 15 files changed, 331 insertions(+), 284 deletions(-) delete mode 100644 drivers/gpu/drm/omapdrm/dss/core.c