Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1183752pxv; Fri, 16 Jul 2021 03:39:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1iJORVYOQUY8ccIc2CbG/GbSkY0X/rkPKA531UcTZdAJdxGs1Q9lfbVbcPbXU0vPh81CG X-Received: by 2002:a92:ddc3:: with SMTP id d3mr6328887ilr.190.1626431986818; Fri, 16 Jul 2021 03:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626431986; cv=none; d=google.com; s=arc-20160816; b=LzToDJwuznXmPbhgCXBRKy+ufcd/USgJjQgesRXRlQRgUOEOAga3pZiR9rWrLWivxB /cdxbiC4SN5vReS5G9n+ocuBNk7aIjgI3Ng/cDEs1OQEJ6g2rkqqbfU12JJDSrkAmoLJ J7QVSTjwsRzmwXTxYtWTp0D0j0DIO5YtKBxSqV2I6jgqNj2L7zmZ+JS7i9v6nyU3FRZc XPsEh18QczjHVsBpm4QMonbpHX+KLCcsJthxgAtALONbdt6Z5acS4Mlk2UUq8gVZAJNS rqTnm7KYYz2l+ALKALrPkOAoivkw7CTQOQRW+iSA5Cvwovih97HD9uypaRaj4kyW3nbk 6kTQ== 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=w3d3QBhIUG9rULiQkPjmvB3VFugYPgFTgKGsQs/0OIs=; b=HYcmGQY5p8uhkujTrhkJrNCIVdprHHojimVyGHDP7fSUJB79Qd7DoLlv5L2lctm2Ww QOcp9xyV1CNfl78sEYNG6Rm/92SStT9vu5r+Ec/+gYlco3YHSFWZRMji9y8Xi/N8QuL2 mltnjW2IhNYO+v4NNDR4B1iyL9MAxfKwTOUHuHRAJ/+g1HnKHpe7jpdwua/5TpAlgXpF kWQh/izfnO+WksmM31DF1fvlGtUGJJpMK6s+JQZY80fmqE1FOWlhQQWIWYnW7tIFi9wL DfBLVS9IHwtiHycbfgrUbYPdtnxiIrONEMR/ke5i5gPkbscHDq2/fxjuYkM/uulES73R /8/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=edMHLZZ9; 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 z12si10942836iow.36.2021.07.16.03.39.33; Fri, 16 Jul 2021 03:39:46 -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=edMHLZZ9; 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 S239355AbhGPKlj (ORCPT + 99 others); Fri, 16 Jul 2021 06:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237344AbhGPKlh (ORCPT ); Fri, 16 Jul 2021 06:41:37 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D72EEC06175F; Fri, 16 Jul 2021 03:38:41 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id h4so9544860pgp.5; Fri, 16 Jul 2021 03:38:41 -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=w3d3QBhIUG9rULiQkPjmvB3VFugYPgFTgKGsQs/0OIs=; b=edMHLZZ9Joy3kORNlbb3fA7Oip6TpGrlESLPRoP4j3s+sAQLT1SlBoA6nDewPTbeVZ adOYB6al4mrObEuWESAJ8eKqdNEMX2eOcU/YxWBmqhLKf3xbN45sNRIeZKrAtBqyiz9f nX3dORJt+ID97uW4aq30eSU7zpLvGnWqQQDutpcN7gU5/m6ZvhDGcnZwvjjaNnqkhHWH TaAulTOhfwFITR/T+aDhl6mwTAAaYhoKE8723LObUi/eM/LbPvenJ3bIctfUxk92bowR BJ6DACx3dWU2weZVjdGuyk0HaB1noOWHalBTdjC8xkh7RLFCqkc388tyQMAjAHw2k4PS KfJw== 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=w3d3QBhIUG9rULiQkPjmvB3VFugYPgFTgKGsQs/0OIs=; b=OLVm83A9+OQsMCEHdXVkBmJIBLJLQQeqDFdJVxkJwrPk9ic8T8fdKk6GhfDIpyB0g+ dQKnWABHzh33RyBdsFi3vGd7CmLHqGYL7KsUSCm7B1gJ8+Cui09vDRH3bBgZPyaAjPN7 i14lzqiPU2WEKtADmEIXNPLJJzwsy0+dKQ1iJ3Qq2XRLLe3/q33jIoOqy3Ccb4tq6ug8 3GtYHbp4SELIk7gf+tfkwdkdEbTJvRFMmigiQLaGEPfVkYeasC5Jipt1EfpwTFj9wGsK E4T6JIYyKDEXfMldqozymZkeZGOqnc7TZc9FZL9NHxTTzLai30Jt62TyhjfBZQloLHdk NeZg== X-Gm-Message-State: AOAM532A9xsgA9eRBXbkLU5Xs6pdUfPFqiY93VcRAnebjydoLO6dkbIy iZ5q3hyHeKVnra+6CVkMzIM= X-Received: by 2002:aa7:97bd:0:b029:32c:56cc:8fa9 with SMTP id d29-20020aa797bd0000b029032c56cc8fa9mr9677013pfq.65.1626431921511; Fri, 16 Jul 2021 03:38:41 -0700 (PDT) Received: from archl-c2lm.. ([103.51.72.31]) by smtp.gmail.com with ESMTPSA id d29sm10070111pfq.193.2021.07.16.03.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 03:38:41 -0700 (PDT) From: Anand Moon To: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Anand Moon , Matt Corallo , Martin Blumenstingl , Rob Herring , Neil Armstrong , Kevin Hilman , Jerome Brunet , Kishon Vijay Abraham I , Vinod Koul , Emiliano Ingrassia , Brian Kim , devicetree@vger.kernel.org Subject: [PATCHv2 4/4] phy: amlogic: meson8b-usb2: don't log an error on -EPROBE_DEFER Date: Fri, 16 Jul 2021 10:36:36 +0000 Message-Id: <20210716103651.1455-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210716103651.1455-1-linux.amoon@gmail.com> References: <20210716103651.1455-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 Reviewed-by: Martin Blumenstingl Signed-off-by: Anand Moon --- None: --- 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 2aad45c55494..cf10bed40528 100644 --- a/drivers/phy/amlogic/phy-meson8b-usb2.c +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c @@ -277,8 +277,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); + return dev_err_probe(&pdev->dev, PTR_ERR(phy), + "failed to create PHY\n"); } phy_set_drvdata(phy, priv); -- 2.32.0