Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1333894ybc; Sat, 23 Nov 2019 19:22:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzCVQ68DsDykTdIAtv3iM+oSP+r8Zri/3ijBx2p4aA2vlS7RJvNAXyuIYvjUtzUIwq3fwik X-Received: by 2002:a17:906:5a83:: with SMTP id l3mr30569822ejq.194.1574565771682; Sat, 23 Nov 2019 19:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574565771; cv=none; d=google.com; s=arc-20160816; b=pWK3IoBlclJduSnMMiKDqLWu2gNRl6OdZXceHnsMBBF1EOGVafjTwrmdyI5NGsRQAi amnTxRZbp/DtHtHJZV/IM6lh+xrKGlVEmMpFCXLAHmW/9F7W21yIXKHaI1r7VXdlsgKm Eo09EXn6cJzCZ5hJKuxvDBtdRQoKhgdjQNffrjn2YqpWKgVYgHmQiPqKKM9qd0zWRpAj /ONDH2/241llHnF5+gjWG8qRfJJD9VNmm2VLbEBKDQ3tmDyqoZqzOlTzgGjlz0dVzu7x iM4AS3+xPtZvkUE4jrwxrwSSUD7NlBkoNW6jFBko9N4/90Dhm6TYH1VdZm/YVfmCK41Z IUPA== 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=DswDOcFLyZVT9xwF1vsGxZkcCPuWKeyXIg9og7dtlf8=; b=mIN68vreyTxsV/JDpxgINtufVeeKlya+1M5i5Uy7QUz0QZ90tH/cps9tSA+Ca1Qqdr MbLSZGLP+1ZasJj43ZTrtW3a7UX/BvXuAQuo6rK+AH55iWrlse9Kz9i8zBu0tLDO4das SEwr7rCEpNgy7V9gBp2CjfR5lklaKWcyy/APjVOUwx2V6ojtmdWKYpl1ah4BzUR7JVFB vryqd/d7X/8qI9ctzux8ZGI0rZwhhOIfiLrCMZ5z6S63ag79H3tu+ZgbZJRxRiIDk+D0 MAgW4zJJNv8Kkn0GVqzm1N7mMVRuYZcjlBUzyMBerK1af08YNd2XLDKylrCw6FHmbvQB uFnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=piZgvaJN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si1822032ejk.160.2019.11.23.19.22.12; Sat, 23 Nov 2019 19:22:51 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=piZgvaJN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbfKXDUv (ORCPT + 99 others); Sat, 23 Nov 2019 22:20:51 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38903 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbfKXDUu (ORCPT ); Sat, 23 Nov 2019 22:20:50 -0500 Received: by mail-ed1-f65.google.com with SMTP id s10so9441126edi.5; Sat, 23 Nov 2019 19:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DswDOcFLyZVT9xwF1vsGxZkcCPuWKeyXIg9og7dtlf8=; b=piZgvaJNNJQkFNPD1naXDJPog8oAuiZWrOQxtD1YTv+pcKCBikgoGCMpeqILfe0Gcl rdHxFgCLIY5QG00zAvQ7v5br8WNxct8b8wGKtBExOc9zhmTDuOUyzoKlNOl4kVZbAPBS +3FLkTXVjOI4CAUhp6orJFeregApqmjoRg4Y7jmCfUZbe1YoDrKKA03D4Tb3hPTjbOhd 6IkCz89DN/hff2OSqbvRF4URhnC4WaBp5F1nowZVwizhY8Ug0a3NwHajxkJG9o+BHvf2 xE8FHM3JhkgfTHmVEYDt8VDwZYsG/0NiTKMQAK3wQ/OIa/7yVWbi5eZ5KefpJxYRPkBU zQ7w== 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=DswDOcFLyZVT9xwF1vsGxZkcCPuWKeyXIg9og7dtlf8=; b=aeYLXGZwLUt1tIQUZyz/xu+s0W0QXIxSN93aOzsoqOST/r4K4pn35lbBZ3pEajUirr q6lUoJ1djy7yhM+KdjG3M336/bhAPPWKlNxNOEhqv8RQj/0Dv/Ubtz5jExGvk3zgVGBB zsdt/KflSB4w+Hz0KraUkTiXEReRhG7n6RfW89ILka5mGej8197RXUn1JrPrzt5Y5TP/ OYzyY7G+S6I/1CYjSKkBC9qHlUtU5jiofgq5Rd0YqTxiOsa2/OpFrZD454PiR1UHGyLK hoD8Hws2UuEXmPqov+/Z8wQB3ceNlM+UnaTbBQzYJFdh7UUgV4GR7nu8FL5P2LDpc3xU Lyhg== X-Gm-Message-State: APjAAAX7IMqPtX7A2IefNFkrG9Mx2wpE4GodLPP3pY1q6yQEFeQIN8JF zm0CeShpHrRfxUz1mq6HOXg4soK6MvrBm6+gIM44H1X54pI= X-Received: by 2002:a17:906:aad0:: with SMTP id kt16mr5218127ejb.223.1574565648659; Sat, 23 Nov 2019 19:20:48 -0800 (PST) MIME-Version: 1.0 References: <20191018131338.11713-1-hslester96@gmail.com> <20191023153313.GB5153@kunai> <20191031221211.GA3853@kunai> In-Reply-To: From: Chuhong Yuan Date: Sun, 24 Nov 2019 11:20:38 +0800 Message-ID: Subject: Re: [PATCH] mmc: renesas_sdhi: add checks for pinctrl_lookup_state To: Geert Uytterhoeven Cc: Wolfram Sang , Ulf Hansson , Wolfram Sang , "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 Thu, Nov 7, 2019 at 4:30 PM Geert Uytterhoeven wrote: > > Hi Wolfram, > > On Thu, Oct 31, 2019 at 11:58 PM Wolfram Sang wrote: > > > > Well, I don't like to bail out because this error is not fatal for basic > > > > operations. How about releasing priv->pinctrl again with an additional > > > > warning that pinctrl settings are broken and will prevent 1.8v modes? > > > > > > > > Opinions? > > > > > > Hmm, from a mmc driver probe point of view, I don't quite share this approach. > > > > > > I would rather fail as it forces the DTB to be corrected immediately, > > > rather than trusting some developer to look at a warning in a log. The > > > point is, in such a case it may never get fixed, if the product is > > > shipped with the wrong DTB. > > > > I could agree to this arguement, iff the only way pinctrl_select fails > > is a DT misconfiguration. I am not sure if this is true right now, and > > we can't be sure about the future. Or? > > Isn't "state_uhs" optional? So bailing out if it doesn't exist is wrong. > "default" should be there, if the device node has pinctrl properties. > > renesas_sdhi_start_signal_voltage_switch() already handles fallback > to 3v3 operation. > > Gr{oetje,eeting}s, > > Geert > Just ping this thread. I am not clear about what is the conclusion of how to deal with the error? Should I resend a new version of the patch? Regards, Chuhong > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds