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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2017BC433EF for ; Thu, 21 Oct 2021 04:53:30 +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 30AF661130 for ; Thu, 21 Oct 2021 04:53:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 30AF661130 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 24CCF8344A; Thu, 21 Oct 2021 06:53:14 +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="mE17/wTs"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Ruyi6eSj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CB1DB83405; Thu, 21 Oct 2021 06:53:07 +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 C9A288326F for ; Thu, 21 Oct 2021 06:53:02 +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 compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 6315B5C018B; Thu, 21 Oct 2021 00:53:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 21 Oct 2021 00:53:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=CQV7+RliDZXvJsVIeyDx1Fxw5c EKS25xOiAY95+4ro4=; b=mE17/wTsnE+XeP8raNvoI3spaF3c2QlPWEiMhfh+DL fkn2R/+hmOAHJcuUBBBIsPg4px27MEvTcXdCHhZXVVyAWNRBvJvMRF105h5JWTth o/015jZ0MEAgknGlnsWWOlWjNQUoGxCqj1hAa23isr5iDQpabdV+mb9O5U2H1rw+ HWZemMBNI6bTAuWdMCQHX6b3mZyRjqzpdJtGZDsgt0Z2A/SI1Z9+xPZfXd5B8l+E HDU8Ig2s7G4omyLecrbZyJRtRzvLGQ8zxog16HBInHd9h5tyfs5eb6HXXjeUr/xZ R4LP3NzJpLZ+f3DTejVfRtlw9BAQ2cJQFPvjQfW+oXAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=CQV7+RliDZXvJsVIe yDx1Fxw5cEKS25xOiAY95+4ro4=; b=Ruyi6eSjDqLgj31UlFO45T/ndvd3dDlY4 aD+ZevVCq57AdwtX1uwnjjiRVsjVHRjv5gL09K+MZ0m07Hrw4U+H9F5XIBGVHWVt K2YZCrYmsDGgZrv+kmGwKuCQ4lrvbGX55YEtJkfYwoxOX8rzD4qUZfz4piyDloQu kR+jL/0B05CV3lbZAx8FV8L1eN5wSE5cK0eH9RnkqzkiDywR0Ho/ifx7EYBLJZRV 1sXq+6Fifc6oFdTXgXSTBlDWpe6qo9HSkV7kjR/RGK7jBimK61SqgqZeF60Sk2P+ vWCeunQls6Qqy4QcoXcMO3XhxZ9IeF0DiUSOMW4NOC6SHhbmjAFFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvhedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Oct 2021 00:52:59 -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 0/4] gpio: sunxi: Handle pin configuration flags Date: Wed, 20 Oct 2021 23:52:53 -0500 Message-Id: <20211021045258.30757-1-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 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 This series updates the sunxi GPIO driver to handle pin pull-up/down, so consumer drivers do not need to call the non-DM sunxi_gpio_set_* functions. As an example, the last patch updates the MMC driver to use this functionality. The helpers added here will also be used for the upcoming DM_PINCTRL driver. Samuel Holland (4): sunxi: gpio: Return void from setter functions sunxi: gpio: Add per-bank drive and pull setters gpio: sunxi: Implement .set_flags mmc: sunxi: Use DM_GPIO flags to set pull-up arch/arm/include/asm/arch-sunxi/gpio.h | 6 ++- arch/arm/mach-sunxi/pinmux.c | 28 +++++++----- drivers/gpio/sunxi_gpio.c | 62 +++++++++++--------------- drivers/mmc/sunxi_mmc.c | 8 +--- 4 files changed, 51 insertions(+), 53 deletions(-) -- 2.32.0