Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3554096imj; Tue, 12 Feb 2019 00:14:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IZVc19nwonogmUMhwfBIxERhZRgL4KOpif2uzpjL8WgP0LQGMBtUaCU5653qwE3ICN0SxKR X-Received: by 2002:a62:43c5:: with SMTP id l66mr854024pfi.77.1549959251764; Tue, 12 Feb 2019 00:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549959251; cv=none; d=google.com; s=arc-20160816; b=UZP40cPYR1l1cCUtlqu8hF1qN3e3wWbkKHMOAetvrX3eALfp82KVn0gt150OGCFZqA inrUfJgaYhNGLbHLzM+pK+hXfXhtrxrvxL/T+e1Kj+II37GixC5IwNzK2e9NPvq+Mh7G uWkDFq+u1oCmBzp2j9fXY/9H/++Xa9o0YwZRx2KHVyqLpmSs7QY8c6sw+dks+Czp3Oc2 +hDR4a4vAfj5ilOIsuZebwWXcQgi5Af/xZ8nO87CY79G7zpWTjM0O0ILs0T16ORXb//k mYujmU3mj3tCJ/LK/aLyqs2T0AZ9d9u9KJlGsjhmE3eQ+wwIjykXyarKJ4T9y7XFxD6L HLgw== 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=ujGZKy9ZwLmveidgTWXfRY0+E+tcLMBPJXE8riET5Nk=; b=LG6/bVLxBw+8bhEuAy6i1eVEh2SmwODNTa1KoS69ZsLZTkjDG+xmOj38sY+/EQSJ71 iPMp14OpHIw3sTY8W2Erfvwwf4UPpVii/8vOfiYwcgqxt/9TJ/1CfmpYBSrY2QZuSGhZ AS2U9a+7/OqKuOIRTHd7DakajhOO3joQK5oSXWGe7cWnYxXiANa3bUMaTg1FJN2dwX+O 3qyuyZb3LhVStU055X0uK/ZE/wyjyZd8cCNRnI7ZdZxXk7UoTM8wViMBfGYnMVuzeP+s Bpgz8kCX4Q8jH1sazvpl+gWLn2GwC7nshJf5KvrrkIMzsKIgrWBRNMSZ2YkulhB7HS23 OxmQ== 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 f23si10908132plr.151.2019.02.12.00.13.56; Tue, 12 Feb 2019 00:14:11 -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 S1728357AbfBLINN (ORCPT + 99 others); Tue, 12 Feb 2019 03:13:13 -0500 Received: from mga04.intel.com ([192.55.52.120]:59506 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbfBLINN (ORCPT ); Tue, 12 Feb 2019 03:13:13 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2019 00:13:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,361,1544515200"; d="scan'208";a="137909992" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.56]) ([10.237.72.56]) by orsmga001.jf.intel.com with ESMTP; 12 Feb 2019 00:13:09 -0800 Subject: Re: [PATCH v2 3/3] mmc: sdhci-tegra: drop ->get_ro() implementation To: Thomas Petazzoni , Kishon Vijay Abraham I , Ulf Hansson , Thierry Reding , Jonathan Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Faiz Abbas , Thierry Reding References: <20190211132342.31009-1-thomas.petazzoni@bootlin.com> <20190211132342.31009-4-thomas.petazzoni@bootlin.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Tue, 12 Feb 2019 10:11:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190211132342.31009-4-thomas.petazzoni@bootlin.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 11/02/19 3:23 PM, Thomas Petazzoni wrote: > The SDHCI core is know properly checking for the state of a WP GPIO, > so there is no longer any need for the sdhci-tegra code to implement > ->get_ro() using mmc_gpio_get_ro(). > > Signed-off-by: Thomas Petazzoni > Tested-by: Thierry Reding > Acked-by: Thierry Reding Acked-by: Adrian Hunter > --- > Changes since v1: > - Added Tested-by/Acked-by from Thierry Reding > > Note: this patch has only been compiled tested, as I don't have the > hardware to test it. > --- > drivers/mmc/host/sdhci-tegra.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c > index e6ace31e2a41..6ed7323bf030 100644 > --- a/drivers/mmc/host/sdhci-tegra.c > +++ b/drivers/mmc/host/sdhci-tegra.c > @@ -237,11 +237,6 @@ static void tegra210_sdhci_writew(struct sdhci_host *host, u16 val, int reg) > } > } > > -static unsigned int tegra_sdhci_get_ro(struct sdhci_host *host) > -{ > - return mmc_gpio_get_ro(host->mmc); > -} > - > static bool tegra_sdhci_is_pad_and_regulator_valid(struct sdhci_host *host) > { > struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); > @@ -837,7 +832,6 @@ static void tegra_sdhci_voltage_switch(struct sdhci_host *host) > } > > static const struct sdhci_ops tegra_sdhci_ops = { > - .get_ro = tegra_sdhci_get_ro, > .read_w = tegra_sdhci_readw, > .write_l = tegra_sdhci_writel, > .set_clock = tegra_sdhci_set_clock, > @@ -893,7 +887,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra30 = { > }; > > static const struct sdhci_ops tegra114_sdhci_ops = { > - .get_ro = tegra_sdhci_get_ro, > .read_w = tegra_sdhci_readw, > .write_w = tegra_sdhci_writew, > .write_l = tegra_sdhci_writel, > @@ -947,7 +940,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra124 = { > }; > > static const struct sdhci_ops tegra210_sdhci_ops = { > - .get_ro = tegra_sdhci_get_ro, > .read_w = tegra_sdhci_readw, > .write_w = tegra210_sdhci_writew, > .write_l = tegra_sdhci_writel, > @@ -980,7 +972,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra210 = { > }; > > static const struct sdhci_ops tegra186_sdhci_ops = { > - .get_ro = tegra_sdhci_get_ro, > .read_w = tegra_sdhci_readw, > .write_l = tegra_sdhci_writel, > .set_clock = tegra_sdhci_set_clock, >