Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6468356ybl; Wed, 15 Jan 2020 05:15:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzBByBp5JvBzg82ae7YPLRmUfK0UuIMRvcAkPmz41k8aqM7Z+b88J5PM/wbs6lan1SQUb4E X-Received: by 2002:a9d:5885:: with SMTP id x5mr2620408otg.132.1579094120773; Wed, 15 Jan 2020 05:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579094120; cv=none; d=google.com; s=arc-20160816; b=HdDw40tYSvcWSslYiCYjBJS0b8sa5M5PxShkOegwvIkONALjSGoLhEzqWw84Tg7XcM 0trPaGiq4N0RTVxLGpjoEW1u/QBg+rAXclZY53lI7uum/UOYyDKWEMomalpJg/08/Rym Wrlv/DERP87az5MBX8CaUWY6qVB30oNiHEM02A/IVjDV/D1ab9sRe7Ki4XHx6Waxe5zX 0/8vy2q3Ng8clJPuF1Be562x1eufG/KCQE+V3lJUi5qFsdmBX/8gKoD2WPSfJBcrAG+v d9nMJyBHbCFwmKcLrvNailleWiwZ6ZCxxkvpWvPRQA9EBcCt8pRN1T51PXF4IbNxdUjB ktQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=gb0+CEuF/S88Vf0hiOm0kz/5DT2dLQGyRqzwpT9+ymQ=; b=P/UJdzJt+J23QRr64BmQgbcsZ9mdX7xzoy4l/acR9qdUccym+i3wuuUr+OAF22GLWU za5ArmCvJzoGfpmcoqPZJyKRsqyY+UX5V8jVHBvY+NfPNUZTePQuH1dXmjBST8Q4ifUH Rl4YhX8T0Krd3Kbxaxtd+w5ev/QMFYafWRwIC+/WWm//w/rH1agK6bMnqOuCXejz5jY+ M6xUsA+xqg7nxWey2+Vp5Fjt1j45FyL4wEFUCkMJErWAxyQBx6qeNUYpvcGWst8jDTOY +apMCETNSnf53PgGPO6vypBIWoBaxrrmNdDA0xENIxnkpf6L+Y1kw7vOJIbN5YmRG6Jd o4XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si10691785otj.115.2020.01.15.05.15.08; Wed, 15 Jan 2020 05:15:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728982AbgAONNA (ORCPT + 99 others); Wed, 15 Jan 2020 08:13:00 -0500 Received: from mga09.intel.com ([134.134.136.24]:58723 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbgAONM7 (ORCPT ); Wed, 15 Jan 2020 08:12:59 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 05:12:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,322,1574150400"; d="scan'208";a="256769759" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.167]) ([10.237.72.167]) by fmsmga002.fm.intel.com with ESMTP; 15 Jan 2020 05:12:57 -0800 Subject: Re: [PATCH 1/3] mmc: sdhci_am654: Remove Inverted Write Protect flag To: Faiz Abbas , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org References: <20200108143301.1929-1-faiz_abbas@ti.com> <20200108143301.1929-2-faiz_abbas@ti.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <518a9ea9-84e6-c9d4-90b6-7f13c9ab8d04@intel.com> Date: Wed, 15 Jan 2020 15:12:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200108143301.1929-2-faiz_abbas@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/01/20 4:32 pm, Faiz Abbas wrote: > The MMC/SD controllers on am65x and j721e don't in fact detect the write > protect line as inverted. No issues were detected because of this > because the sdwp line is not connected on any of the evms. Fix this by > removing the flag. > > Fixes: 1accbced1c32 ("mmc: sdhci_am654: Add Support for 4 bit IP on J721E") > Cc: stable@vger.kernel.org > Signed-off-by: Faiz Abbas Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci_am654.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c > index b8e897e31e2e..2d38b1e12a7e 100644 > --- a/drivers/mmc/host/sdhci_am654.c > +++ b/drivers/mmc/host/sdhci_am654.c > @@ -253,8 +253,7 @@ static struct sdhci_ops sdhci_am654_ops = { > > static const struct sdhci_pltfm_data sdhci_am654_pdata = { > .ops = &sdhci_am654_ops, > - .quirks = SDHCI_QUIRK_INVERTED_WRITE_PROTECT | > - SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > + .quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, > }; > > @@ -290,8 +289,7 @@ static struct sdhci_ops sdhci_j721e_8bit_ops = { > > static const struct sdhci_pltfm_data sdhci_j721e_8bit_pdata = { > .ops = &sdhci_j721e_8bit_ops, > - .quirks = SDHCI_QUIRK_INVERTED_WRITE_PROTECT | > - SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > + .quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, > }; > > @@ -314,8 +312,7 @@ static struct sdhci_ops sdhci_j721e_4bit_ops = { > > static const struct sdhci_pltfm_data sdhci_j721e_4bit_pdata = { > .ops = &sdhci_j721e_4bit_ops, > - .quirks = SDHCI_QUIRK_INVERTED_WRITE_PROTECT | > - SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > + .quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, > }; > >