From patchwork Mon Nov 12 14:12:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 150838 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3190651ljp; Mon, 12 Nov 2018 06:12:49 -0800 (PST) X-Google-Smtp-Source: AJdET5cURUx6f7UvQ5nRiz7gmklWgplx8Ugbm7Vy84Nz+EaP2rFopJiXxyCbMxE/NHkRnnKuREcu X-Received: by 2002:a63:b16:: with SMTP id 22mr964435pgl.306.1542031968934; Mon, 12 Nov 2018 06:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542031968; cv=none; d=google.com; s=arc-20160816; b=dR52rmeTM9yxxJBQxBM25ZGUynaojb5a+e7Gt87nKG4kdVNloumn6/pr55nSQL250x tlddsAPTwVRfA5U2KgAcQNvccPpTD3A6ialbrwBFcpp9/FopT5V9yKovdTDLvKRIyixT DO2AovYmyPvVUZvVPyGi4GFvwjuHfZgCaZXFC1bkbCwLlZR5qNUq2Tw8u8C6vHwJJXL+ hngJ/QU6AL583BALiUtX+oNW/sttENZU1nCaenjIEdh0PKkX9+l4G9yqe4pRpsZ1OOyw yVSBjn3FAIxUbUFrWb9BNgcL0Mm4peO0OlrIMUJ5GQPGnE7sS614o08MuDIE5Wlc7qRY iWow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=O8XCzbDGJd9HIB9Z/NhGYx5qznWm4kveh67laCLgEk0=; b=JoLgJL/WD5xVR0gyIgerJ4jsCAd0Z13WOxzbOA1AKsmwqHsq9WV8EUeidNNxCxqTb6 O5CUGR2WLoGmXb7ECoAvPeyTKyP66oLZvDAjGgQZVyfTUGz6OECtVAs8QD4Hc75WiQKs Cr98LgSxEkyYqgwIFdeGZTZn/umyzIuVXTor/L+rcNvbktjcZF/q9472DOQYIrX+/fhA RaaYYRjnszZiaXyVZNyG59ihINXi5UNsklykcUIL/KyX9pxVd27cDE/Bp1/f+VupKpU3 PEoYyJkRsekeRKxR3AS2EX/lqAsqi9cnsTdLwBlLyB0PhhX010Qlp2KocR75sSbsHwFD Fmlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c1AS24Kz; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h68-v6si19277640pfb.142.2018.11.12.06.12.48; Mon, 12 Nov 2018 06:12:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c1AS24Kz; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbeKMAGO (ORCPT + 5 others); Mon, 12 Nov 2018 19:06:14 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39196 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727103AbeKMAGO (ORCPT ); Mon, 12 Nov 2018 19:06:14 -0500 Received: by mail-lf1-f68.google.com with SMTP id n18so6273783lfh.6 for ; Mon, 12 Nov 2018 06:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=O8XCzbDGJd9HIB9Z/NhGYx5qznWm4kveh67laCLgEk0=; b=c1AS24KzvOlCuWf3Iez/NsXjP51dGQqcnvoBC2xVMiT3grS4sl91maTXvZeXVKQsio J05sAv90+85SU6DqRoFtox2NNHPs6GcA+g9RPrvIn8UXGcSOPKtLbi/QbSRtBbmocEl8 x2tAy8QjinDbbotaajx3qW5QHdl5dHXTpi1p8= 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=O8XCzbDGJd9HIB9Z/NhGYx5qznWm4kveh67laCLgEk0=; b=Wnq/0VH4fAcEcUTdY3Uu1o9QMJjysBP2W/du9qgGKqxKB+s7Hf5HKjunlSQPAKlJGs 0jaK4riZU9nC04inYBNCMNudbt2TINi4IBtFGRWkK2AozNbhGVwCr0qS7cPTgQhRjw+g UTcPHB1UKz71ghhWKV96gj99r4zSBhI+i7XRs0ie10HUN/2kEVSSsHhbJdKH1LAtsJCZ VHlwfxC90MP5QFTZTZvmy34vcvbWNz5e5vMFsbnFkmq3jIP5fxJP99RGSYIDVCcCpC1I MbB68Ch+On4E5s1TLqvevFZ0mE1N3M0Hqfah1Z3EPjcWiyxv5iV5ztWpsXsNn39EzkMr V3Yg== X-Gm-Message-State: AGRZ1gJ5xO3hmtWtn+Eoc5mbCSTlByXTYB8j2JKEZSWrxs7fQj++KsDN 1UD2C4HjgFwvxxPix302XecEbjUwe/YhMQ== X-Received: by 2002:a19:1901:: with SMTP id 1mr632441lfz.99.1542031965443; Mon, 12 Nov 2018 06:12:45 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id m14-v6sm3056889lji.29.2018.11.12.06.12.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Nov 2018 06:12:44 -0800 (PST) From: Linus Walleij To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Linus Walleij Subject: [PATCH 00/10] Convert MMC slot GPIO to descriptors Date: Mon, 12 Nov 2018 15:12:29 +0100 Message-Id: <20181112141239.19646-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.2 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org This series converts all MMC/SD-drivers to use GPIO descriptors cutting a bit of complexity out of the slot-gpio.c file. Next step will be to also remove the inversion flags from the MMC host core and let the descriptors deal with that. This series can be pulled in on top of v4.20-rc1 for testing from: git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-mmc-cd-wp Please test! Yours, Linus Walleij Linus Walleij (10): mmc: slot-gpio: Allocate GPIO labels dynamically mmc: jz4740: Get CD/WP GPIOs from descriptors mmc: jz4740: Use GPIO descriptor for power mmc: spi: Convert to use GPIO descriptors mmc: host: tmio: Use GPIO descriptors mmc: sdhci: imx: Use the slot GPIO descriptor mmc: s3cmci: Use the slot GPIO descriptor mmc: pxa: Use the slot GPIO descriptor mmc: pxa: Use GPIO descriptor for power mmc: slot-gpio: Delete legacy GPIO handling arch/arm/mach-ep93xx/simone.c | 14 ++- arch/arm/mach-ep93xx/vision_ep9307.c | 17 +++- arch/arm/mach-imx/mach-pcm043.c | 17 +++- arch/arm/mach-pxa/balloon3.c | 3 - arch/arm/mach-pxa/cm-x270.c | 22 +++-- arch/arm/mach-pxa/cm-x300.c | 23 ++--- arch/arm/mach-pxa/colibri-evalboard.c | 40 ++++++-- arch/arm/mach-pxa/colibri-pxa270-income.c | 19 ++-- arch/arm/mach-pxa/corgi.c | 20 +++- arch/arm/mach-pxa/csb726.c | 19 +++- arch/arm/mach-pxa/em-x270.c | 34 +++---- arch/arm/mach-pxa/gumstix.c | 3 - arch/arm/mach-pxa/idp.c | 3 - arch/arm/mach-pxa/littleton.c | 17 ++-- arch/arm/mach-pxa/lubbock.c | 3 - arch/arm/mach-pxa/magician.c | 22 ++++- arch/arm/mach-pxa/mainstone.c | 3 - arch/arm/mach-pxa/mioa701.c | 18 +++- arch/arm/mach-pxa/mxm8x10.c | 17 +++- arch/arm/mach-pxa/palm27x.c | 10 +- arch/arm/mach-pxa/palm27x.h | 8 +- arch/arm/mach-pxa/palmld.c | 16 ++- arch/arm/mach-pxa/palmt5.c | 16 ++- arch/arm/mach-pxa/palmtc.c | 19 +++- arch/arm/mach-pxa/palmte2.c | 18 +++- arch/arm/mach-pxa/palmtreo.c | 31 +++++- arch/arm/mach-pxa/palmtx.c | 16 ++- arch/arm/mach-pxa/palmz72.c | 16 ++- arch/arm/mach-pxa/pcm990-baseboard.c | 3 - arch/arm/mach-pxa/poodle.c | 15 ++- arch/arm/mach-pxa/raumfeld.c | 3 - arch/arm/mach-pxa/spitz.c | 16 ++- arch/arm/mach-pxa/stargate2.c | 3 - arch/arm/mach-pxa/tosa.c | 18 +++- arch/arm/mach-pxa/trizeps4.c | 3 - arch/arm/mach-pxa/vpac270.c | 16 ++- arch/arm/mach-pxa/z2.c | 14 ++- arch/arm/mach-pxa/zeus.c | 15 ++- arch/arm/mach-pxa/zylonite.c | 44 ++++++--- arch/arm/mach-s3c24xx/mach-at2440evb.c | 14 ++- arch/arm/mach-s3c24xx/mach-h1940.c | 15 ++- arch/arm/mach-s3c24xx/mach-mini2440.c | 16 ++- arch/arm/mach-s3c24xx/mach-n30.c | 15 ++- arch/arm/mach-s3c24xx/mach-rx1950.c | 15 ++- .../mips/include/asm/mach-jz4740/jz4740_mmc.h | 4 - arch/mips/jz4740/board-qi_lb60.c | 18 ++-- arch/sh/boards/mach-ecovec24/setup.c | 43 ++++++-- drivers/mmc/core/slot-gpio.c | 97 +++---------------- drivers/mmc/host/jz4740_mmc.c | 85 +++++----------- drivers/mmc/host/mmc_spi.c | 27 +++--- drivers/mmc/host/of_mmc_spi.c | 34 ------- drivers/mmc/host/pxamci.c | 68 +++++-------- drivers/mmc/host/s3cmci.c | 32 +++--- drivers/mmc/host/sdhci-esdhc-imx.c | 14 +-- drivers/mmc/host/tmio_mmc_core.c | 12 ++- include/linux/mfd/tmio.h | 9 +- include/linux/mmc/slot-gpio.h | 5 - include/linux/platform_data/mmc-esdhc-imx.h | 4 - include/linux/platform_data/mmc-pxamci.h | 4 - include/linux/platform_data/mmc-s3cmci.h | 4 - include/linux/spi/mmc_spi.h | 15 --- 61 files changed, 655 insertions(+), 509 deletions(-) -- 2.17.2