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 Kroah-Hartman X-Patchwork-Id: 181781 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4664476ile; Mon, 16 Dec 2019 10:15:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzoL71uIElsjBs19xh4RHfz9GgR5nyOjMPvLqTmycxW8c25LmaDKEQ4pNfKpA21+22ww0yf X-Received: by 2002:a9d:70cb:: with SMTP id w11mr33710606otj.157.1576520152499; Mon, 16 Dec 2019 10:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576520152; cv=none; d=google.com; s=arc-20160816; b=a5WZGQAY5/FksP4mZCy85r8TFjaOI5xf0m++Fskcf0CkrYQqJIvhlQHFpiHAXhvNFY Jn+4Ui7Tmw5IqHM3oKh4f6jasZ0gIkE0Ht0tDSMgG1fciEfaJmus/DJedNpVHdc27Zgd VbG8sA5NmzdA4Ey2UKY61lr2KhiZ/QKOaztZwPUOmr8YQux2P2pMxvIXPh+deZRh/Qxo Rc91iu3+irKKDy8xoKz6CTtpi4J4BtzEuB9S+EFatm8RkWmWoSLOpbHNIHttLhfhAnql LKtupFQl2IkHu46ZnX7PUlb+qvjTv0/67njLqlPYArtwLaH7OTVu2OdcLqcs/cS1VkOl DWqw== 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=9Jz3UU0GACAogbmNPFfMOpoGra9RfLTmukvpir5yzOQ=; b=Y5E95N/IHuTtLnMw10u2UdyfotP/LvpQ/MoRmkDuxFpiWvKTmSN45RuEXfBRg3bZg+ ZOytdtBMRb4nu44LSqOdu2TVxuXPdN8B/UNi2Y9iHz/tSkpkM7MDmsOn6YxxNLddn6co lPVoO3beQFMHpHQRvzCqpBzfEj6HfJbJJbjPhiwYkmnx/akVFqaHFV1L4F+hnB8SqB3p SwyVqKq6Y3u06ON+W8yVzuFBgaGao2DbBlnaSvi8Eu294k1ldp8lo2o7fD1knqrLZedp b4MeV0eX8AvjtOq0dmjK+VpYW+N5q8fgjl5uceOE6H16OU/JbRZurP3JXTkcVRfyefTu 1JTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ke3O/pJu"; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-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 g7si11178741otq.28.2019.12.16.10.15.51; Mon, 16 Dec 2019 10:15:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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="ke3O/pJu"; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731436AbfLPSPu (ORCPT + 5 others); 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); }