Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755641AbcCXI2u (ORCPT ); Thu, 24 Mar 2016 04:28:50 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:36150 "EHLO mx0a-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbcCXI2n (ORCPT ); Thu, 24 Mar 2016 04:28:43 -0400 Date: Thu, 24 Mar 2016 16:24:49 +0800 From: Jisheng Zhang To: Jaehoon Chung CC: Krzysztof Kozlowski , Ulf Hansson , Adrian Hunter , , "Ivan T. Ivanov" , , , Subject: Re: Warnings for invalid VDD (sdhci-s3c) Message-ID: <20160324162449.29c9cf78@xhacker> In-Reply-To: <56F3A0B7.4050509@samsung.com> References: <20160324155840.50474b98@xhacker> <56F3A0B7.4050509@samsung.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-24_04:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1601100000 definitions=main-1603240132 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 38 Hi, On Thu, 24 Mar 2016 17:09:27 +0900 Jaehoon Chung wrote: > Hi, > > On 03/24/2016 04:58 PM, Jisheng Zhang wrote: > > Hi, > > > > On Thu, 24 Mar 2016 16:28:56 +0900 Krzysztof Kozlowski wrote: > > > >> Hi, > >> > >> After 918f4cbd4340 ("mmc: sdhci: restore behavior when setting VDD via > >> external regulator") On Trats2 board I see warnings for invalid VDD > >> value (2.8V): > >> > >> [ 3.119656] ------------[ cut here ]------------ > >> [ 3.119666] WARNING: CPU: 3 PID: 90 at > >> ../drivers/mmc/host/sdhci.c:1234 sdhci_do_set_ios+0x4cc/0x5e0 > >> [ 3.119669] mmc0: Invalid vdd 0x10 > > > > Per my understanding, the wrong vdd indicates a wrong ocr, what's the voltage of > > this host's vmmc regulator? > > As i know, it's fixed-voltage with gpio on trats2. It's 2.8V. > I didn't check this entirely..need to check ocr value. > I may know the reason. the vmmc is 2.8v, then mmc_regulator_get_supply() convert the value to a ocr as 0x10. The key here is that the 2.8v is invalid in SDHCI case and isn't accepted by current sdhci driver. I dunno the elegant solution to handle this case, let's wait for sdhci maintainers idea. Thanks, Jisheng