Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1948527ybv; Fri, 14 Feb 2020 08:43:00 -0800 (PST) X-Google-Smtp-Source: APXvYqx8Iz2yOww0j9yK5eTovFnf5LIDO9mHVZ5QdBUcrvt6a1g8DaqYKTjhG7YqkQvAxy/uIH5o X-Received: by 2002:a05:6808:99c:: with SMTP id a28mr2375033oic.164.1581698580421; Fri, 14 Feb 2020 08:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698580; cv=none; d=google.com; s=arc-20160816; b=qtXZUqRudazkgwZoqQfZa1IRpesxyDne0kaJAzwHjbiMhHKGIekf4LzymaU5wFuiPH wf/66P79X705sZhNuFW3JBzjHa5zlpHjazobv8NaukgZvIMfqhpz5oYL+/r5vOP9wMWT FbR4eBPnFI+grOoPJhgqQ39nTkK9spLBYzWftckUHmNjLxunQ6XoUFHFpB2ffjtkU2iJ uErLvmL3uvIyAESPgekVW/+0zZVdNEUrP41ZtSobjk3d6/vYvdCf8jqz33Tder5nYOZx gIQDRLTHuN+Wzg2L5P0LC+Q5kZJLA0Ic28JL9AziFv1lHIg98MIej2TMgk8zwbI53BWx NpYw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uI5pYZgZuN+2gP+eDixGL2mI0Pv98zfHX0zu4fNVjIA=; b=bZA6q70mFrnzLdf1uT/KGSkjqHcN8M9Ctt5Vrk6dgmtFWEKOfAr1tgp7dWbShOLOCo IWNjr04kqegSohfP37X7u8Vy68s3wxlQLgoXdDXu9AF0VwOIm3NeR0+BuOxSF4teHo7p FqhrXPzV3LvZ1hq0PuCDd8w/iHsjMuZJGfE1qTPUMi50RUnpw67lBP34szefXaZfrqpf 9CtC7YuoEIyfl73Xq2v4S/fcDpeW8lfzw4oVfJwvNVntDWy4ldJop6MOOq1FiM0SmRcc XrLzMzCx3yQWmZ9NJBrvRa4nd4Sx8eDPrGf/UP+YMRjzcEfqHlINHVR5SmHeDFNCnCKv g/5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K8ZyUNOz; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7si3084904otd.280.2020.02.14.08.42.48; Fri, 14 Feb 2020 08:43:00 -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=@kernel.org header.s=default header.b=K8ZyUNOz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393987AbgBNQmI (ORCPT + 99 others); Fri, 14 Feb 2020 11:42:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:57842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393208AbgBNQWX (ORCPT ); Fri, 14 Feb 2020 11:22:23 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B987324752; Fri, 14 Feb 2020 16:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697343; bh=85Fpwrg1s5nFfiNRz/VMyBUDJukDM49smNb0L1R9tok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K8ZyUNOze2oqHVDPsfmn3vwLAC0pVYrT2VSNmkvHts+nL0ihtNT6NfPS6Gckx660t qBSFa+7nqieM0avb2tOT++bpLMY0n6ol/jcUKlW3W40MyT/zM3nD97K8y5w6zh7xuV HE7O+ASDCj7i41TjZodf6P8kKozgBazzaXupLDY0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Miquel Raynal , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL 4.9 048/141] regulator: rk808: Lower log level on optional GPIOs being not available Date: Fri, 14 Feb 2020 11:19:48 -0500 Message-Id: <20200214162122.19794-48-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miquel Raynal [ Upstream commit b8a039d37792067c1a380dc710361905724b9b2f ] RK808 can leverage a couple of GPIOs to tweak the ramp rate during DVS (Dynamic Voltage Scaling). These GPIOs are entirely optional but a dev_warn() appeared when cleaning this driver to use a more up-to-date gpiod API. At least reduce the log level to 'info' as it is totally fine to not populate these GPIO on a hardware design. This change is trivial but it is worth not polluting the logs during bringup phase by having real warnings and errors sorted out correctly. Fixes: a13eaf02e2d6 ("regulator: rk808: make better use of the gpiod API") Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/r/20191203164709.11127-1-miquel.raynal@bootlin.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index dfa8d50a5d741..28646e4cf3bae 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -589,7 +589,7 @@ static int rk808_regulator_dt_parse_pdata(struct device *dev, } if (!pdata->dvs_gpio[i]) { - dev_warn(dev, "there is no dvs%d gpio\n", i); + dev_info(dev, "there is no dvs%d gpio\n", i); continue; } -- 2.20.1