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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD6C3C77B75 for ; Tue, 18 Apr 2023 16:47:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 864E086134; Tue, 18 Apr 2023 18:46:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="aXfA9DpO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BEF6086054; Tue, 18 Apr 2023 18:46:31 +0200 (CEST) Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 20B19860D6 for ; Tue, 18 Apr 2023 18:46:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=NZJMpgC/0COFkjvsF/vTp7GDp8w47nWrQxyiKRf/SHw=; b=aXfA9DpOc1TUOugAExifUMQ5rJ4+AgcsIyVSExPX7l5Y+OmDKk+3qHY9UIF8nUs8wy0G WVrsdbkuvV85Pm0ymQyJOoso9i0zNIcwh95sI/6lwRRbJPjQwPG9c2Wkl+d6dGg0dwlPlh dGfwi5eB/MW7eEzyYTZZyuMVowakEPsOlxx8A4Qiyw4u4F/xmK9ZwhU3bE0A2U6HEbYOE6 l+AGCC6dpL826wskR0Rk6mYTZ9s54vAdfkxH5b7dykzVwXXtWNdsbcpilBpdl6SEwD1Zv/ Rpuzo+5k90qhSDA3pfl5o4NWdQXw+my3+kudATyssuffr2ECK9rk3213FhCnuosQ== Received: by filterdrecv-6c845fd887-drtx8 with SMTP id filterdrecv-6c845fd887-drtx8-1-643EC963-32 2023-04-18 16:46:27.526810899 +0000 UTC m=+4814099.003786010 Received: from bionic.localdomain (unknown) by geopod-ismtpd-4 (SG) with ESMTP id qMVGSOi5Qqy3VK5l-RL3vA Tue, 18 Apr 2023 16:46:27.256 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 04/17] mmc: rockchip_sdhci: Remove unneeded emmc_phy_init Date: Tue, 18 Apr 2023 16:46:27 +0000 (UTC) Message-Id: <20230418164618.2571309-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230418164618.2571309-1-jonas@kwiboo.se> References: <20230418164618.2571309-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hyVLkOI3AUbs5=2Fkgh?= =?us-ascii?Q?qQ28OH54SDgQIGePHa+elmE9iJuA3bR0TWb25cN?= =?us-ascii?Q?o7wotfkvu1eeSy5JkKmUn9Bzjfav8LrspQtzxIg?= =?us-ascii?Q?ApzAOZH48DkR=2FcEWIznNzTmkSpwVmNm1FABrF7J?= =?us-ascii?Q?B8BIMeD1=2FJYm0aqGldDSSNV=2FyflFAENbN2yRhf?= To: Kever Yang , Simon Glass , Philipp Tomsich , Peng Fan , Jaehoon Chung Cc: u-boot@lists.denx.de, Jonas Karlman , Eugen Hristev X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Remove the unneeded emmc_phy_init now that the no-inverter flag is handled correctly after commit 2321a991bbb5 ("rockchip: sdhci: rk3568: bypass DLL when clk <= 52 MHz"). Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/rockchip_sdhci.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index ae28840f6081..2a30974df501 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -112,7 +112,6 @@ struct rockchip_sdhc { }; struct sdhci_data { - int (*emmc_phy_init)(struct udevice *dev); int (*get_phy)(struct udevice *dev); /** @@ -154,11 +153,6 @@ struct sdhci_data { int (*set_enhanced_strobe)(struct sdhci_host *host); }; -static int rk3399_emmc_phy_init(struct udevice *dev) -{ - return 0; -} - static void rk3399_emmc_phy_power_on(struct rockchip_emmc_phy *phy, u32 clock) { u32 caldone, dllrdy, freqsel; @@ -294,18 +288,6 @@ static int rk3399_sdhci_set_ios_post(struct sdhci_host *host) return 0; } -static int rk3568_emmc_phy_init(struct udevice *dev) -{ - struct rockchip_sdhc *prv = dev_get_priv(dev); - struct sdhci_host *host = &prv->host; - u32 extra; - - extra = DLL_RXCLK_NO_INVERTER << DWCMSHC_EMMC_DLL_RXCLK_SRCSEL; - sdhci_writel(host, extra, DWCMSHC_EMMC_DLL_RXCLK); - - return 0; -} - static int rk3568_sdhci_emmc_set_clock(struct sdhci_host *host, unsigned int clock) { struct rockchip_sdhc *priv = container_of(host, struct rockchip_sdhc, host); @@ -557,12 +539,6 @@ static int rockchip_sdhci_probe(struct udevice *dev) return ret; } - if (data->emmc_phy_init) { - ret = data->emmc_phy_init(dev); - if (ret) - return ret; - } - host->ops = &rockchip_sdhci_ops; host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD; @@ -605,7 +581,6 @@ static int rockchip_sdhci_bind(struct udevice *dev) static const struct sdhci_data rk3399_data = { .get_phy = rk3399_emmc_get_phy, - .emmc_phy_init = rk3399_emmc_phy_init, .set_control_reg = rk3399_sdhci_set_control_reg, .set_ios_post = rk3399_sdhci_set_ios_post, .set_enhanced_strobe = rk3399_sdhci_set_enhanced_strobe, @@ -613,7 +588,6 @@ static const struct sdhci_data rk3399_data = { static const struct sdhci_data rk3568_data = { .get_phy = rk3568_emmc_get_phy, - .emmc_phy_init = rk3568_emmc_phy_init, .set_ios_post = rk3568_sdhci_set_ios_post, .set_enhanced_strobe = rk3568_sdhci_set_enhanced_strobe, }; -- 2.40.0