From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024AbcAGLUr (ORCPT ); Thu, 7 Jan 2016 06:20:47 -0500 Received: from mga03.intel.com ([134.134.136.65]:14784 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752817AbcAGLUp (ORCPT ); Thu, 7 Jan 2016 06:20:45 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,532,1444719600"; d="scan'208";a="885548657" Subject: Re: [PATCH v2] mmc: sdhci: restore behavior when setting VDD via external regulator To: Ulf Hansson , Jisheng Zhang , Ludovic Desroches References: <1449840989-563-1-git-send-email-jszhang@marvell.com> <20151218081138.GB15968@odux.rfo.atmel.com> Cc: linux-mmc , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <568E4942.7030800@intel.com> Date: Thu, 7 Jan 2016 13:17:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/12/15 11:55, Ulf Hansson wrote: > On 18 December 2015 at 09:11, Ludovic Desroches > wrote: >> Hi Ulf, Jisheng, >> >> On Fri, Dec 11, 2015 at 03:48:04PM +0100, Ulf Hansson wrote: >>> + Ludovic (We had some discussions around this code recently as well) >>> >>> On 11 December 2015 at 14:36, Jisheng Zhang wrote: >>>> After commit 52221610dd84 ("mmc: sdhci: Improve external VDD regulator >>>> support"), for the VDD is supplied via external regulators, we ignore >>>> the code to convert a VDD voltage request into one of the standard >>>> SDHCI voltage levels, then program it in the SDHCI_POWER_CONTROL. This >>>> brings two issues: >>>> >>>> 1. SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON quirk isn't handled properly any >>>> more. For the record, the way it was working made more sense to me i.e. if you have control of an external regulator then you know the power is not disrupted by runtime suspend. Also AFAIK Intel is the only user of SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON, so I am surprised you listed it as an issue that you have.