From patchwork Thu Nov 28 13:43:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 180431 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp167072ile; Thu, 28 Nov 2019 05:44:01 -0800 (PST) X-Google-Smtp-Source: APXvYqykh+SQQhFvOooaPGSavVBKAUQ6/0k81x41m0qeg70ItyHudsuDGpSE+gp6GgGfju6iQHRp X-Received: by 2002:a05:6402:1ca6:: with SMTP id cz6mr13390269edb.151.1574948641613; Thu, 28 Nov 2019 05:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574948641; cv=none; d=google.com; s=arc-20160816; b=WuKRrXVgGWG6ssBIa+RQiadeJkQGCd1VK6bIn3qd9hg9lLVkUtF3XxsD14p/amq/uL OqF5OsUSfotGJCbsWP8ju1fW6KwoHfVysLIxjpC+kZnkn+WIehhH/d7eQZDHqSfhnBFo /oye0c018s0FT1+WKFpJmJl+Act5ypvHIt7YnuOg2MB9u8i0G3n58w9Xj7mse6gwH1mz srs2+vHAkQi95I5p9gWN6sop+39d21Khr0KBEKWPP9mo3TBH1iiqM9u/w4HIwHsCQgUY Q10wg4ZjdVR/JOnYLkak7e1d7LDBDx3qXXuj3SEY+lnA7pXh1jS/GQqcJsPgtzSBS0CM tAhg== 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=vtzLD0tyab7VEFg5K+G3bH3VUcvOhRi/b0o/Pb84uPg=; b=fKf67x8VsiIfrfHCFNYtHLWgf75mROjDMjIzh63mVlyieJovEesMD1ZA2MWVeQP/aY C2bZb+jT6SiaPH6AJqmpmzy7bJ81j5uNxcgTsiDoGh1F4EHzhUrPTWcfBDxpYAqbjUFl Ui1DUAhTADQz4Me1wNoV/Nrqkw50Bj9wxNDpsxdjAlu1a69FyGGIJaCHlYsf4I7BK/mA iZgiLV5HaHaaPpOHOFOY4zrqvN74u8vl2hGz3p0fT846TrOy2iXGHgrjwaxtJRbJsYKq dSUYOij8WVAWNgQKemLRKo9Uazs5pshttbLpT2MViislYYCG3JnPr3pUOiBRkcjz1v5r pk7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tIfp8pk9; 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 dn24si14368908edb.251.2019.11.28.05.44.01; Thu, 28 Nov 2019 05:44:01 -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=@linaro.org header.s=google header.b=tIfp8pk9; 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 S1727059AbfK1Nnx (ORCPT + 26 others); Thu, 28 Nov 2019 08:43:53 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37102 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfK1Nnw (ORCPT ); Thu, 28 Nov 2019 08:43:52 -0500 Received: by mail-wm1-f66.google.com with SMTP id f129so11725879wmf.2 for ; Thu, 28 Nov 2019 05:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vtzLD0tyab7VEFg5K+G3bH3VUcvOhRi/b0o/Pb84uPg=; b=tIfp8pk983wWAlUIotSYeqWNg3ZI5ZwNr8gf2fngdwvGRNbPC89oqvVwYbs5HxV5Xp jUJ9wSR8H29ha+IAEKJUY7BA6srBV8K2TXitMb0yjTK0w9Ir6AkJCuCxtOtdCkdBbPJw fYDpGW59cKqQFb6Q61PO0ksF0XvWW/IeWTDZvbvjlSXC0JE3Et/LvYLs3mope5NEBUuF ro3PeFyseq+2RJ9/JpJRqJKLx7wXF44XSH9kta2wYFBpvjuZxJ1Ihz9nDZwUeBmPZFfT LOPg6sEsZpP/5eHcFfm+8l23a+QEdgZtNH8B1kZeZMEPLfeaICFCAnS9Oa4K27so7MLu aqcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vtzLD0tyab7VEFg5K+G3bH3VUcvOhRi/b0o/Pb84uPg=; b=sc3xmdt5VXE1LhZu375wbhzUYPSTmZ0et2vnpniw0DyWXpKV8gpBGu8oiguv4g1VHx KWrQAOo1Unukx6IkJ4I0reofbhzlspxoTHiXb6Vk1xVQwa4gm8aD3RF7zcA8LZ3hMDYW vrO7IyrpAnZMZMNoXGZ2fmGzVvwxXzork+pJZyeqFANB4K6cc4vK6R+A05H3CS/+uudf DLhcGsoNb5hBP8oXrBCH/a2jtYr4ugw1K0n+sD60VSsu58ik/3uicgLNPyxlsPwwwCtP 67GeIsQ4bZYIKkxS25jVvd0ERfydgJ9Q2DkWNbqyqjWJ5CRnSs2+zkXeVfFuJyMKe1I2 8wCg== X-Gm-Message-State: APjAAAWpBqU4+1f/1ZBViuWsVOEFR7w7BfZRqwmxSQpLMonqlmhMarRy uPKn+sYX4mWl93K39/QelN/+KInh5I4= X-Received: by 2002:a1c:3b82:: with SMTP id i124mr9015505wma.122.1574948628635; Thu, 28 Nov 2019 05:43:48 -0800 (PST) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id u26sm10743407wmj.9.2019.11.28.05.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 05:43:48 -0800 (PST) From: Bryan O'Donoghue To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: Bryan O'Donoghue , Chunfeng Yun , Nagarjuna Kristam , Linus Walleij , Greg Kroah-Hartman Subject: [PATCH 1/2] usb: common: usb-conn-gpio: Don't log an error on probe deferral Date: Thu, 28 Nov 2019 13:43:57 +0000 Message-Id: <20191128134358.3880498-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191128134358.3880498-1-bryan.odonoghue@linaro.org> References: <20191128134358.3880498-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch makes the printout of the error message for failing to get a VBUS regulator handle conditional on the error code being something other than -EPROBE_DEFER. Deferral is a normal thing, we don't need an error message for this. Cc: Chunfeng Yun Cc: Nagarjuna Kristam Cc: Linus Walleij Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Signed-off-by: Bryan O'Donoghue --- drivers/usb/common/usb-conn-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.24.0 diff --git a/drivers/usb/common/usb-conn-gpio.c b/drivers/usb/common/usb-conn-gpio.c index 87338f9eb5be..ed204cbb63ea 100644 --- a/drivers/usb/common/usb-conn-gpio.c +++ b/drivers/usb/common/usb-conn-gpio.c @@ -156,7 +156,8 @@ static int usb_conn_probe(struct platform_device *pdev) info->vbus = devm_regulator_get(dev, "vbus"); if (IS_ERR(info->vbus)) { - dev_err(dev, "failed to get vbus\n"); + if (PTR_ERR(info->vbus) != -EPROBE_DEFER) + dev_err(dev, "failed to get vbus\n"); return PTR_ERR(info->vbus); }