Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp807474pxj; Thu, 17 Jun 2021 14:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLBs9W37IQagBnvqVHUS7XVGcrrGJfqmtodGLcpxsY3MCT9dnku6kTlyzgkUnEBG1ma810 X-Received: by 2002:a17:906:1806:: with SMTP id v6mr7421255eje.454.1623965370900; Thu, 17 Jun 2021 14:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623965370; cv=none; d=google.com; s=arc-20160816; b=Ct3Lb4fmzxmMLxcIcCVpdFPWIebzA58EiVW0XM8ISFANbwwamQIIGnyqoLluTBhrZ+ W2tIsaScFAvCI0rGJiIyk6y270fcbT++WJqdKx0nIA/aUCO2TFGg2Tczt1pSezk3Y4cc eZJelKiFs9KC+73kTngUT+sK9dYzCQIvgLp0C9EFalPIHtOosrWHrjiO/1Is/apAJXzq lVyj41L/Besz1eazHcr7zDK2C1y8QkjC2bqc38j5uyIzdO3vWQ+ip2u1XckKGkX+eRsv vWhrdGRDpu8fIUeaP9wdwhMUeE+/LIAN9aSpy0s3EdVIsdUcyX4bAIj1DYed4apHldrZ GZJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+55Ue4W/St8WzVyqe/i5ldF+F9lfhpaazjUIhpwFCbU=; b=B5yNCodh/e/fhThi907oHPN23DmumH7AF2pVvv63zPZJlORZ8sM2vVIzytcbjcrDXf 9Xqx/ETeZdYn/R4j4qTOgQAMsTGeTt4k51RN27LsQ5cr+j2YuQY8EwOR2RI9PobpM3GU fLoQCzzvDsXuq31XSgbHFpkZIOboK10S+WmpaUdUuaKFMSf38UdeqPm1dvcl7DMHnKRO oKXeNdPA7Z4KyfOoHM1gT7HYQ/ejLfp52i5wkHgyyANETqadQAQPqn4lKmc05niU6IkV NnbVsG5+xQyJNaEWpf7lLHm2227jDiMsoMXjylsFES/jmy+ZFVnOGS5P7G3KsnUuIHBH st2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EZjAcRaC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz10si234205ejc.389.2021.06.17.14.29.08; Thu, 17 Jun 2021 14:29:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EZjAcRaC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232701AbhFQTrA (ORCPT + 99 others); Thu, 17 Jun 2021 15:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbhFQTq7 (ORCPT ); Thu, 17 Jun 2021 15:46:59 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2EBCC061574 for ; Thu, 17 Jun 2021 12:44:50 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id u18so490956pfk.11; Thu, 17 Jun 2021 12:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+55Ue4W/St8WzVyqe/i5ldF+F9lfhpaazjUIhpwFCbU=; b=EZjAcRaCFNPFLV/Dwc3dBcc+5bgU85W2R/dX96oapPujxwKglk9SnSCNmryv1xNeP1 RFx/XZ2b0Og6wCxyOpVNhSQuV6TNrmgG7BmhFaFap0FX6QvkZlJEVValx6vLby/pgYA4 85+xlVnVYjiqilbp65xRAT4JSKby3RgC98Na+BqImwSyxLq9NU8Wj9EG2TkySkqNlfPV 8HCjZB5xH7B57jtI+Tl+58xGhvVo1ihY6beJ1zUeoLj4dw4ezfeQUhyXYkEqyIkiQIpM 6YeDJAm1Tr1efY5g+wFylrdwaHGWFzbG0r/w/9Nc6T6KX6IeNq16LjpjwT+VtXjGDtqt H4hA== 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=+55Ue4W/St8WzVyqe/i5ldF+F9lfhpaazjUIhpwFCbU=; b=j/z6Kd4rHCb0RITTaF2fWABU+8OApAz9YsTzj2GRfAEQsIt7ItWpZzumAGwmRKNnqs Sk2tFbXRVpupjPib3HnoS8bLAnmZQSDtjJzj2eFHPmvPnTtGq6yRI13YRFoYeCCGi1aJ ibe6bU8JaUt+qkybV44hisLfzJxRGht2MIQT2aNR10qXWKS1xMenfPOBq85Ykf6ZQOeM fDLzRWvPFxsd53ekXIyytLJy5zQx4vdjqm01QRCWfjikFoONAfCFmTY+fJueclRaP/uS ShXWUl7eb+q9+2wFcQkhG30jVw8ciqvxRMteEtk1wfRvLLhe7gtjugaHnGzByfbaI5g6 Z3Mg== X-Gm-Message-State: AOAM531uYAzTgkB66R6Lou2sZl7bQAMdjSFYVl0fXIpBPZ4GfYu+Rtry 4m6T2AE+VEQdhJXnWTbdR6Y= X-Received: by 2002:a62:7e05:0:b029:2ea:57f:ec86 with SMTP id z5-20020a627e050000b02902ea057fec86mr1515090pfc.37.1623959090404; Thu, 17 Jun 2021 12:44:50 -0700 (PDT) Received: from archl-c2lm.. ([103.51.75.27]) by smtp.gmail.com with ESMTPSA id z9sm5987187pfa.2.2021.06.17.12.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 12:44:49 -0700 (PDT) From: Anand Moon To: --to=linux-phy@lists.infradead.org, --to=linux-arm-kernel@lists.infradead.org, --to=linux-amlogic@lists.infradead.org, --to=linux-kernel@vger.kernel.org Cc: Anand Moon , Martin Blumenstingl , Kishon Vijay Abraham I , Vinod Koul , Neil Armstrong , Kevin Hilman , Jerome Brunet , Philipp Zabel , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFCv1 8/8] phy: amlogic: meson8b-usb2: don't log an error on -EPROBE_DEFER Date: Thu, 17 Jun 2021 19:41:43 +0000 Message-Id: <20210617194154.2397-9-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210617194154.2397-1-linux.amoon@gmail.com> References: <20210617194154.2397-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org devm_phy_create can return -EPROBE_DEFER if the phy-supply is not ready yet. Silence this warning as the driver framework will re-attempt registering the PHY. Use dev_err_probe() for phy resources to indicate the deferral reason when waiting for the resource to come up. Cc: Martin Blumenstingl Signed-off-by: Anand Moon --- drivers/phy/amlogic/phy-meson8b-usb2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c index d5edd31686bb..bd624781d914 100644 --- a/drivers/phy/amlogic/phy-meson8b-usb2.c +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c @@ -332,8 +332,8 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev) phy = devm_phy_create(&pdev->dev, NULL, &phy_meson8b_usb2_ops); if (IS_ERR(phy)) { - dev_err(&pdev->dev, "failed to create PHY\n"); - return PTR_ERR(phy); + ret = PTR_ERR(phy); + return dev_err_probe(&pdev->dev, ret, "failed to create PHY\n"); } phy_set_drvdata(phy, priv); -- 2.31.1