From patchwork Tue Jan 1 19:44:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10745963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C27A314DE for ; Tue, 1 Jan 2019 19:44:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4E5F2877E for ; Tue, 1 Jan 2019 19:44:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A978A28783; Tue, 1 Jan 2019 19:44:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 605E42877E for ; Tue, 1 Jan 2019 19:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tdWBTF8TzDeH56lKSStKzLoH3nW/M083+mqtCbHLTsI=; b=YGlwnuIJ4CAroP ZrNShPhKRIRGLxxjTCN+EQ+dw862Z6Y8zIEtkAm+yRRWPTUjc0/VTx5Aq4IYKjU5eqEjCDlzxgVBL HBqLQ5FoJTfxd2OcIb3DGH153oB3cxiJ9e2rv3zScak5k+NhT6StIII0O54QqCrEmOVNCBBc39z1j lFoVV5TZuirKifz/3wj+YHIJpqHVDGl78SblaKT9w5qM+oikIJUgYw2EL2+MAQs0wUlPIcHe3UW21 9Rg654Ly/XcdXQhkJgN9Z02vzIWBBQ1N6XMBEMVKIlUnQ6Pie9uSOgSOTXvAx3iSUhg11d+zeJYQ2 HZIBeFiXwyKXpz5rz1+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gePxq-0004xw-R4; Tue, 01 Jan 2019 19:44:34 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gePxm-0004wY-G0 for linux-amlogic@lists.infradead.org; Tue, 01 Jan 2019 19:44:32 +0000 Received: by mail-wr1-x442.google.com with SMTP id c14so28777112wrr.0 for ; Tue, 01 Jan 2019 11:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YxBcdG/5USi5uOX1JOBscFWeU4VCyKnT01z3qsVhmyU=; b=CDxzRYcixveTYzrL15GGn2NTMljy1t3k5xe9/qKivkx6lk44Svs51tEPGOt5NM1kpG bpVsKxaVmuvzUQMZGctO/7dN51yRWTpEtQ1VZCRB0FSsUo75JwBvyQKnl5LHHfX6WVU1 D7KjWxymjFniLF8ZUsSjzRoPQyS5CP8jV96auS25/frgnPblpvFzPQQ89m1e/klAougy 1QQaQzRUWtXo3rAJUKmd3aF/QyMG9R/q1MqhUUFfCLfO7YsSDKbDyJbl+Finpe7fdK9g xJdmGFiy1dJi4C+AlE74LXn1XI2qsrymDCnJHoA9zSwBdPmtRpsrT6m/TW5lwkD8hSKx cyMw== 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:mime-version :content-transfer-encoding; bh=YxBcdG/5USi5uOX1JOBscFWeU4VCyKnT01z3qsVhmyU=; b=sHMGdwF5AKdYfmW3zUyAz+E4CWc+cff1za/4Ds05qgojO+Iv8pv92B6aZlueAYNb+9 XYDKxlYQiJQpAfoaZ2Yhh3yFlPl7e6kLHTFLb7h9xLM2zR/Ba0YT78KiGNSp7E5sADC1 TwYrtu16gwLUernadrNN7DJy/exEZRn4KsedzyN/AU/uaEPIXBIIc9JZcTZxQNaOzYFz kWV5whrahxD8xlOlKImnZqHdA/dSrWaI8sG1sObBTbiOJkqSdkrIoot+lLbquHyL8jlP uTGFfqyIIx699zUl/Uk1Wx++9rqp/dYSqlIBHCnC3gTLtX2N5A/Q/rgAFVBNbDW6x5A7 FbYg== X-Gm-Message-State: AJcUukcdNmX8cY+OOpf30ihRaP/Tm2IGrYSpQQogGHJnhe2AcMyKL5on eutVwUQrgVXSaOzX4ZiB85Q= X-Google-Smtp-Source: ALg8bN64DDnzn5DH8rCQwHU58l1J01Pbr8s7gRhnO4bA4xq4Hs0XKrGiIV6JSxBZjVhet4pDMGBuuQ== X-Received: by 2002:adf:c452:: with SMTP id a18mr37011121wrg.145.1546371867022; Tue, 01 Jan 2019 11:44:27 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD719940081266F57D36520DF.dip0.t-ipconnect.de. [2003:dc:d719:9400:8126:6f57:d365:20df]) by smtp.googlemail.com with ESMTPSA id l8sm41505654wrr.60.2019.01.01.11.44.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jan 2019 11:44:26 -0800 (PST) From: Martin Blumenstingl To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCH 0/1] mmc: fix boards with CD GPIO and "cd-inverted" Date: Tue, 1 Jan 2019 20:44:13 +0100 Message-Id: <20190101194414.24766-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190101_114430_551997_DABA7B5C X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ulf.hansson@linaro.org, Martin Blumenstingl , linux-kernel@vger.kernel.org, bgolaszewski@baylibre.com, linux-amlogic@lists.infradead.org, linux@roeck-us.net Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP As I explained in my original mail [0] I observed that some of my boards were not detecting their SD card anymore: - Meson8b Odroid-C1: the one one Kernel CI and another one on my desk - Meson8b EC-100: on my desk - Meson GXBB Odroid-C2: on Kernel CI git bisect pointed to the following commit: 89a5e15bcba87d ("gpio/mmc/of: Respect polarity in the device tree") The one-line change from this series is supposed to fix this issue for v4.21 (mainline git master). As explained in the patch description the MMC core code which manages the GPIO inversion can be cleaned up once no driver depends on it anymore (it seems that only one driver is left, but I don't have hardware for it so I can't test it). More details can also be found in my discussion with Linus on this topic: [1] [0] https://marc.info/?l=linux-gpio&m=154609359306731&w=3 [1] https://marc.info/?l=linux-mmc&m=154626524506451&w=3 Martin Blumenstingl (1): mmc: core: don't override the CD GPIO level when "cd-inverted" is set drivers/mmc/core/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)