Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp499925yba; Mon, 1 Apr 2019 10:32:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYjks3Ps24/257XM8Uh5FN4Z7yCKYD9FbRdrv+rYBckfVJA1YAiR8sZXXKqxzc2ocGp197 X-Received: by 2002:a65:6496:: with SMTP id e22mr47593853pgv.249.1554139928280; Mon, 01 Apr 2019 10:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554139928; cv=none; d=google.com; s=arc-20160816; b=xNYD/r90OarPExtZ8VCN8n6ShwLcNf/V9wVSYPJ4/8NA+9iMSoLvLsDI7OeP/O+1tJ wkRlGabc76wpykmHYhA6GJIZYt/D2qPyfUrqgaej4pzLx0t43q5O4GDTkOSDewlxqxpc i9XYh3wiIAz6fy4bCqub1jOrewnJ4wk1ZFoitL5/dQPZpj9qgyFVdpNSiPEzHa7S/kwE B4J8uua8zrVHf+ujVsPH7f8UN5S7aVavYRDiCtG7PnbE/eacwJL2Qn3f2BrMABOEUdFq wR9kamVeLLMg/xK5HQGsSu6qCD3u71cxzKwokdvSBBvsT2IjFSrySaWn1YqIEMbg1seI zbHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Om3TFXgySvWhVCMuIRZpzetWiYhM9Re9IsFFacAQ2uM=; b=D5LXtCycgdcgYM3+8QCfr1deL0YMhOE4u62z/OANoi8f2f7LYZhhdAAmOE8a24hVEX O7pyoqcfNeojwfyA+5FHed1/2I73UUVKjPQLG6cRG8WpJqjT4UiIfsYaq5PrVCF0/MPW pFDu89tBJHz+ht8U0vrvu8fAe90CIsJOTYLasoYl3SVZ1Ist97+n00hzhJN/Arca3ONQ sxue9gr07/dMm2/H+pOBIasGNfTExC431RtsigCkT72MqvoLjq9is1hHvIghIPHY+yv+ pT8YZIGeqTlFDVPkrNM29oimpfvIoaQlZp43gKxCbaVO7Y7UAv3bvUU9hDm6Wlvbzx5z jfHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZC7KPkct; 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 i6si9095346pgj.329.2019.04.01.10.31.52; Mon, 01 Apr 2019 10:32:08 -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=@kernel.org header.s=default header.b=ZC7KPkct; 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 S1733038AbfDARaG (ORCPT + 99 others); Mon, 1 Apr 2019 13:30:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:36776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732666AbfDARaD (ORCPT ); Mon, 1 Apr 2019 13:30:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6988920856; Mon, 1 Apr 2019 17:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554139802; bh=jlr7iFa0Ds43YUHeZm5eBbGpa9g2r2DUyVeHG7IJcHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZC7KPkctt/qiOWW2qMQKNwyqQeh6XjIxKyO95wgcsHTlkliFxe80eTXFN+pMcdN8O hAekjgYiBJJUkXXCG3bph4IAi5zUEitBX7q4zQ8kXqF/+Gk/QXbFoUzziYfLpOOxym il8dfTjj9paCYHkOn3Fa4N3UNxiAY2+gR0SYrENw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Ulf Hansson , Arnd Bergmann Subject: [PATCH 4.4 019/131] mmc: core: shut up "voltage-ranges unspecified" pr_info() Date: Mon, 1 Apr 2019 19:01:29 +0200 Message-Id: <20190401170053.595436540@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401170051.645954551@linuxfoundation.org> References: <20190401170051.645954551@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Russell King commit 10a16a01d8f72e80f4780e40cf3122f4caffa411 upstream. Each time a driver such as sdhci-esdhc-imx is probed, we get a info printk complaining that the DT voltage-ranges property has not been specified. However, the DT binding specifically says that the voltage-ranges property is optional. That means we should not be complaining that DT hasn't specified this property: by indicating that it's optional, it is valid not to have the property in DT. Silence the warning if the property is missing. Signed-off-by: Russell King Signed-off-by: Ulf Hansson Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/core/core.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1220,8 +1220,12 @@ int mmc_of_parse_voltage(struct device_n voltage_ranges = of_get_property(np, "voltage-ranges", &num_ranges); num_ranges = num_ranges / sizeof(*voltage_ranges) / 2; - if (!voltage_ranges || !num_ranges) { - pr_info("%s: voltage-ranges unspecified\n", np->full_name); + if (!voltage_ranges) { + pr_debug("%s: voltage-ranges unspecified\n", np->full_name); + return -EINVAL; + } + if (!num_ranges) { + pr_err("%s: voltage-ranges empty\n", np->full_name); return -EINVAL; }