From mboxrd@z Thu Jan 1 00:00:00 1970 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 06F6FC7618A for ; Mon, 20 Mar 2023 18:01:59 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 24D4D1E3; Mon, 20 Mar 2023 19:01:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 24D4D1E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1679335317; bh=EHia0Z/ZV8IwonMqPduUm5/mXVgHjO/L0u7v1lqWyk4=; h=Date:From:To:Subject:In-Reply-To:References:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JVMY0onHPC9RzDV3O+KOK/1msF8jioxytkdBTE0ruhehO9WcCeMrRWCHYsgUI43vh 8nIwHkz6b9c5M/UC8QDvQB7jO/sLnZPvulNBHaS4qR9VzJpeTMnEWHDSS8L/og3qka zag/EvOpX7yNClmQ9+neyq+oZs6TShGPJ/PehNZo= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8D86AF8056F; Mon, 20 Mar 2023 18:59:20 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 954D3F80423; Thu, 16 Mar 2023 10:32:22 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7EB9CF80272 for ; Thu, 16 Mar 2023 10:32:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7EB9CF80272 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=H9aXq6XW; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=vrFmJJMH Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E4D3C1FDFB; Thu, 16 Mar 2023 09:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1678959130; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LgQ6KC2ybaQuhcxvNbj5yWV84Hdg07Eok3qBPbbxY94=; b=H9aXq6XWzgXy3V6gUMaMgKEQOC4u2wwCwuM31XT6epw3vcSavDTpG7v1DmpLitT3aAzvrb Uij7YtTtCMzKsnoVFyM4P36fE8radT/BVqUmJO5oz33vf5WRPcRwuHN+AiCd+tOxzXuyQp 7HO6F55yqLXCARRi8VELwLEQafIfemA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1678959130; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LgQ6KC2ybaQuhcxvNbj5yWV84Hdg07Eok3qBPbbxY94=; b=vrFmJJMHnJyGAG4vQo3kBbAm10wkR+7Kjjsf57BxURiziFHRuM5x12k5OToJ7bvAHK8XWM BGwhhqI50dx0VBCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DE806133E0; Thu, 16 Mar 2023 09:32:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9o+MNRjiEmRkRAAAMHmgww (envelope-from ); Thu, 16 Mar 2023 09:32:08 +0000 Date: Thu, 16 Mar 2023 10:32:08 +0100 Message-ID: <87ttylhwiv.wl-tiwai@suse.de> From: Takashi Iwai To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH 000/173] ALSA/ASoC: Convert to platform remove callback returning void In-Reply-To: <20230315150745.67084-1-u.kleine-koenig@pengutronix.de> References: <20230315150745.67084-1-u.kleine-koenig@pengutronix.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MailFrom: tiwai@suse.de X-Mailman-Rule-Hits: max-recipients X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-size; news-moderation; no-subject; digests; suspicious-header Message-ID-Hash: VECLOAKJOD4R6T5I63O7AM6LX466HQUG X-Message-ID-Hash: VECLOAKJOD4R6T5I63O7AM6LX466HQUG X-Mailman-Approved-At: Mon, 20 Mar 2023 17:59:14 +0000 CC: Takashi Iwai , Liam Girdwood , Mark Brown , V sujith kumar Reddy , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Gaosheng Cui , Thierry Reding , Jonathan Hunter , Mohan Kumar , Geoff Levand , Michael Ellerman , Charles Keepax , Vijendar Mukunda , syed saba kareem , Mario Limonciello , Meng Tang , Martin =?ISO-8859-2?Q?Povi=B9er?= , Codrin Ciubotariu , Peter Rosin , Ray Jui , Scott Branden , Allison Randal , Greg Kroah-Hartman , Thomas Gleixner , Alexander Sverdlin , Kuninori Morimoto , Richard Fitzgerald , James Schulman , David Rhodes , Lucas Tanure , Srinivas Kandagatla , Banajit Goswami , Miaoqian Lin , Colin Ian King , Aidan MacDonald , Zhang Qilong , Marek Szyprowski , Liang He , Shengjiu Wang , Xiubo Li , Shawn Guo , Sascha Hauer , Yang Yingliang , Minghao Chi , Kai Vehmanen , Bard Liao , Pierre-Louis Bossart , Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Ranjani Sridharan , Akihiko Odaki , Amadeusz =?ISO-8859-2?Q?S=B3awi=F1ski?= , Andy Shevchenko , Hans de Goede , Moises Cardona , Zhen Ni , Mauro Carvalho Chehab , Andrey Turkin , Muralidhar Reddy , Zhu Ning , Gongjun Song , Shuming Fan , Yong Zhi , Lior Amsalem , Andrew Lunn , Hezi Shahmoon , Neta Zur Hershkovits , Marcin Wojtas , Matthias Brugger , Jiasheng Jiang , Ricardo Ribalda , Trevor Wu , Dan Carpenter , Jerome Brunet , Neil Armstrong , Kevin Hilman , Heiko Stuebner , Nicolas Frattaroli , Krzysztof Kozlowski , Linh Phung , Shang XiaoJing , Lad Prabhakar , Biju Das , Orson Zhai , Baolin Wang , Chunyan Zhang , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Mikhail Rudenko , Li Chen , Ban Tao , Sameer Pujar , YueHaibing , Jiapeng Chong , Li kunyu , Peter Ujfalusi , Jarkko Nikula , Kunihiko Hayashi , Masami Hiramatsu , Christophe JAILLET , Arnd Bergmann , Linus Walleij , Michal Simek , Max Filippov , alsa-devel@alsa-project.org, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, asahi@lists.linux.dev, Broadcom internal kernel review list , patches@opensource.cirrus.com, Fabio Estevam , Nicolin Chen , NXP Linux Team , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-omap@vger.kernel.org, linux-xtensa@linux-xtensa.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 15 Mar 2023 16:04:52 +0100, Uwe Kleine-König wrote: > > Hello, > > this series adapts the platform drivers below sound/ to use the .remove_new() > callback. Compared to the traditional .remove() callback .remove_new() returns > no value. This is a good thing because the driver core doesn't (and cannot) > cope for errors during remove. The only effect of a non-zero return value in > .remove() is that the driver core emits a warning. The device is removed anyhow > and an early return from .remove() usually yields a resource leak. > > By changing the remove callback to return void driver authors cannot > reasonably assume any more that there is some kind of cleanup later. > > The first two patches simplify a driver each to return zero unconditionally, > and then all drivers are trivially converted to .remove_new(). > > There are nearly no interdependencies in this patch set---only 1 <- 11 and > 2 <- 16. So even if some individual problems are found (I don't expect that), > the other patches can (and from my POV should) still be applied. > > Best regards > Uwe > > Uwe Kleine-König (173): (snip) For the whole series, Acked-by: Takashi Iwai thanks, Takashi