Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp505902pja; Thu, 7 Nov 2019 00:34:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwu2Nso9aU/XZRTnJeulUs+TFDRAImM3dGGY0D+rqwpftspvTjgMAnQXuAAHMxq6CSJe8PZ X-Received: by 2002:aa7:d888:: with SMTP id u8mr2196886edq.144.1573115677878; Thu, 07 Nov 2019 00:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573115677; cv=none; d=google.com; s=arc-20160816; b=tvaEWwi1gkSe42DimFBlctnU78fMyFSRGEdUGdbjOA1Xc3zDpYPRfeNTiarhkYpHbV qAL25mKYxxgsyE42W2gsgFn/6ZFYqh2Yp6clT1tBUyujPCOLfjp/6ASND/N8dbNq1DmK n+budMT7eiaPVoz8xZiXaw7YE6frlzBxQr8peWNZzg4mw0XR0h7MLzP4yv/m5cloEhce Om19kqJF6uP0OlT6/2/C48yTXnaMTd4IZyQ05JK/8q/wjXP+PH9Xstvv3xfsbYA7nfsG CmJ4e1udE2IzDHXD+A479rywcEfE/dCGI1qcy70Urg2cMbX+9WefHbe63loD8w9h0gYU 0ggQ== 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; bh=C8SlBIYjjuh+a+loecxV7Gpt3WURvHvbz61KEdh7SEw=; b=XvuzqTVXSJn+CJ+v323nz8XzF9wvAknNzek3Z4A4J9jVo4tCmCitiPEfjCHW1o8VSk AgMa830lNITKX9/Hzf3HjCMmWL46i7uo2fAykG4TOXMIrBwlfDgawZ6eiwkh4sKhILER k5YpV43yF2z8eswfLBkPOdI1iFvY4j7cHRXT0OPGTUPKxKgvalEwYRRY0Fqp6Qm3Jpt+ ObYAvZr6qjMy/HsvdczAdezukrQdVrzSgqQMHq1Bwh5f6X/3yaeaQ8XIMuAeYkDuhCdX qC0wpsO1aqEgTWIq5GAlyCkpR3tmccJQDN4Wj/nigpNjkmE3YtzIY/9LPeDqzaW7uOZ8 lwVw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si996512ejm.165.2019.11.07.00.34.13; Thu, 07 Nov 2019 00:34:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733170AbfKGIat (ORCPT + 99 others); Thu, 7 Nov 2019 03:30:49 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:44822 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbfKGIas (ORCPT ); Thu, 7 Nov 2019 03:30:48 -0500 Received: by mail-oi1-f195.google.com with SMTP id s71so1213114oih.11; Thu, 07 Nov 2019 00:30:48 -0800 (PST) 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=C8SlBIYjjuh+a+loecxV7Gpt3WURvHvbz61KEdh7SEw=; b=WNNXAjs60yDE1kNkxOIq0oAET9tO2Li8B1oMCEBeb3pJ0/0y8y2uBkbSloCETMQJRM Oic0erHR02Xile4mFIOBSvkHoXPnsQMin5FpE8jDYwJY+Xty7JjxZ2hVUhxeJOI9m6BL jCOncsLcj+03FofJ1r9HLgwfEI4OwEPwLESH+EdqlpcpEtL69m/lN/ijPHNQkX4KDZQ+ zzGmEi5hIspfna9H1I2zwpuRUuNAAKqxSEuFLfI4k59bpgQhuD/yNsSiKTM2hCD7REoL gcHpTDe8wRJfpG7htEzqVZd/tCiC/e+gDTAlQqnKLyTcz9kZTAgth+UsDluuXwiDsh6b nVEQ== X-Gm-Message-State: APjAAAVAGqavycXTUhDknI0Yjp+zHkIW5DNrCOV9xNFVWmTlYLR/JPbx fG6J/2Vak33Ez/YHJWoaSgg8nnHFlbl3EaXrDVc= X-Received: by 2002:aca:fc92:: with SMTP id a140mr2165600oii.153.1573115447693; Thu, 07 Nov 2019 00:30:47 -0800 (PST) MIME-Version: 1.0 References: <20191018131338.11713-1-hslester96@gmail.com> <20191023153313.GB5153@kunai> <20191031221211.GA3853@kunai> In-Reply-To: <20191031221211.GA3853@kunai> From: Geert Uytterhoeven Date: Thu, 7 Nov 2019 09:30:36 +0100 Message-ID: Subject: Re: [PATCH] mmc: renesas_sdhi: add checks for pinctrl_lookup_state To: Wolfram Sang Cc: Ulf Hansson , Chuhong Yuan , 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 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 -- 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