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 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 4BAEFC54FB3 for ; Thu, 29 May 2025 13:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=sJ4PRm24WP2Ln8AW7qIpD6zWYaCBiOdPWtpHW35wrIU=; b=rc1Kf1LEz9VR1e VrFZOEiZyASL8RRhRjUs/LlUHUTc/jU5VqO4TseatbjPBsVMvsVMfykiEDFLaMNhqUm6lEavstbyf U7qE+iYgewlEkUTw+QDkhScuWUHLHsUJ4KB57je6ReMaZ1dVQPOeRqhfJd61vvdzuesk1+KgO4xxq UOJy+Yyg4j7MN6STgz9njrbCby31QmxIRuONIlPMk1iXeDAnozRusV4hIaSWhPAknllgezPr5z8dX X8X+7sx46UTAheOJ6eAt2cklN5XbEDgpAVYeEq0cnYAjVcL+ASE9PuuBvBwibGYXg/Bef6PKrY4uK xgHpUwSPxaVPN6a5+C4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKdPP-0000000Frmf-2DMT; Thu, 29 May 2025 13:34:59 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKcoR-0000000FnPs-2ZXd for linux-riscv@bombadil.infradead.org; Thu, 29 May 2025 12:56:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=rmVSecU3fSg579ePWaVwZNpoD7ReV7J57LSHk6R//xc=; b=bi2fQNh3blVyXziM/lHx7fQiPE cCAivv53j/psyqWtla5MYZsItNDwM97FyhBUUNzxNHPP/E/LpmK3IAgfcHDFHiBRaxW4qn1AShnLG Z/X7jVZ6xhTTwYD8i7229iqq2j88WgmUrzPMpj3GKmlfU3ABQI1C2T59qMQU8doT7UKHwZqqziU/T BFansQjqKOh/EbpuxsgQuGOVovFzofuDZeBofeRYk9RN6v3CZKKVLcXvriSZwVqGlUubTi3LerjNk KIn+cItVdIpOi4aN1FYwNhRhYnNSDASE3l9JgXsRtGSp/qQYcalSZ7BpYE7IgRK++Hz+lzi0Oh5DT DLT7/Xig==; Received: from mail.loongson.cn ([114.242.206.163]) by casper.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKcoM-0000000EmCI-10aX for linux-riscv@lists.infradead.org; Thu, 29 May 2025 12:56:46 +0000 Received: from loongson.cn (unknown [223.64.69.3]) by gateway (Coremail) with SMTP id _____8BxXWt_WThoISkCAQ--.21743S3; Thu, 29 May 2025 20:56:31 +0800 (CST) Received: from localhost.localdomain (unknown [223.64.69.3]) by front1 (Coremail) with SMTP id qMiowMCxbsV1WThoTrH6AA--.60122S2; Thu, 29 May 2025 20:56:27 +0800 (CST) From: Binbin Zhou To: Binbin Zhou , Huacai Chen , Ulf Hansson , Adrian Hunter Cc: Huacai Chen , linux-mmc@vger.kernel.org, Andrew Jeffery , Taichi Sugaya , Takao Orito , Ben Dooks , Jaehoon Chung , Florian Fainelli , Ray Jui , Scott Branden , Kamal Dasu , Al Cooper , Haibo Chen , Shawn Guo , Sascha Hauer , Fabio Estevam , imx@lists.linux.dev, Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , openbmc@lists.ozlabs.org, Michal Simek , Joel Stanley , linux-aspeed@lists.ozlabs.org, Aubin Constans , Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Yixun Lan , linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Jacky Huang , Shan-Chun Hung , Steen Hegelund , Daniel Machon , Vignesh Raghavendra , Patrice Chotard , Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org, Hu Ziji , Binbin Zhou Subject: [PATCH v2 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Date: Thu, 29 May 2025 20:56:10 +0800 Message-ID: X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-CM-TRANSID: qMiowMCxbsV1WThoTrH6AA--.60122S2 X-CM-SenderInfo: p2kr3uplqex0o6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBj93XoW3Xw1kXr43tFy8Ary7GFW5CFX_yoW7GrW5pa ySqrWa9r43Cr95WrZxJw1UZw15Xr4rX39Fgry5tw4FqFW3Ca4UKrsrAFy0qryDZ3yxJr48 t3WDJw1UGr95K3XCm3ZEXasCq-sJn29KB7ZKAUJUUUUJ529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6rxl6s0DM2kKe7AKxVWUtVW8ZwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWr XwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI4 8JMxkF7I0En4kS14v26r4a6rW5MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1q6r43MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWrXVW8Jr1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jCMKZUUUUU= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250529_135642_793462_7932F2B3 X-CRM114-Status: UNSURE ( 8.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hi all: After the first part of the cleanup[1], there are sdhci related drivers that need further cleanup. This patchset is the second part of the cleanup series, and since sdhci has sdhci_alloc_host() as the general interface, our main job is to clean up sdhci_pltfm_free() and sdhci_free_host(). [1]:https://lore.kernel.org/all/cover.1747877175.git.zhoubinbin@loongson.cn/ Thanks. ----- V2: - Collect Reviewed-by and Acked-by tags. Patch-01: - Set sdhci_free_host() to empty, rather than dropping it. Patch-07: - Set sdhci_pltfm_free() to empty, rather than dropping it. Patch-22: - As requested by Yixun, keep the goto scheme. Patch-35: - New patch; - Since all calls have been cleaned up, sdhci_pltfm_free()/sdhci_free_host() are now dropped directly; Link to V1: https://lore.kernel.org/all/cover.1747792905.git.zhoubinbin@loongson.cn/ Binbin Zhou (35): mmc: sdhci: Use devm_mmc_alloc_host() helper mmc: sdhci-acpi: Drop the use of sdhci_free_host() mmc: sdhci-milbeaut: Drop the use of sdhci_free_host() mmc: sdhci-pci: Drop the use of sdhci_free_host() mmc: sdhci-s3c: Drop the use of sdhci_free_host() mmc: sdhci-spear: Drop the use of sdhci_free_host() mmc: sdhci-pltfm: Drop the use of sdhci_pltfm_free() mmc: sdhci-bcm-kona: Drop the use of sdhci_pltfm_free() mmc: sdhci-brcmstb: Drop the use of sdhci_pltfm_free() mmc: sdhci-cadence: Drop the use of sdhci_pltfm_free() mmc: sdhci-dove: Drop the use of sdhci_pltfm_free() mmc: sdhci-esdhc-imx: Drop the use of sdhci_pltfm_free() mmc: sdhci-esdhc-mcf: Drop the use of sdhci_pltfm_free() mmc: sdhci-iproc: Drop the use of sdhci_pltfm_free() mmc: sdhci-msm: Drop the use of sdhci_pltfm_free() mmc: sdhci-npcm: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-arasan: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-aspeed: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-at91: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-dwcmshc: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-esdhc: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-k1: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-ma35d1: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-sparx5: Drop the use of sdhci_pltfm_free() mmc: sdhci-omap: Drop the use of sdhci_pltfm_free() mmc: sdhci-pic32: Drop the use of sdhci_pltfm_free() mmc: sdhci-pxav2: Drop the use of sdhci_pltfm_free() mmc: sdhci-pxav3: Drop the use of sdhci_pltfm_free() mmc: sdhci-sprd: Drop the use of sdhci_pltfm_free() mmc: sdhci-st: Drop the use of sdhci_pltfm_free() mmc: sdhci-tegra: Drop the use of sdhci_pltfm_free() mmc: sdhci-xenon: Drop the use of sdhci_pltfm_free() mmc: sdhci_am654: Drop the use of sdhci_pltfm_free() mmc: sdhci_f_sdh30: Drop the use of sdhci_pltfm_free() mmc: sdhci: Drop sdhci_free_host()/sdhci_pltfm_free() definitions drivers/mmc/host/sdhci-acpi.c | 3 --- drivers/mmc/host/sdhci-bcm-kona.c | 2 -- drivers/mmc/host/sdhci-brcmstb.c | 1 - drivers/mmc/host/sdhci-cadence.c | 21 ++++++------------ drivers/mmc/host/sdhci-dove.c | 12 ++--------- drivers/mmc/host/sdhci-esdhc-imx.c | 3 --- drivers/mmc/host/sdhci-esdhc-mcf.c | 25 ++++++---------------- drivers/mmc/host/sdhci-iproc.c | 18 ++++------------ drivers/mmc/host/sdhci-milbeaut.c | 19 ++++++----------- drivers/mmc/host/sdhci-msm.c | 11 ++++------ drivers/mmc/host/sdhci-npcm.c | 15 +++---------- drivers/mmc/host/sdhci-of-arasan.c | 26 +++++++---------------- drivers/mmc/host/sdhci-of-aspeed.c | 10 ++------- drivers/mmc/host/sdhci-of-at91.c | 23 +++++++------------- drivers/mmc/host/sdhci-of-dwcmshc.c | 14 +++++------- drivers/mmc/host/sdhci-of-esdhc.c | 11 ++-------- drivers/mmc/host/sdhci-of-k1.c | 1 - drivers/mmc/host/sdhci-of-ma35d1.c | 23 +++++++------------- drivers/mmc/host/sdhci-of-sparx5.c | 24 +++++++-------------- drivers/mmc/host/sdhci-omap.c | 21 ++++++------------ drivers/mmc/host/sdhci-pci-core.c | 9 ++------ drivers/mmc/host/sdhci-pic32.c | 9 +++----- drivers/mmc/host/sdhci-pltfm.c | 16 +------------- drivers/mmc/host/sdhci-pltfm.h | 1 - drivers/mmc/host/sdhci-pxav2.c | 26 ++++++----------------- drivers/mmc/host/sdhci-pxav3.c | 7 +----- drivers/mmc/host/sdhci-s3c.c | 16 ++++---------- drivers/mmc/host/sdhci-spear.c | 11 ++++------ drivers/mmc/host/sdhci-sprd.c | 33 +++++++++-------------------- drivers/mmc/host/sdhci-st.c | 6 ++---- drivers/mmc/host/sdhci-tegra.c | 9 +++----- drivers/mmc/host/sdhci-xenon.c | 9 ++------ drivers/mmc/host/sdhci.c | 9 +------- drivers/mmc/host/sdhci.h | 1 - drivers/mmc/host/sdhci_am654.c | 20 ++++++----------- drivers/mmc/host/sdhci_f_sdh30.c | 13 ++++-------- 36 files changed, 129 insertions(+), 349 deletions(-) base-commit: d2c6acff6386f43ed307822454b970c831c48f1b -- 2.47.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv