Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3553988imj; Tue, 12 Feb 2019 00:14:01 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia9ht7VqgssFFkxmJgW9RXXzz2eKHLx2wFDorDvNveNfZNdQd2tsTfECrE3MBMPmjOWADNb X-Received: by 2002:a17:902:541:: with SMTP id 59mr2846895plf.88.1549959241857; Tue, 12 Feb 2019 00:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549959241; cv=none; d=google.com; s=arc-20160816; b=x86iJhq/YPuFhrPOebyA8YBIebKM2zqCyXW+5xpWL4PMMTjfzEV4724dl4A/cUIgKz wy17h+vJ7ZUWvSj6xZEODF+Bkv7F7s5q7FB/p+qkZrIiC/JZux6tisxH8Ov2LIMj4UPs AVEH8o2Q9h8gIqXV2gH4COYTr6ynJES2NUxulJISSLjunEBCyKemyx2NEDAuOMoJ5R/3 S5sAtBfk/KdhGSGLPgaSgsbXI5RXrFONTJU3XrfvPRXOWExDCtp/Gdhh7Zhd/BCV8TrF JduT2Fx0NnhJSfjEJAgUK4ticpQguDGaT9kUNPnkG3LAUdQev/CzPvQjIFLAgAk1Tku9 dOhg== 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=Z1Aa3Cj3h9WAd1Ar33oQaoeRNUKZu6eDt+gNC4d4+gU=; b=Vu07S2UEkx05ARp2pqvk6+2nIk4rnSTYeMGg3tOWi3OdyLwh4JBIzXMd5XlWDS2m36 Mq6RnMNaYosuYrOgApIAud9sfO6MGeVBmUrAs6eZ5Q0HmA9xdZk2qp0NlipsJCOVxJju 8TgUfQgmH63nBAI+xXfjKDaKW238INYjTdzxJCBRZYeZMrAx3eS+h5hZ+6smrIkgKn7P mmSh0/E0YQVd9nuh969QuB8wDBVxoYnAlLJ6XlGNDxxat4wZuSlDgvcbOOKOxyFZW8W8 Nh0wFtwrQMnIPAgAiUw/BPcD2tqkQxXj5XRMT4O0lDEKL0G8e9nnQyuPKStQQJ9quQAN hE9A== 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 23si11622003pgc.221.2019.02.12.00.13.45; Tue, 12 Feb 2019 00:14:01 -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 S1728230AbfBLIM6 (ORCPT + 99 others); Tue, 12 Feb 2019 03:12:58 -0500 Received: from mga09.intel.com ([134.134.136.24]:23624 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfBLIM6 (ORCPT ); Tue, 12 Feb 2019 03:12:58 -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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2019 00:12:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,361,1544515200"; d="scan'208";a="137909928" 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:12:54 -0800 Subject: Re: [PATCH v2 2/3] mmc: sdhci-omap: 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-3-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: <0af919d0-3a35-7aa1-bdd1-4d42128809c9@intel.com> Date: Tue, 12 Feb 2019 10:11:29 +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-3-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 now properly checking for the state of a WP GPIO, > so there is no longer any need for the sdhci-omap code to implement > ->get_ro() using mmc_gpio_get_ro(). > > Signed-off-by: Thomas Petazzoni > Reviewed-by: Thierry Reding Acked-by: Adrian Hunter > --- > Changes since v1: > - Added Reviewed-by from Thierry Reding > - Fix typo in commit log s/know/now/ noticed by Thierry Reding > > Note: this patch has only been compiled tested, as I don't have the > hardware to test it. > --- > drivers/mmc/host/sdhci-omap.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c > index d264391616f9..c2a28930086f 100644 > --- a/drivers/mmc/host/sdhci-omap.c > +++ b/drivers/mmc/host/sdhci-omap.c > @@ -987,7 +987,6 @@ static int sdhci_omap_probe(struct platform_device *pdev) > goto err_put_sync; > } > > - host->mmc_host_ops.get_ro = mmc_gpio_get_ro; > host->mmc_host_ops.start_signal_voltage_switch = > sdhci_omap_start_signal_voltage_switch; > host->mmc_host_ops.set_ios = sdhci_omap_set_ios; >