From patchwork Thu Nov 2 16:56:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13444016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF972C4167D for ; Thu, 2 Nov 2023 16:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=kxIjzgtac17joB3G5uo4aMkhNeY6QslIKQxDZ8iOLNE=; b=vJhjFBDcPlgn/kVlYXB5D2Q+0L rkePdQOxaLg2UUf+m1BMk1bZE7jqRiyqWWhsckfUxb+v5kI37Nu65hITBqZTETOVfT7SBNYpgmRq/ S9B/fxGlOULu6zLiabn7XAoHir+ckLUY3pXMTdHLUfNgH3/f1QqBtyM6/sujyG7Tl4vaBt9Olxkx7 5iPV8ROcqKlpOR70Ej5uAXbKhYfUfz8e0S6wrge8gg6PCWWUVTrU1LKrzqzXdhuCrBx19FdJb+Urj 8K+X5G4gSu1m1T9hOWlgiJ4ntxAebTYhZtxkyS4C3icF9R1Z61FtEg26TI9LfVnbWqUJ/1+m1pIBx PJX22oqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qyb1a-009vsa-3C; Thu, 02 Nov 2023 16:58:30 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qyb1X-009vqZ-2N for linux-mediatek@lists.infradead.org; Thu, 02 Nov 2023 16:58:29 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qyb0K-000357-QY; Thu, 02 Nov 2023 17:57:12 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyb0F-0067Eo-8v; Thu, 02 Nov 2023 17:57:07 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qyb0E-00Bjbm-TZ; Thu, 02 Nov 2023 17:57:06 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Andrzej Hajda , Neil Armstrong , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Tomi Valkeinen , Sam Ravnborg , Sebastian Reichel , Alexey Brodkin , Russell King , Aradhya Bhatia , Nikhil Devshatwar , Javier Martinez Canillas , Zhu Wang , Rob Herring , Lucas Stach , Inki Dae , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Jingoo Han , Laurentiu Palcu , Shawn Guo , Sascha Hauer , Philipp Zabel , Steven Price , Liviu Dudau , Thierry Reding , Marian Cichy , Dan Carpenter , Anitha Chrisanthus , Edmund Dea , Chun-Kuang Hu , Matthias Brugger , Kevin Hilman , Ben Skeggs , Karol Herbst , Lyude Paul , Orson Zhai , Baolin Wang , Chunyan Zhang , Kieran Bingham , Deepak R Varma , Jani Nikula , Jyri Sarha , Tomi Valkeinen Cc: Laurent Pinchart , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, kernel@pengutronix.de, Russell King , Christian Gmeiner , etnaviv@lists.freedesktop.org, Alim Akhtar , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Fabio Estevam , NXP Linux Team , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, Jerome Brunet , Martin Blumenstingl , linux-amlogic@lists.infradead.org, nouveau@lists.freedesktop.org Subject: [PATCH v3 00/16] drm: Convert to platform remove callback returning void Date: Thu, 2 Nov 2023 17:56:41 +0100 Message-ID: <20231102165640.3307820-18-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4120; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=6QYM0SU3kXEp/3Rx24czlnqsJN0YtugMXofEMzocIhI=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlQ9TJCnXlJTkkfRNtfDCRgNgoYImgoMcqTIUGU YPFEI8hNtuJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZUPUyQAKCRCPgPtYfRL+ TlE1B/9NxDv3OWR8FrrOhkWCsLmrwRFKWVyDmyJSx60Ka0DnSfGX5PCxeEQX54ei+hOZqfLgOrV dyJPHuu/UbIkK39U0o0NSnUyxMAdg0IUMyOtDMNTgWD+4xmfMqH6d2PacWn5ecdXfhgoLTEGO0J Efnk/t1kkH8kW4oj8RUKjDSUb9qdDuuKfvqki0nTiWtiYujDISWZRNVCHeSiRItvUBj5pyei3sh TmKFd9Rcv/2AjgpC3Yq2P6GtbftnRl90/79DwE6NBT7fpR+h5KWk5xDyijTkL2zKpArX16e/QLc eXdbf6zdC11Tt5f6LOJ9xMQA1iPo4CxvwDoCJ4yHiVLd3jFk X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mediatek@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231102_095827_931252_A21A6D1E X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Hello, this series converts all platform drivers below drivers/gpu/drm to use .remove_new(). It starts with a fix for a problem that potentially might crash the kernel that I stumbled over while implementing the conversion. Some of the conversion patches following this fix were already send in earlier series: https://lore.kernel.org/dri-devel/20230801110239.831099-1-u.kleine-koenig@pengutronix.de https://lore.kernel.org/dri-devel/20230318190804.234610-1-u.kleine-koenig@pengutronix.de and three patches (bridge/tpd12s015, exynos + tilcdc) are new. Parts of the above series were picked up, the patches resend here are not. See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for an extended explanation and the eventual goal. Compared to the earlier submissions this patch series is rebased to today's drm-misc-next. Otherwise there is no relevant change. Best regards Uwe Uwe Kleine-König (16): drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function drm/arcpgu: Convert to platform remove callback returning void drm/armada: Convert to platform remove callback returning void drm/bridge: cdns-mhdp8546: Improve error reporting in remove callback drm/bridge: cdns-mhdp8546: Convert to platform remove callback returning void drm/bridge: tpd12s015: Convert to platform remove callback returning void drm/etnaviv: Convert to platform remove callback returning void drm/exynos: Convert to platform remove callback returning void drm/imx/dcss: Convert to platform remove callback returning void drm/imx: lcdc: Convert to platform remove callback returning void drm/kmb: Convert to platform remove callback returning void drm/mediatek: Convert to platform remove callback returning void drm/meson: Convert to platform remove callback returning void drm/nouveau: Convert to platform remove callback returning void drm/sprd: Convert to platform remove callback returning void drm/tilcdc: Convert to platform remove callback returning void drivers/gpu/drm/armada/armada_crtc.c | 5 ++--- drivers/gpu/drm/armada/armada_drv.c | 5 ++--- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 22 +++++++++---------- drivers/gpu/drm/bridge/ti-tpd12s015.c | 6 ++--- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 6 ++--- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 5 ++--- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 6 ++--- drivers/gpu/drm/exynos/exynos7_drm_decon.c | 6 ++--- drivers/gpu/drm/exynos/exynos_dp.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 5 ++--- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_mic.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_rotator.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_scaler.c | 6 ++--- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 6 ++--- drivers/gpu/drm/exynos/exynos_hdmi.c | 6 ++--- drivers/gpu/drm/exynos/exynos_mixer.c | 6 ++--- drivers/gpu/drm/imx/dcss/dcss-drv.c | 6 ++--- drivers/gpu/drm/imx/lcdc/imx-lcdc.c | 6 ++--- drivers/gpu/drm/kmb/kmb_drv.c | 5 ++--- .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 5 ++--- drivers/gpu/drm/mediatek/mtk_ethdr.c | 5 ++--- drivers/gpu/drm/meson/meson_dw_mipi_dsi.c | 6 ++--- drivers/gpu/drm/nouveau/nouveau_platform.c | 5 ++--- drivers/gpu/drm/sprd/sprd_dpu.c | 6 ++--- drivers/gpu/drm/sprd/sprd_drm.c | 5 ++--- drivers/gpu/drm/sprd/sprd_dsi.c | 6 ++--- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 9 ++++---- drivers/gpu/drm/tiny/arcpgu.c | 6 ++--- 32 files changed, 74 insertions(+), 128 deletions(-) base-commit: 6fd9487147c4f18ad77eea00bd8c9189eec74a3e