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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AA65C433EF for ; Thu, 21 Oct 2021 04:54:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E38C260F22 for ; Thu, 21 Oct 2021 04:54:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E38C260F22 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C0E783457; Thu, 21 Oct 2021 06:53:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org 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=sholland.org header.i=@sholland.org header.b="RtC8VPNV"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="LPuM8lZX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE3E7833D5; Thu, 21 Oct 2021 06:53:23 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C9B83833D5 for ; Thu, 21 Oct 2021 06:53:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1CA4F5C00AE; Thu, 21 Oct 2021 00:53:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 21 Oct 2021 00:53:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=dspqBxK7P+kIc cJ+/BSetIaoG3ht8PRF2wF74wwjCII=; b=RtC8VPNVr9nY1Or6yNUhWu6xu+vlG 6hdF+P5+UUS74YeeWUCWDb1OGce/VcP+/BawRRI3vHRRXJNxngZ8B2rwWXlx6G/o isy4n+52wyrwD5v5RfvomfyLjYT4naLj0fLf8gMHkNxJ0X8sGMdb41CCoZUpLrzi wcT0TkkbemeaKKrF4N8WVbdfFLO7NPhjmABjTGNP4X2kxYiYHjyHxPKqeqfG+nYg 6mQKVIhhPHKOWSjkRXK6AX+PoBDbpE/Yuyx+RiYG+PT5vTTh8zvXembzJ26MSWyZ m5KLB6QELEXrjOo17Ffll/PSACCQPRr1gLcj04K83LsrkHtZAZJsr/erQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=dspqBxK7P+kIccJ+/BSetIaoG3ht8PRF2wF74wwjCII=; b=LPuM8lZX vldRLoUVRfVwZdR/fygC9rR8zO7aK1G41I3L63ORRPDJY3jdogJzOHFxugrKYUbG xSZpN0wf2mxwTLlMKiHbhNfaNjMUMEnYyUWdXJlCLGlepNSwdTp4AJPim6OI3Klq /wkQ6W/jpWuWUK1rtm8qp0HoDzuP9lHBG7iaPRkSbxF/blxEvBzj8HSbwRkV7EwB Ja88xqP0zu2/Shxgs1BOdPaWqso3IFbhtrwlWJtn4jDNUIIQM5NYQIZRtb67CTLe dpEPOpkxBlTMX0CpqdEorM8/DW6ydLbAqTaEs5Y6x/NgI34kcDyw3QYSwvqVhzOr yL912Q7rcEcJZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvhedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Oct 2021 00:53:07 -0400 (EDT) From: Samuel Holland To: u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Samuel Holland , Andy Shevchenko , Icenowy Zheng , Jaehoon Chung , Jernej Skrabec , Peng Fan , Simon Glass Subject: [PATCH 4/4] mmc: sunxi: Use DM_GPIO flags to set pull-up Date: Wed, 20 Oct 2021 23:52:57 -0500 Message-Id: <20211021045258.30757-5-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211021045258.30757-1-samuel@sholland.org> References: <20211021045258.30757-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Now that the sunxi_gpio driver handles pull-up/down via the driver model, pin configuration does not need a platform-specific function. Signed-off-by: Samuel Holland --- drivers/mmc/sunxi_mmc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index c170c16d5a..955b29826f 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -700,12 +700,8 @@ static int sunxi_mmc_probe(struct udevice *dev) return ret; /* This GPIO is optional */ - if (!gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio, - GPIOD_IS_IN)) { - int cd_pin = gpio_get_number(&priv->cd_gpio); - - sunxi_gpio_set_pull(cd_pin, SUNXI_GPIO_PULL_UP); - } + gpio_request_by_name(dev, "cd-gpios", 0, &priv->cd_gpio, + GPIOD_IS_IN | GPIOD_PULL_UP); upriv->mmc = &plat->mmc; -- 2.32.0