Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2384641ybh; Mon, 9 Mar 2020 04:57:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtcgYg4F4BhQJhRgRLdHystYFQwZSIdkEuK5QOF/aqCFi7kf06Vfvm/Ne7zTHHYc8L2C49i X-Received: by 2002:aca:cf0d:: with SMTP id f13mr9218366oig.162.1583755028353; Mon, 09 Mar 2020 04:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583755028; cv=none; d=google.com; s=arc-20160816; b=HhKnp/yaPVFcvy23hcrFwXOyNOa0XB51xvu+JkV4dx379X/Qhhyv1qUJobeBBYhObC Pj/i1YZEtkYTZ8SYsnlEw1WonWS0Q2WDGTAqskHJxhSPoMaFgQISR1tNDE2qY7MGS82z EXUwk2MswONvKgis+sEWCfK2uwhRuxmmXUOdnNQ55ihyz3KBGi2nt0PSQIqRi762HJ3I U0juwr4BvN7g0BiSKiGE/5oazTViVJTBUURgx/ZCRirWTr8QHc4o1z6fYguqRA9PX79f YgQ+vvcXVy8RzahTLzPkreQO7Po48cj5xC70aJ3akMLiJc0197i0NhLu7xakOv9f79+q eTvg== 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=rVZAxqonvSbj3sN/CYvRUy0iS4d2FYbw+xUYBCsxdo8=; b=aAKXgHTJPPiKaIBaODiJCUrZbRCTPe++17nMn4kYBehvGCOhAbUxFlTDzZaTKiNDO/ hugXjk1nxIdDKPqyuCuLKfFTfh4ZAoNHNL9gEjLKapsveRuoxBlrIDdYVqwWRyIi/5qz Aw8glBMTy5EBmi7RQe6JG+CqzgAWTFNTUGx7wpdVQk9CKjTpm+idTCGBZ9aeCeiG+/1Q tGRtqPg28xNt3+OQPh16l2Y1VXG5zCLHGbi1yuzCwe8bEVtbY7lfum2s3Sv5qM4a0rXK T19JryuuUGVaqAoIkGu0RIJFCF8CPe5tcSohtpv8W6v1E1odOBUwmb01dKVzDd/hXnHX x27g== 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 x10si6191305oto.305.2020.03.09.04.56.57; Mon, 09 Mar 2020 04:57:08 -0700 (PDT) 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 S1726668AbgCIL4P (ORCPT + 99 others); Mon, 9 Mar 2020 07:56:15 -0400 Received: from mga07.intel.com ([134.134.136.100]:23453 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbgCIL4P (ORCPT ); Mon, 9 Mar 2020 07:56:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2020 04:56:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,533,1574150400"; d="scan'208";a="235664047" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.167]) ([10.237.72.167]) by orsmga008.jf.intel.com with ESMTP; 09 Mar 2020 04:56:11 -0700 Subject: Re: [PATCH v2 06/11] mmc: sdhci: xenon: Use sdhci_set_power_and_voltage() To: Nicolas Saenz Julienne , linux-kernel@vger.kernel.org, Hu Ziji Cc: phil@raspberrypi.com, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, f.fainelli@gmail.com, stefan.wahren@i2se.com, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Ulf Hansson References: <20200306174413.20634-1-nsaenzjulienne@suse.de> <20200306174413.20634-7-nsaenzjulienne@suse.de> <4e74203a-5444-2b7a-3555-9615cc45aaae@intel.com> <06fc4d492f66bfbe7260937efa849f77c7c12b0d.camel@suse.de> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Mon, 9 Mar 2020 13:55:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <06fc4d492f66bfbe7260937efa849f77c7c12b0d.camel@suse.de> 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 9/03/20 12:53 pm, Nicolas Saenz Julienne wrote: > On Mon, 2020-03-09 at 09:20 +0200, Adrian Hunter wrote: >>> -static void xenon_set_power(struct sdhci_host *host, unsigned char mode, >>> - unsigned short vdd) >>> -{ >>> - struct mmc_host *mmc = host->mmc; >>> - u8 pwr = host->pwr; >>> - >>> - sdhci_set_power_noreg(host, mode, vdd); >>> - >>> - if (host->pwr == pwr) >>> - return; >>> - >>> - if (host->pwr == 0) >>> - vdd = 0; >>> - >>> - if (!IS_ERR(mmc->supply.vmmc)) >>> - mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); >>> -} >> >> This code is different. The commit message should explain why it is >> equivalent. Has it been tested? > > Yes, I should've pointed it out. The rationale behind including sdhci-xenon and > sdhci-pxav3 is based on xenon's original commit message (99c14fc360dbb): > > mmc: sdhci-xenon: add set_power callback > > Xenon sdh controller requests proper SD bus voltage select > bits programmed even with vmmc power supply. Any reserved > value(100b-000b) programmed in this field will lead to controller > ignore SD bus power bit and keep its value at zero. > Add set_power callback to handle this. > > I can't test it, but it felt to me as the implementation differences are only > there as different people wrote the code. Ultimately, I'll be happy to drop > them from the series if you feel it's too much of an assumption, I can see how > the controllers could react badly to the ordering change. If not I can send a > v3 with fixed commit messages. We can wait a bit and see if anyone provides a Tested-by tag, otherwise safer to drop it.