From patchwork Mon Nov 20 21:58:31 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: 745635 Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F67D9 for ; Mon, 20 Nov 2023 13:59:55 -0800 (PST) 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 1r5CJ6-0003rU-C0; Mon, 20 Nov 2023 22:59:52 +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 1r5CJ3-00ARF5-6m; Mon, 20 Nov 2023 22:59:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1r5CJ2-004fCu-TE; Mon, 20 Nov 2023 22:59:48 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Greg Kroah-Hartman Cc: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, Li Yang , linuxppc-dev@lists.ozlabs.org, Herve Codina , Zhu Wang , Alan Stern , Rob Herring , Aaro Koskinen , Vladimir Zapolskiy , Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH 0/5] usb: gadget: udc: Convert to platform remove callback returning void Date: Mon, 20 Nov 2023 22:58:31 +0100 Message-ID: <20231120215830.71071-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.42.0.586.gbc5204569f7d.dirty Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1379; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=NGgnAsKRDJtchth2h1V+09ayIfLrr5Gjju5DvvEEWTI=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlW9aGVsV1Zt4tqEhTjh663ROQpcHCNjJXv/7H8 QoQQZjNnr+JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZVvWhgAKCRCPgPtYfRL+ TliRCACFeRhxOA9KHcUabcEOYqtrCN+0aV6zr50I74bzXPfYE4EwFwgP2lVQjCWXDprj5F2hTCv Ioi2mzz5KHge3cjF1zetPS3NmH3NHVdmT7z1VUujla/DkbvaaNXWhV27pnqpcNdQh4e8dXbH9Zw /K3r+g/GG7db8QwgUs1P6ZTMwkbbDWAyLny2XQpjwEWCm9UznEn1YGoVoaBSsHrWym5+Atf6R7v NRxx+N1JJLMX5rzyfwnbovF57T6m55pBkhqNeevKsJomDu1BEt13UoULLTBZ4/umOKGMVAem3fw k4yEm3N8bjsXBS4A4Ft1yQhEZjsJ/+9hDhGr/QENlqbI/jP2 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-usb@vger.kernel.org Hello, this patch set converts the platform drivers below drivers/usb/gadget to use .remove_new. These drivers all have an error path if the driver is still in use. Returning there early leaks resources, but fixing this isn't trivial, so I just added an error message. The patches don't make a difference to the drivers apart from the improved error message. See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for an extended explanation and the eventual goal of .remove_new(). Best regards Uwe Uwe Kleine-König (5): usb: gadget: at91_udc: Convert to platform remove callback returning void usb: gadget: fsl_udc: Convert to platform remove callback returning void usb: gadget: gr_udc: Convert to platform remove callback returning void usb: gadget: lpc32xx_udc: Convert to platform remove callback returning void usb: gadget: pxa25x_udc: Convert to platform remove callback returning void drivers/usb/gadget/udc/at91_udc.c | 13 +++++++------ drivers/usb/gadget/udc/fsl_udc_core.c | 13 +++++++------ drivers/usb/gadget/udc/gr_udc.c | 13 +++++++------ drivers/usb/gadget/udc/lpc32xx_udc.c | 13 +++++++------ drivers/usb/gadget/udc/pxa25x_udc.c | 12 +++++++----- 5 files changed, 35 insertions(+), 29 deletions(-) base-commit: 5a82d69d48c82e89aef44483d2a129f869f3506a