Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4602641ybl; Mon, 9 Dec 2019 13:45:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyMF3nn0NPqBBwcpRP2S6aHMKclDN6KmsvvQXdvo9rwPl8ILpxxE43emFZqHzbN9i+j7COi X-Received: by 2002:aca:ea43:: with SMTP id i64mr1240029oih.30.1575927912688; Mon, 09 Dec 2019 13:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575927912; cv=none; d=google.com; s=arc-20160816; b=KvXcX+DA6KB4PDnKrgvJW+68T9+IbFCTh3W4Vj7sORE6PyTvpAdEPYdxR2MWJgCFYb zWv7kUHbPLwVwQN3LoGMzzlX5++XfK9+TLu0TLjM+eS7pcjLQLkYfpuJmPQ/l0pMUPiU pqo8seKn3cEBrPNwaOyfsbrbjtMLydAHzx+5EzMpLTW/BOvja3qAJMZEJmuiPrC5mfSN ky0PPLma2JlibULL7m8r69+W55w5DiXFgZiNMtJWEAPSTJH6PuMt2mMi2bqN/7q3c/bj PlPlw8DB2ZH5SAJaEmZvKUnTuM7Y3fVPcAxn7wroxYp5eiZhh+4uHYB8TqlT83MkeMZ4 xygA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=RT3uMjCTNXctwL3ki3eO315EjLjo+qSfc5PPzuNqLtA=; b=peptrlAzanPsJixGiK5gxBx3a+iY3XgxA0eGzKkJY8hlHmM1fxkNdkfGLoH9Z/Aowh rXzZySid/EVqPWJShzR84uIpGkKb8umQGAd5dQQI6dis3htPDoKS0ooMWa3Tn099Vniy Yk0HTtJenH8JLBlIFhH1IIAUZWiHSvUXTSE5iV4m1leH4L4hKzUCH3Kkqvuk7D4CzHNK Oo/U6SM9SyKhtl271OU6ZvTlIV6Y+7J4DH2gf2g7EdfiGaHfg4H11wH0VaikDqsMaUwM cnUB2VB9+oZ2L+pZ4Llq85BCuaoWQmPs84SFh2mID2/sQkyRUX+4dsED/sZRWYsbNfck DhsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j6gWVo88; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z13si739578oti.272.2019.12.09.13.45.00; Mon, 09 Dec 2019 13:45:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=j6gWVo88; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727111AbfLIVoU (ORCPT + 99 others); Mon, 9 Dec 2019 16:44:20 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37431 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbfLIVoO (ORCPT ); Mon, 9 Dec 2019 16:44:14 -0500 Received: by mail-wr1-f65.google.com with SMTP id w15so17911849wru.4; Mon, 09 Dec 2019 13:44:12 -0800 (PST) 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; bh=RT3uMjCTNXctwL3ki3eO315EjLjo+qSfc5PPzuNqLtA=; b=j6gWVo88AgDxvn8Yg1lfCN5H7CC1Ea+lVXlph5sRy19Lt4qYZl6aawRuIylGJJPYJf GPwfGrshGktY58zsulGkoiQIxbcJocv3r2qimlFTGT4h1ZCevNkmownscbhDEJtfiz3M aJA3rAZu35QT5flOX3Vj6X0RNi9+fQjfr8rZK+Iy+HvDZWfWOgCMSRh5sLfFmnncUN3M dADuTVjvJRbYa/BHWLikRJaDRTvt4XKCHu/R8ZvdQGN63qWfnaSKf5PUhONSLx3s+qIw hv8HI0o5hNB5squ5hEYcALwvMI7kkfDCMa97gH6Enc+pgMV2WtCFnya5iroVHPt4fJZa RFSg== 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; bh=RT3uMjCTNXctwL3ki3eO315EjLjo+qSfc5PPzuNqLtA=; b=qW6thpT3U5ufZXothhU2Ul0cFtXRle5wJl/bqCQbRSjGmnhJVUFw+8Jhcd2Dg47ko1 xlcsO4BkJEDGhhBpOIS3Xl0CJnFX6A3aSDUH8Wzp1T4lMNdkn1D5SjA0z1M1M6Wap5Zj iUWf538zyavjbYr8SMfS+xYWTAw/sQesxuYq+n/jiZnoJ1ugZkgxDDk6MDh6ZSNyT/KC ddwadg7BNGDiF0BcGHV15MsnpnflYf81HmmgqQMTXVgafuQU8BsO6/GrV3HPWzu941xa 78sNCNMG3QnTfZpplfWzM6fFVCyMSjNHgXqd8OGb4GxEbDLZmzETQALO9UO64pA6yv3+ vTEw== X-Gm-Message-State: APjAAAXiDl2V/WHCAeeeUzj5sik1bUC06U3N8G4Mme7ITkg+T9DheLEy F122+jve3qtSU0JU9JIxH8cqQjy+zdU= X-Received: by 2002:a5d:4984:: with SMTP id r4mr4154420wrq.137.1575927851869; Mon, 09 Dec 2019 13:44:11 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id z6sm757714wmz.12.2019.12.09.13.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 13:44:11 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Cc: Al Cooper , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, Florian Fainelli , Kishon Vijay Abraham I , linux-arm-kernel@lists.infradead.org, Mark Rutland , Rob Herring , Srinath Mannam Subject: [PATCH v2 resend 09/13] phy: usb: fix driver to defer on clk_get defer Date: Mon, 9 Dec 2019 16:42:45 -0500 Message-Id: <20191209214249.41137-10-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191209214249.41137-1-alcooperx@gmail.com> References: <20191209214249.41137-1-alcooperx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Handle defer on clk_get because the new SCMI clock driver comes up after this driver. Signed-off-by: Al Cooper --- drivers/phy/broadcom/phy-brcm-usb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/drivers/phy/broadcom/phy-brcm-usb.c index 5f7bfa09494d..c82d7ec15334 100644 --- a/drivers/phy/broadcom/phy-brcm-usb.c +++ b/drivers/phy/broadcom/phy-brcm-usb.c @@ -341,6 +341,8 @@ static int brcm_usb_phy_dvr_init(struct platform_device *pdev, priv->usb_20_clk = of_clk_get_by_name(dn, "sw_usb"); if (IS_ERR(priv->usb_20_clk)) { + if (PTR_ERR(priv->usb_20_clk) == -EPROBE_DEFER) + return -EPROBE_DEFER; dev_info(dev, "Clock not found in Device Tree\n"); priv->usb_20_clk = NULL; } @@ -371,6 +373,8 @@ static int brcm_usb_phy_dvr_init(struct platform_device *pdev, priv->usb_30_clk = of_clk_get_by_name(dn, "sw_usb3"); if (IS_ERR(priv->usb_30_clk)) { + if (PTR_ERR(priv->usb_30_clk) == -EPROBE_DEFER) + return -EPROBE_DEFER; dev_info(dev, "USB3.0 clock not found in Device Tree\n"); priv->usb_30_clk = NULL; @@ -382,6 +386,8 @@ static int brcm_usb_phy_dvr_init(struct platform_device *pdev, priv->suspend_clk = clk_get(dev, "usb0_freerun"); if (IS_ERR(priv->suspend_clk)) { + if (PTR_ERR(priv->suspend_clk) == -EPROBE_DEFER) + return -EPROBE_DEFER; dev_err(dev, "Suspend Clock not found in Device Tree\n"); priv->suspend_clk = NULL; } -- 2.17.1