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 C493DC77B75 for ; Tue, 18 Apr 2023 16:48:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7945F86151; Tue, 18 Apr 2023 18:46:49 +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="KEF0vtGr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DDD8886136; Tue, 18 Apr 2023 18:46:37 +0200 (CEST) Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) (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 9171C80B98 for ; Tue, 18 Apr 2023 18:46:35 +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=Bh8ngFw8KTSSBVp7GvTu0UK/471AccDsdYAvXkdkESQ=; b=KEF0vtGrEvqCMio1OcBS6XANHeZiI8ZUcQRKS8a4Ax4NMY27zskhTxCT179PxwzRdNH5 TdPlFnV96Wen1qRBIwqFYcIdfUgufEkSh/pXHJ2BKZjivG+WZl9bLwnaUPplb14XRa2lYs ssqucY8prnbnAYLvxTLv/SteQsYnDyJ+30pnfLYez3FusaIINLulbUp+qFlvqLan46XofE xO+iW4ywXFJgFFYBkAK6AjI8s6SFeLzT0j48muwhNngb8/0f/Dd52/MMkKprzaf4pcsbGp 0aydtvq5p0C/koC6cdmnXqDQKEcdx+wxF8N0Pi9sRyVQ9wk63DRvVWQyVgM3Hqzw== Received: by filterdrecv-5848969764-xx99g with SMTP id filterdrecv-5848969764-xx99g-1-643EC96A-12 2023-04-18 16:46:34.330211821 +0000 UTC m=+4814107.091895296 Received: from bionic.localdomain (unknown) by geopod-ismtpd-4 (SG) with ESMTP id V8EnTq8uSG6-ynJmMMznMg Tue, 18 Apr 2023 16:46:34.127 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 09/17] mmc: rockchip_sdhci: Remove empty get_phy and set_enhanced_strobe ops Date: Tue, 18 Apr 2023 16:46:34 +0000 (UTC) Message-Id: <20230418164618.2571309-10-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+RrMu3cja6a0h=2FlR4UvywvWSfmiro?= =?us-ascii?Q?iaoFXL+EjdkubTKkuv+Unr9h0oR4whqzikMWQqQ?= =?us-ascii?Q?Jxusk860Kc0oS5UkSm69dC+PerB+1AK=2FRrulPkM?= =?us-ascii?Q?8xcyGijQHy3rXgT06v7BG9fX2+JG9H8QH9RvUaR?= =?us-ascii?Q?uAXP9DnAso6v7kWUTLjEhTkhCSqbqb0CluJNmS?= 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 empty implementations of get_phy and set_enhanced_strobe ops. Change driver set_enhanced_strobe to return 0 in order to allow missing implementation of the ops. Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/rockchip_sdhci.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index 8e29430a483e..9716fbb54dd4 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -365,16 +365,6 @@ static int rk3568_sdhci_config_dll(struct sdhci_host *host, u32 clock, bool enab return 0; } -static int rk3568_emmc_get_phy(struct udevice *dev) -{ - return 0; -} - -static int rk3568_sdhci_set_enhanced_strobe(struct sdhci_host *host) -{ - return 0; -} - static int rk3568_sdhci_set_ios_post(struct sdhci_host *host) { struct mmc *mmc = host->mmc; @@ -525,7 +515,7 @@ static int rockchip_sdhci_set_enhanced_strobe(struct sdhci_host *host) if (data->set_enhanced_strobe) return data->set_enhanced_strobe(host); - return -ENOTSUPP; + return 0; } static struct sdhci_ops rockchip_sdhci_ops = { @@ -615,11 +605,9 @@ static const struct sdhci_data rk3399_data = { }; static const struct sdhci_data rk3568_data = { - .get_phy = rk3568_emmc_get_phy, .set_ios_post = rk3568_sdhci_set_ios_post, .set_clock = rk3568_sdhci_set_clock, .config_dll = rk3568_sdhci_config_dll, - .set_enhanced_strobe = rk3568_sdhci_set_enhanced_strobe, }; static const struct udevice_id sdhci_ids[] = { -- 2.40.0