Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp222691ybt; Mon, 6 Jul 2020 07:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEsLrFFiuNr8TiM/jeGPUrv71KB5QNPw3cPKC3Y90Js754CP4aYbSoODlLn8tb/iHbJDHx X-Received: by 2002:a17:906:57da:: with SMTP id u26mr44847708ejr.157.1594047089497; Mon, 06 Jul 2020 07:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594047089; cv=none; d=google.com; s=arc-20160816; b=lycjrgNGHmjjpR7rW8joK1lzrtQW6Wy8G2IpGYgjDiOf9EtS3/QF0grRfjTPG+Dj02 DWwF7IekLnYSDq7G9WjXgK5yW4dph2eXo5PylW4jh1IR89OfjL7ssLFL1oIclRMwLG6e M9Q6xl4c8oXVNZI2dVBAsugZuidFMO4TDvaaE9guPiXtocvmIIDH8iCDwZ/O1bhKhjVb aFrnhoX33c/ll9jdOa6LtEbYFOjgV6ifd5Hdpu5mrbPNe0e37Wz3luGF4pxT5e107XDa 2sz8W4+Jybkij6ESDlSkmRVRJC4xB70kH3zfGZmLzR0Krb9mKUlih0ErVpPm+HOzgOj4 euQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=InByvEjJPlQ7gTBk+VqXmPI+tHOV3mOPt/I3k/Qwrbw=; b=G1pzvsuK48LPbonqgjp0z2Gx5egI0dsrHDFeaErC/qupgykxH3JHZbVl1PtJrmdZeJ AsaJZ3p0xPw+deVbCiZC4AFqZ7d5oY97tdDWMSOknhudMW9wyXDQweT/BYtbDyArGeBV I6kcN3hiq/vj2qw9UMm2+QkgdDCicJg7YcWShmcydGXjYn2/8sjm2+OHeu83KtBxEcCc aGZPR+lx+Lo5EdCiqHoWkGtCl0f1oS8LLjXDsoAyVt5NargxhVXBP9gY45NE2xrvGReT O55OtSLsHxlECBz+AlGsGfDn31wAck30Q24wo3V1RXbdRBKrp4AnPNni9G9K5hsZQFHZ wpxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o1y7v38N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si13261969eds.349.2020.07.06.07.51.06; Mon, 06 Jul 2020 07:51:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o1y7v38N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729471AbgGFOty (ORCPT + 99 others); Mon, 6 Jul 2020 10:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729467AbgGFOtw (ORCPT ); Mon, 6 Jul 2020 10:49:52 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC5FC061794 for ; Mon, 6 Jul 2020 07:49:52 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id x13so15990245vsx.13 for ; Mon, 06 Jul 2020 07:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=InByvEjJPlQ7gTBk+VqXmPI+tHOV3mOPt/I3k/Qwrbw=; b=o1y7v38NkkoYxogRzwqgVzvL9W57wSuo9qqOEgxk/wXAT0aJcGb7V2kwmKgSjRXbCQ 8YDhUi1ZRA3DxqqGX5oKE+UPROSVKnLTtkFs0up6GgDSaajq9qruFaag7xXX69XYBx8t KeR/kdKwiVRghrGaV6CKTZkVoaDm19lkYkKXWeFqEajTUKsGGVOrT0QX5xNAdIoR6fWe tkwwIt+LSPvw8a+oJh9qM1s25LgtOjoClipA3DDj1d7oX9Lne7O8GJcH3p4/EeYkLt2q HM060lgIsDiMlyGNYFiJWaUNlPSO43KMRfYQlLE5+gRocuB+GGoZJOTJ25QOUGT6efMQ irmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=InByvEjJPlQ7gTBk+VqXmPI+tHOV3mOPt/I3k/Qwrbw=; b=aff6wW/jRLf5tFkhXEl/igx3yld5eSYlBKqIwuHAyNDB7UWcHPuOAJz2kIaxpIqefp /Ts6IPjKp8a515NpZ/RSccQRA/O8+4CAlDnpTEEjOZDqRejwCkH67w3tewb3OkQhVxzs n+Hl2PTOFVYoxbI1NfYod6Qn9oe++ZD9tI/DT6hGOym4C7z+Noao6/QNfVY9uD0gb8T6 eUjzhldRjExTvlLIHczhZgJq32p4nG8VF23DWTztds8TLa0QpOqG8m/C4zkWlFatcH+H EUe7vd64S7tUzhKiWqj5aRZZSIT5CksFjSTcolTaDsOW1itLdoV9r99dgchRRUQD3IJg j5qw== X-Gm-Message-State: AOAM533FEgu/UeegqBNUNo1P/rl38OnFtIEueP1cw+nHxKpvifjdm5Jm qdBkbzH5X/eO6orGbPUNtAh4viFv029CAoSsv22efQ== X-Received: by 2002:a67:d01a:: with SMTP id r26mr17252391vsi.200.1594046991485; Mon, 06 Jul 2020 07:49:51 -0700 (PDT) MIME-Version: 1.0 References: <1589541535-8523-1-git-send-email-vbadigan@codeaurora.org> <1592919288-1020-1-git-send-email-vbadigan@codeaurora.org> In-Reply-To: <1592919288-1020-1-git-send-email-vbadigan@codeaurora.org> From: Ulf Hansson Date: Mon, 6 Jul 2020 16:49:14 +0200 Message-ID: Subject: Re: [PATCH V5 0/3] Internal voltage control for qcom SDHC To: Veerabhadrarao Badiganti Cc: Adrian Hunter , Bjorn Andersson , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , linux-arm-msm Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Jun 2020 at 15:35, Veerabhadrarao Badiganti wrote: > > On qcom SD host controllers voltage switching be done after the HW > is ready for it. The HW informs its readiness through power irq. > The voltage switching should happen only then. > > So added support to register voltage regulators from the msm driver > and use them. > > This patchset was posted long back but not actively pursued > https://lore.kernel.org/linux-arm-msm/1539004739-32060-1-git-send-email-vbadigan@codeaurora.org/ > So posting it as fresh patchset. > > Changes since V4: > - Added clear comments on condtion which allows either to > tunf off/on Vqmmc or to set load. > - Added mmc_card_removable() to the condtion whcih checks > if the card is eMMC or other card. > - Rerturning error for unsupported voltagtes in > sdhci_msm_start_signal_voltage_switch() > - Moved setting ios.power_mode to mmc_alloc_host(). > > Changes since V3: > - Dropped reading of regulator load values from device tree. > - Dropped documentaiton chagne. > - Since only Vqmmc supply of eMMC would be kept On during suspend, > setting load only for this regulator so that it can go to LPM. > And since this Load reamins same, load value is hard-coded in the driver. > > Changes since V2: > - Removed redundant log from sdhci_msm_set_vmmc. > - Added the condition for skiping disabling of vqmmc for eMMC. > - Updated logic such that, setting load for vqmmc only if > it is kept ON. > - Retained ack by Adrian for second patch. > - Updated dt properties names as per Robs comments. > > Changes since V1: > - Removed setting load for Vmmc regulator while turning it on/off. > Instead setting the active load once during probe. > - Simplified handlng of supplies for BUS_ON/OFF cases in shci_msm_handle_pwr_irq(). > - Moved common code out of switch case in sdhci_msm_start_signal_voltage_switch(). > - Updated variable name to sdhci_core_to_disable_vqmmc. > - Updated pr_err logs to dev_err logs. > Veerabhadrarao Badiganti (2): > mmc: core: Set default power mode in mmc_alloc_host > mmc: sdhci-msm: Use internal voltage control > > Vijay Viswanath (1): > mmc: sdhci: Allow platform controlled voltage switching > > drivers/mmc/core/host.c | 1 + > drivers/mmc/host/sdhci-msm.c | 206 +++++++++++++++++++++++++++++++++++++++++-- > drivers/mmc/host/sdhci.c | 32 ++++--- > drivers/mmc/host/sdhci.h | 1 + > 4 files changed, 218 insertions(+), 22 deletions(-) > V5 applied for next (did some minor amendment to patch 2), thanks! Kind regards Uffe