From patchwork Fri Dec 6 17:08:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 180928 Delivered-To: patches@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1053983ile; Fri, 6 Dec 2019 09:08:28 -0800 (PST) X-Received: by 2002:a2e:914d:: with SMTP id q13mr9299966ljg.198.1575652108119; Fri, 06 Dec 2019 09:08:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575652108; cv=none; d=google.com; s=arc-20160816; b=AbELaIL/aJzgM4THyQuxnqH9+/tT14lznXx0fRJ4Lq3+X9fZf8srKiyz4xpV/qnKgh 2pPdAhn9OxLo7+tKg1/HDhHjHVjEn9V7xPxIaKnjvSuW4F3bDfPKHgslbMcTlfoVOTKa Ko/DQvX2bpC3Etb+ULj21ciBCCt7JRrYgLBR9PuQddsRNEsOF3eC4jRUlibZ0rta0hOa 7cjM3N2uTKjf+KxZ9nD3ooqLbUekE0NspS8alQBNgHoF2jGB/F74Tl6AYcYkqRawQ5B/ o52HMecz5UEd37EfUDqyf+Mevd1N6AW+dq+IAZied69sgXvs7Z1RYTcDsa9Ghxx8Dp4E TRTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=RJvo8dm1C4RBvX1inxnpeI4gjWGaZu/lxsw87fYACSk=; b=ZYv+zIPtRD0uHT1pC7R44F1SvpOjcB0D6D3ShzwU73UCGetCqllGRgo13F0x4UjmEz J3izS4NsT4vVpxp5te7bn2AHpYpzsnbvflzP/A8dZcjw4FBCIfvx7vXTWyCP1cPCwnoL NhbOvMpBaB0YTD0Vrg3owVj8V2MysXAm84S8ymDvU3UO+/ZKfAfcQQLvz1FWbh/CeSUj tlB5630mL1OocwMVDmFQmMb4e/5rLg+jaIZIZ3YXPPPX4Xbhum4Zm2qD8iq9E69GNn2I KTbzs1B5EAPk1P7DzFqLzBWvHoRdmY32RcCRSWhzGCMC8gM4i0ApLE1YIu8NNQ0d8AwB q2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZKEdKFCN; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l20sor9797066lja.40.2019.12.06.09.08.27 for (Google Transport Security); Fri, 06 Dec 2019 09:08:28 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZKEdKFCN; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RJvo8dm1C4RBvX1inxnpeI4gjWGaZu/lxsw87fYACSk=; b=ZKEdKFCNBnvtG/sUsIn6WbE1agwFb7pAX0rX8oiyhTW2UVzDGNZ15Viw02DIoANhDH ow/UceeMZwqdeZK09cLELLKiuToZgF7sq/5+i37Nb/4KgbqTZ3eEhZHE+KeJ/3XA4zpo EElDnweCXYXoxMUOyM4fVseOnLlFpnvo8R1roTu5hLAirI6oSRFuLhBqdgyIKYw/GwvI G/M+wEWPZLKq/T8uZuJeP1J0zjigSRl8p8Ksl7G7uzks1v//9fpOIcZPv28jTsAKwsSG mBZBrLPveWioEqKqLgy4FhrZ3sB2Nl6BlkCrEMf8qOYXXr8840H89n7CdPL+hWK0Y3G+ rNFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RJvo8dm1C4RBvX1inxnpeI4gjWGaZu/lxsw87fYACSk=; b=fP3D7sQKN40jhm6EwxKLCqeidHJTfBfnXpAzeR/TD2f0R+MkDqQnBISobooOPd4xqK Q9Ayn3p0F9Hv8DOpYxU/IPmBWSOBycJdTOoeUNvGkvft5DvTUWlq8uDBqkOkpUxYdMwj DzDQ0b00uQdjZtX28gz0U6UQFLNNywSubG4/0e8Q7c4JIWE9ZmWhbxe12yYSpIiIqvm2 HInOmuIDksNG57Dg8i+5qRv6WmawFiruHU/Xyp5YifB8okS6wGkcvmFbDLYEPwlacd2B GLR6xdAIvxU+WsDFAEjM04x/kXfmsf0jSQiE3HjCN6m8JYkM25Y1MmMiHKRJ2BKJN7m8 omcQ== X-Gm-Message-State: APjAAAVx+M06u+ZR+xmE5ci3vtDEybAl6nbw1ZsbnPC5jkAK198s9edg rEjHqTqEj7P2zFFcjaLlhRqMeym1o2UrCg== X-Google-Smtp-Source: APXvYqzJt+YACb3a8Tl61TG8pgv8gqMLZ4+X330YLPAqOz0ACqmdzKUNe8U0rzCbkaa5XP9lXfTcUg== X-Received: by 2002:a2e:998a:: with SMTP id w10mr9545421lji.241.1575652107749; Fri, 06 Dec 2019 09:08:27 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id z9sm6905283ljm.40.2019.12.06.09.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 09:08:27 -0800 (PST) From: Ulf Hansson To: linux-gpio@vger.kernel.org, Linus Walleij Cc: linux-mmc@vger.kernel.org, Ulf Hansson Subject: [PATCH 0/9] pinctrl: Consolidate some pinctrl code for mmc Date: Fri, 6 Dec 2019 18:08:12 +0100 Message-Id: <20191206170821.29711-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 Some mmc host drivers, but perhaps also others drivers, needs to reset the pinctrl into the default state (PINCTRL_STATE_DEFAULT). However, they can't use the existing pinctrl_pm_select_default_state(), as that requires CONFIG_PM to be set. This leads to open coding, as they need to look up the default state themselves and then select it. This series attempt to address these problems. Ulf Hansson (9): pinctrl: core: Add pinctrl_select_default_state() and export it mmc: meson-gx: Convert to pinctrl_select_default_state() mmc: mmci: Convert to pinctrl_select_default_state() mmc: usdhi6rol0: Convert to pinctrl_select_default_state() mmc: omap_hsmmc: Convert to pinctrl_select_default_state() mmc: sdhci-esdhc-imx: Convert to pinctrl_select_default_state() mmc: atmel-mci: Convert to pinctrl_select_default_state() mmc: jz4740: Convert to pinctrl_select_default_state() mmc: uniphier-sd: Convert to pinctrl_select_default_state() drivers/mmc/host/atmel-mci.c | 2 +- drivers/mmc/host/jz4740_mmc.c | 2 +- drivers/mmc/host/meson-gx-mmc.c | 10 +-------- drivers/mmc/host/mmci.c | 12 ++--------- drivers/mmc/host/mmci.h | 1 - drivers/mmc/host/omap_hsmmc.c | 10 ++------- drivers/mmc/host/sdhci-esdhc-imx.c | 11 ++-------- drivers/mmc/host/uniphier-sd.c | 14 +++++-------- drivers/mmc/host/usdhi6rol0.c | 15 +------------- drivers/pinctrl/core.c | 33 +++++++++++++++++------------- include/linux/pinctrl/consumer.h | 6 ++++++ 11 files changed, 40 insertions(+), 76 deletions(-) -- 2.17.1 Acked-by: Jesper Nilsson Acked-by: Linus Walleij