Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3958578pxj; Tue, 15 Jun 2021 12:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQzgsoKp7dV2dHj6vWPndCDJ7mBKH6zmxWjmSK/QPj7HUtrMgWKzTICszAeMx9wqIWuflB X-Received: by 2002:a92:d944:: with SMTP id l4mr772361ilq.244.1623784529354; Tue, 15 Jun 2021 12:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623784529; cv=none; d=google.com; s=arc-20160816; b=Kmwnii/vZDWjs/UXjsWwHeZfcYNktmziUyo4R0JRb+r16gFC/VBWvGNFvt1MsWxkD5 GdrsgpLvOyg7ndUU9hrc8Gmx8DBBJjLJ6VI7qW03hMZtp1vCtbTHKxDyXFDPyfbXayv/ 2GJYugVSdUr72egKPaqxwOXMQAQ++0+pVDuZRL1xFlerxFng4uvgdscfhAoOJlEmICgN 4ZCnHj2d8+z+IazdkNTUBkLMFqbEQEZoJwx1E230/f7aYFOAX9zQYyuSPgM1GUKQBQ6/ XPAkHtC+lt6Ovn6MPyalxzc3F+Pl9KE+/5NwLrIE+YW4B24dv23fiPdYas06Rt0Py+Eq F5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=K96NEhRwOfOsQAPRB6OZS+5qrNhl6I/oCeCqkJvi258=; b=iAWaGbrVryosRokahKxK5A+1j038q5kktl5vIC7d4JIQrE505qhTAJQjalEaKNaybg CF9mxT+6fMdm3sRta1tCCVjUbU+aXWCRYyx3Ays/eM4SBv4JiOP8ZTNSmOEgKbX6dyU/ YQGD47QWnXp6pyM2tqJCnuuzKRLRgCiI4ggq9whGTSz2zuprMI4BoAgoV/9Fr7QnPCW5 sL6e+z9vccdoDSsEwxE7smIFrLhdquX8KSDDdflFDTks6EYNJzFBk6XrAhTn8yfEOB+k ZpXQrtjqCgtiYf7+vNUX9dlGkNV0zLvGN+UpFkgIvfchCfSSGxCgwyE1VcrvV/+T3BHe Td4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qqZc2Uh2; 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 204si21352523iou.26.2021.06.15.12.15.16; Tue, 15 Jun 2021 12:15:29 -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=qqZc2Uh2; 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 S231283AbhFOTQd (ORCPT + 99 others); Tue, 15 Jun 2021 15:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbhFOTQc (ORCPT ); Tue, 15 Jun 2021 15:16:32 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A69C061574; Tue, 15 Jun 2021 12:14:26 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id x21-20020a17090aa395b029016e25313bfcso272092pjp.2; Tue, 15 Jun 2021 12:14:26 -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; bh=K96NEhRwOfOsQAPRB6OZS+5qrNhl6I/oCeCqkJvi258=; b=qqZc2Uh2ZSIzSDA25Ys4zEG506SaSOwt57+BYQxVx/T6xa/17qGN5X4LRAR++F1oEo mhKz0nqRJrVl4OLbSn2pQI3Tq9Hx5Q+uzsXKjny4hbYpttchuB/iQBbJT98LRGoyvOCy XQuzNbLm16MVFZkxuHdKFD5p3V7SP4SPFIHvgqNhJBUfokWXFPKk5jcvC86GnBvNh62h Yt00xKCIGpDKTZ3ro1VpQM9resKlcM2hjAIB4Mo9fh24aglQGiUHkeY6HxbX0LoCJzGV cQlzanM1Lp4xDaA/m8SZN41i3FjJ2jGjMonXq9ZWwCYyWfiI3DWXLnRusY20j/nxW+Pe 9BEw== 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=K96NEhRwOfOsQAPRB6OZS+5qrNhl6I/oCeCqkJvi258=; b=pNGbf8o3uLRC30rV5p/SCeDpbkWv6kGgtvoB6a8BWPYgrPt4+YXliAG0eIOmkEsPAo F/SL/Z2BSC0ZPnhaYYer4sO6uDuk3AnS8Y+eY4idbU0LiLAD2YCR/CPeMvrRwex+e30w lze/OLD5NH/XSV/ZwVBBPY+f9k28JXwE005KPbEPb4Mqsn0/GMztaw7XYFbw6zc129V0 AcyoAPLTvJZOhzuBKLuNVCUbszIvIXUF5qPrMkCD0ObHX2NwDuk8ebAxutUAMQvX4rEP KTLy/KTJADcKcdzhFbeKUnHVvb4v/Gs+/TdE70ED2oUTEEj8kILeyctQHnc6K0Xy0Qtf cJCg== X-Gm-Message-State: AOAM5335ewLJjedjpuvoIqhH8aM9kiS3f9cR77arJ2TWX0wZ0twGSj4X cK2/rwa6iYdn7neXNdq/3n21PvFTgZno3Q== X-Received: by 2002:a17:90a:5401:: with SMTP id z1mr740025pjh.7.1623784465930; Tue, 15 Jun 2021 12:14:25 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id j4sm3165008pjv.7.2021.06.15.12.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 12:14:25 -0700 (PDT) From: Jim Quinlan To: linux-pci@vger.kernel.org, Bjorn Helgaas , Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Cc: Jim Quinlan , Nicolas Saenz Julienne , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Florian Fainelli , Jim Quinlan , linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 1/3] PCI: brcmstb: Check return value of clk_prepare_enable() Date: Tue, 15 Jun 2021 15:14:02 -0400 Message-Id: <20210615191405.21878-2-jim2101024@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210615191405.21878-1-jim2101024@gmail.com> References: <20210615191405.21878-1-jim2101024@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Check for failure of clk_prepare_enable() on device resume. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Fixes: 8195b7417018 ("PCI: brcmstb: Add suspend and resume pm_ops") --- drivers/pci/controller/pcie-brcmstb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index 08bc788d9422..abc62a86d94e 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -1162,7 +1162,9 @@ static int brcm_pcie_resume(struct device *dev) int ret; base = pcie->base; - clk_prepare_enable(pcie->clk); + ret = clk_prepare_enable(pcie->clk); + if (ret) + return ret; ret = reset_control_reset(pcie->rescal); if (ret) -- 2.17.1