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: 11266027 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 55DFE921 for ; Thu, 28 Nov 2019 13:44:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 31637217BA for ; Thu, 28 Nov 2019 13:44:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tIfp8pk9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726909AbfK1Nnv (ORCPT ); Thu, 28 Nov 2019 08:43:51 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40537 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbfK1Nnv (ORCPT ); Thu, 28 Nov 2019 08:43:51 -0500 Received: by mail-wm1-f65.google.com with SMTP id y5so11707752wmi.5 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=qBa9MhWLdmIUNjO7e7MgyhtflfxjOZmh7Ou1H8fAOl6Bw2JjGrJhfZoRvTBzz4czVH D4SJT7mBDqYRhZb/18Va/le5K+R5ogBS0N8oQEYLfTJq0vSOWpSof3avOLBbv6VnvjIW 9goIlqbUlbDQmVBzCSRsiMBmP6N2chzNZ80Dez3SDo82JcaMZP9UhLzhDNMyvRN4RLpo 2tVrJY+efC4J6OyT050cL7XqlAC9/wmcXg5gS/W52k6W5oCn8C+vofEqRc8h/XNH5Dl9 psocS0U0pjcVDJ6A1t/pQhp4LuBbzvRyjClsg71iH/PqjyTyC1PfhgvOdRRv4m5amGCr HzFQ== X-Gm-Message-State: APjAAAVtkWA7CRa4qRdLuj01rQSQu3FzbU7mNZBc6RhAJteFTagoua5y 5/edTRIRSVfzhgSfFLz9Cs1E6p3svfw= X-Google-Smtp-Source: APXvYqyf46hZBfKvDKQEzIdpHO2/RKf7J9rYHD3HrhxoRz2Bcmo6J8EHzeVg7tSXozyJK0+Qyq4wGw== 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-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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(-) 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); } From patchwork Thu Nov 28 13:43:58 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: 11266025 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 29B186C1 for ; Thu, 28 Nov 2019 13:43:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0883121736 for ; Thu, 28 Nov 2019 13:43:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="F1DEWss5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbfK1Nn4 (ORCPT ); Thu, 28 Nov 2019 08:43:56 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36288 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbfK1Nnx (ORCPT ); Thu, 28 Nov 2019 08:43:53 -0500 Received: by mail-wr1-f66.google.com with SMTP id z3so31159446wru.3 for ; Thu, 28 Nov 2019 05:43:50 -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=qWB0GnHdmXhKLKHodka8vOS+SgvA6x8EElzWcdcx5ww=; b=F1DEWss5lWPIOHF1keRZXlAR8uX19LLPvRfTbPq0IGYG2LZ5nSNZFGU9oW0IZn/6Bn Z4zm5JyDek6NV2gKYHZxSW9rLehMcmfmekenEFg8DDGo2iN5OhWe1aDkhjoCmZx2Ir3o uRyeHpHi61ZR2Xdb+jeHSTXjT/eCAS/AYdOPvy2+vKFi8V1jKW0G+GG7U6aZXmUvrPwW OLCVvYFrZRlDM9xrAiMvDCv2T2MMlcg6+9Xcfr5hGdOTKXnyolbZyHPV37O9WcSvuMQa zYk+gtd4Wk8wTD190V/dklglqsiwPOPw9lAfK9LGqVTfCFI6T1mAJt0/0Lpp/Hkr4QyU BMug== 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=qWB0GnHdmXhKLKHodka8vOS+SgvA6x8EElzWcdcx5ww=; b=LAfcejIlr6CkCBJpYLz1nF/LVxhwm8ctm+yHaM+9NmlEuOX4YhKFWnM0T9+zMeQuKS 6fsFvYLr4Ip5yMjR52vI4wKPEAuRAMzaVYcxDaxvn5tIPdCCSLnOyjBhS4/yXyTzRJlX z3JlCUgQtTZaXEAP18RFCotnayis/5CYu3JMtZxQCPd6XvPQKkaAcZWLJDzfUrZNU6Ct s90AuHGwyTb0MZCVRz8zVQU9cHgZSoeb5WGO29TfZj2NgbqdGJqOIIMdgRJULVp4HSfV YzeCer0xwQbFpdK0VjLn9YFzgE9l7/ukC24yws5T20MSuF4iJREI/UxAfJlzRkcF1YL8 8gOw== X-Gm-Message-State: APjAAAWLlpXCVT0E12cq4ktoru1mnF/cjVLCrNrSG9mfCxYEyn4VlZMz geYBmJWg1GGwTsCbhDam/1RHHA== X-Google-Smtp-Source: APXvYqzBZTvoaBQhXf4XJ+7VH/b38mWo1iX1Z0B6XnUNVcuTjgKirzmpRYM5aHebl+qRmeZIJVJ/tg== X-Received: by 2002:adf:f147:: with SMTP id y7mr48400538wro.236.1574948629807; Thu, 28 Nov 2019 05:43:49 -0800 (PST) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id u26sm10743407wmj.9.2019.11.28.05.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 05:43:49 -0800 (PST) From: Bryan O'Donoghue To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: Bryan O'Donoghue , Andrzej Hajda , Rob Herring , Chanwoo Choi , devicetree@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: connector: Improve the english of the initial description Date: Thu, 28 Nov 2019 13:43:58 +0000 Message-Id: <20191128134358.3880498-3-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-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The description lacks a few indefinite articles when reading and as a result is a bit clunky to read. Introduce a few indefinite articles to appease the grammar gods. Cc: Andrzej Hajda Cc: Rob Herring Cc: Chanwoo Choi Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Bryan O'Donoghue --- Documentation/devicetree/bindings/connector/usb-connector.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt b/Documentation/devicetree/bindings/connector/usb-connector.txt index d357987181ee..88578ac1a8a7 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.txt +++ b/Documentation/devicetree/bindings/connector/usb-connector.txt @@ -1,8 +1,8 @@ USB Connector ============= -USB connector node represents physical USB connector. It should be -a child of USB interface controller. +A USB connector node represents a physical USB connector. It should be +a child of a USB interface controller. Required properties: - compatible: describes type of the connector, must be one of: