From patchwork Mon Dec 16 17:48:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 11294933 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 204C014B7 for ; Mon, 16 Dec 2019 18:15:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1D97206E0 for ; Mon, 16 Dec 2019 18:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576520152; bh=cMLkqMqK+Gd4sTCmmglswR0S3qcdjkuJPxkvMp7nKAs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=yMXcqbOevSl3b+jctvX4ALBYlZf3XbA1hg1Euj8W+aQIH8HOWKVnj/m+CbqS8TBaK IxoxgCvR7WvcDd8hWRl+7oYDGtCpQqjJs247oNTJdBUn/9rN1MU2OOsGHaYANKxW1e 3okVX/V0PTDJOsHl7Avd5i46xEisGb+gCdbLd0ok= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731436AbfLPSPu (ORCPT ); Mon, 16 Dec 2019 13:15:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:37438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731246AbfLPSPu (ORCPT ); Mon, 16 Dec 2019 13:15:50 -0500 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 120F5206E0; Mon, 16 Dec 2019 18:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576520149; bh=cMLkqMqK+Gd4sTCmmglswR0S3qcdjkuJPxkvMp7nKAs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ke3O/pJu31RCt55oNfkcrDhor6nPp7OADwpDQmK6gLfjxzl8tzXS1q4oUA8aJH5wI u/10IjgWH1mLlH6UaCRaT5vVuGMWE/L2PatSGBKkP0teRQ3sNwaMPljzAfzSx9gRvE rfWmBDgNR6yAgod+KwONj1Eun21RyQixD13Ncp9M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chunfeng Yun , Nagarjuna Kristam , Linus Walleij , linux-usb@vger.kernel.org, Bryan ODonoghue Subject: [PATCH 5.4 035/177] usb: common: usb-conn-gpio: Dont log an error on probe deferral Date: Mon, 16 Dec 2019 18:48:11 +0100 Message-Id: <20191216174828.552457581@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191216174811.158424118@linuxfoundation.org> References: <20191216174811.158424118@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Bryan O'Donoghue commit 59120962e4be4f72be537adb17da6881c4b3797c upstream. 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 Cc: stable Link: https://lore.kernel.org/r/20191128134358.3880498-2-bryan.odonoghue@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/common/usb-conn-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- 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 platfor 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); }