Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18856988ybl; Fri, 3 Jan 2020 10:21:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxTTBpyGEIPQkKLnBII4srYdhKYBHu6N6TWl0sNMrAveKPDdH3Yf86n50/qx12jk0dh2uNK X-Received: by 2002:a9d:7757:: with SMTP id t23mr104095769otl.315.1578075672890; Fri, 03 Jan 2020 10:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578075672; cv=none; d=google.com; s=arc-20160816; b=yiN2+90jNTi4iJ3FtIIJDoiAibcslUMsvxe35/xpJ7UerueXQRzLf9UB4N6Qkv+Eq2 P82cQQFX2tdCGtkZwkvujl1KY/gzhasYuLCksd0TQc+IkemcCgJ+sQq4eiHDr7DkV2OR Ue09sbvE55jTnKE1qIql3T45sLWQcrq2hYmGWbgApuPTm6XU+J+L6u0nQAkObYTgvE/S y6gsrwZOhlbBO01dNql9NCiZQmYcOR7qk9FxflWZqOGe0oF+9YFrs8IqQR8xG0QDecSV 7p/k/xALXoc4EYTKLTlbNgBjMgHB2KEEKc8Zk2uOSlc6DL1fP03B+fpixHh5mlqT/KdF afyA== 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=KQJCtyCozu1xCXPEkXhRK+CZWeZSQktzbcDF5alOqi+DvZMA4rOl4j7IMNZtIWNUvq PnjTW2UmVrFEW6ieMDSMn85vpu5hFB7z/K9TKP2cpI06EYwZyDROpuiDQwlDAGNZgKhL F09iVOszDDsehtOHUFifDoAJEALUkLNYGVn1fzS+VJ0fGREeLyvjaGbb3Z+7rb4PhGqf 20ufIZdQzdDNSDH8hBvmerD9f7bzFVmYPV/fVNDXTjeBK2KR1bRdE1niBpherwEJ3Nvy 74VKOO3iEnV00C2IuG/x8mNz90gWnh2+sBYh6rzvcd+VzBmEf888tpTWdQxrT+CJE6oV IrDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FzEwOlRM; 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 t20si23794965oth.311.2020.01.03.10.21.00; Fri, 03 Jan 2020 10:21: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=FzEwOlRM; 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 S1728286AbgACSTm (ORCPT + 99 others); Fri, 3 Jan 2020 13:19:42 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44320 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728435AbgACSTj (ORCPT ); Fri, 3 Jan 2020 13:19:39 -0500 Received: by mail-pg1-f194.google.com with SMTP id x7so23751448pgl.11; Fri, 03 Jan 2020 10:19:38 -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=FzEwOlRMFbNiAhqLfljSym93jTMUvS6k/dZXg/3L5CJaQ7moGCyNKhVKO0OCLqmXCa NwaRYzWB63wbqKSDgQmEe0dMyasgcs9aqAzXNkxyFtfyJYajfzUA0qtDxQaxZn88oLWC eLrKKiblk7vsDVeB9dm4H+ItRv7kzOWYSc13jF8uLuv+I/TjfYtVNTbDeqvuHpH4wLaI Q6706UTsTyWC4ixkLU3kV6thFd332tt0MS3gtWIT3bMDegkoiw4mYCsucyNQdtyRqooK UyVNN8fCYzEcHWJskkNSYvRG5RItugITX0NDErPPKcc/b81yrRcqixHEagD0NWtV0uu/ nxnA== 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=PFj11qRCsBRG0tJfXMwsg+Z5OT4/HzXQPwRlESc4vZBCnwKBvR4eoqYtmeam7d2U5J h6BPv9MwihC8CWgKa/oLOCEQYdIGuevYvLxmhzzD/t7V7VASXD59dgIwtOAu1z/fwNGH 3rcFIJmuuVAqdp98V7hhlF9V3MlvpSWhiphSStkFwNYJmQNFGp0ZxU1yr0LuHdIWWtAG YDeiLsItstNvtd2Tu8rFhHHw9Owd7kHfRAi1GxgsDffWKaiwMGvvJLnn8QwylaCp2Jf3 TiySjcd6VOP1W2/H9Sr8APBdge2r+fN54per/jEPzbv8N/TXjjX199QVa3Tj/sUP6Kjj Q5AQ== X-Gm-Message-State: APjAAAUUEu2Ysc4vGzZMYWkoctH1+poewNuCSchfMtHJvgcZnhQTimAQ hQmHxwXkCm/m8N9IpYuc7rNzgYmj X-Received: by 2002:aa7:8d8f:: with SMTP id i15mr66919232pfr.220.1578075578412; Fri, 03 Jan 2020 10:19:38 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id j8sm41783602pfe.182.2020.01.03.10.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 10:19:38 -0800 (PST) From: Al Cooper To: linux-kernel@vger.kernel.org Cc: Al Cooper , Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE), Srinath Mannam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE) Subject: [PATCH v4 09/13] phy: usb: fix driver to defer on clk_get defer Date: Fri, 3 Jan 2020 13:18:07 -0500 Message-Id: <20200103181811.22939-10-alcooperx@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200103181811.22939-1-alcooperx@gmail.com> References: <20200103181811.22939-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