Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp512832imm; Thu, 5 Jul 2018 04:24:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcZRvIoiAHJoB9alsbzscvtuICBaKPRosVhQpvyb6bSLCv4oEX7thlIv9eQxVJ40JOJTgeH X-Received: by 2002:a62:2541:: with SMTP id l62-v6mr6068277pfl.0.1530789889945; Thu, 05 Jul 2018 04:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530789889; cv=none; d=google.com; s=arc-20160816; b=eIkzUIJ/3lMSfMLdSqCxjV5I5mRUuyBuaav9JPkNr/vbPzaA0vFs7Dmh9XmjSRGk/Y lpmg96zZckZhAH+nLiJl+QGxIRy6kYZonOzmGedSPVpygQ/zjj/sUTEq+YQDiEa/dlOS cy69eTLL4fVZso1VkjEDHR0KNoT3NdNZKAXdCk4gyf0boysmuKnLEP98yv/FK3ev1nm0 MGrSo49v0Ttjzfv3OrdHSxC/G0JZedvxE7oVsWmeK7hITLmvDJokoCYDi+e7sj9quOxO kKCL/GN0+1tH8QtzpqaHnoow5FjtSYYBGSl1zcWkTuWoqW9QljsqrzcSyK5d+qEtNaig nOxg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CsMrl3/TaaMURsGvMufugAgwCIxU+5Al5jQAk0RE2YY=; b=X35hCeoYI0UEy/prFJsXKEUu7o6gZM31Gn1P1Dfl8lTuCzAH/gn8OY7OVY/d3db8aQ KY+L/IJrOSCUn25U4alHx2a9hg3QGOWVUpcjSjlTnU1MGyfkRa6r4+0j+chlT2zsx2y2 7vKMuuPMH9VSZsIupO6d+08tkDwuSRcWIswOkSoWd3OzoN+ZZdv39rWrbnVe9F95XN/l PdIic6/7x0djq1cTAgTWLs1/vxC0t5gZ9YLzHS7pL+LKdunWmgDYFMS0hGg32SUadabL IPElhvQ8ZmqrYi3z5Ac5LFHbJyfxztdG+eDXkigBGNPi189vG1xfgOlbMM211QQ0eMny pUNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V9n5oLnL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23-v6si5573466pgb.623.2018.07.05.04.24.35; Thu, 05 Jul 2018 04:24:49 -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; dkim=pass header.i=@linaro.org header.s=google header.b=V9n5oLnL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754032AbeGELXQ (ORCPT + 99 others); Thu, 5 Jul 2018 07:23:16 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36633 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753777AbeGELXP (ORCPT ); Thu, 5 Jul 2018 07:23:15 -0400 Received: by mail-io0-f194.google.com with SMTP id k3-v6so7401600iog.3 for ; Thu, 05 Jul 2018 04:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CsMrl3/TaaMURsGvMufugAgwCIxU+5Al5jQAk0RE2YY=; b=V9n5oLnLYmZ+upPA6Qemfq/kwHfrlW7isnDv/b9PDinfM6bZcHGfAPkzkRctvtsLiS PRsTCeV1ox3lFffCOY11g/kGFwYQq5yj5pCzyTr3lOJInk+T4QFK9oECWPV60TTmWxte yKcZTOyfRAH3WXYIf4CFZkGjxUFLMggiUXoDU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CsMrl3/TaaMURsGvMufugAgwCIxU+5Al5jQAk0RE2YY=; b=GhPJs1pw2zujCpePuyDculCWi0TQYziT3EBjLu8fJ4Tku/OytJxVX6vNA6Wu3hrsA1 IZMzo5oUm6+VM7v9cBs6yI3uuB3hUk/M6DgLPW6Ckcsm3GZNfdm5wVYEe/PUErs1pPfx a4fSd1wQditYVpOgZSM+Rg3WyUMcwi9cQH+blds/UDWr6DtV8TYZsJPfZUG3ZVJFcNWG tRbymK7a/K1BrUBlmGCivat01R+3WSZnoadDlbQJyPjhxpfVS0eGSypD6qEQnDCd7xH0 RkqP1fSdgLcbdY9PRW7DESuUwRGr3nobpfV1+RmuIEsQudJDC++ryv8HGxpXsQMDEy2/ wXGw== X-Gm-Message-State: APt69E1hTGspwBHQllYbgoPiuRwzF3J6LK6sl7R8Lvl08XJGDLaN6uVg ZDGNse8s2c/iIlvrlEBfB/yM4Pkvabrk/feVP+SXig== X-Received: by 2002:a6b:e403:: with SMTP id u3-v6mr4378144iog.131.1530789794451; Thu, 05 Jul 2018 04:23:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:818f:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 04:23:13 -0700 (PDT) In-Reply-To: <20180704150745.21003-1-stefan@agner.ch> References: <20180704150745.21003-1-stefan@agner.ch> From: Ulf Hansson Date: Thu, 5 Jul 2018 13:23:13 +0200 Message-ID: Subject: Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states To: Stefan Agner Cc: Adrian Hunter , Fabio Estevam , Haibo Chen , Aisheng Dong , Michael Trimarchi , Russell King , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List 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 4 July 2018 at 17:07, Stefan Agner wrote: > If pinctrl nodes for 100/200MHz are missing, the controller should > not select any mode which need signal frequencies 100MHz or higher. > To prevent such speed modes the driver currently uses the quirk flag > SDHCI_QUIRK2_NO_1_8_V. This works nicely for SD cards since 1.8V > signaling is required for all faster modes and slower modes use 3.3V > signaling only. > > However, there are eMMC modes which use 1.8V signaling and run below > 100MHz, e.g. DDR52 at 1.8V. With using SDHCI_QUIRK2_NO_1_8_V this > mode is prevented. When using a fixed 1.8V regulator as vqmmc-supply > the stack has no valid mode to use. In this tenuous situation the > kernel continuously prints voltage switching errors: > mmc1: Switching to 3.3V signalling voltage failed > > Avoid using SDHCI_QUIRK2_NO_1_8_V and prevent faster modes by > altering the SDHCI capability register. With that the stack is able > to select 1.8V modes even if no faster pinctrl states are available: > # cat /sys/kernel/debug/mmc1/ios > ... > timing spec: 8 (mmc DDR52) > signal voltage: 1 (1.80 V) > ... > > Link: http://lkml.kernel.org/r/20180628081331.13051-1-stefan@agner.ch > Signed-off-by: Stefan Agner I am fine with this. Do you want me to apply this for now, to get it tested? I guess its also material for stable and as fix? In regards to the printed warning, it sounds to me like a different issue, which we can solve on top. Right? [...] Kind regards Uffe