Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp363243pxu; Thu, 26 Nov 2020 00:03:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJypCk7l63kMWO5+3COtluWuiVd9lZD5MCBN6kIE5ksvpXQ2m1hyjF7XcAies7LSpyLvXOVK X-Received: by 2002:a05:6402:a46:: with SMTP id bt6mr1376097edb.101.1606377826055; Thu, 26 Nov 2020 00:03:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606377826; cv=none; d=google.com; s=arc-20160816; b=skU3cAZPvgHfP/R8QDd4bWl88yn0qyO0IE0N3P6kK6J7pYp0cNORV54gEXI8IwJzRC yOm7OMjbAKGy8CHFi1v82L0ekMKCoXGVGZaZT2T/xD19o0LXNCdOkaQQpMED1vF8MCiF +TBr+dt8nNAiSq3sNuQPqYfjUxuBjCQMiS4+cSvJomNhRP/+9bcvdTR5DoMviwxN3gmU BCWxEwB1kxn4zgo0TGR45aMW3KyRn3AjoUzqVQAgLU90kvH8HYAOAR/1zkHFF9w5k70z m4WZwrIJsVvPqxgj0fAUCN4kB4642DUcqEE6UJknoMyncmZNMJoKsFt4tkhpm7i4c9Rc 83jw== 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=exli7Jn89ePXI3uUlIWqFJjBzSYa7MQJTS/YOZClQJY=; b=qpRM+n67oZM9Ra2MkRnT0cqy4ji5V6vY8uHdu9Rr114jQ3jUfAIFtmP594gvHRYqog iQvAJDyd13ZiKIojgws3bMVQICqY9elQF8ash95EWLMiMwgBjjYn0LrcO/THsj9j4WZ/ tlQenPzdTFbNb1tIAAJn3W+SukvH+na/1oVB1KbHqCveg0li97eZyZLJqmRwLjDEvJRO 5H753Si3dJ4xncWgCEieGd6ivLca26eMQUbf5DlM+dQSWQ6iLPi0KOisPUSyxZmAPiuR J//mqx3Q4U5PbiWA8YBIUcgmkg+UFflL50sudj76vFGGgXX0OOxscLCT8c3iudYu6VhY M+uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=GcZ02Nik; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si290263edp.432.2020.11.26.00.03.22; Thu, 26 Nov 2020 00:03:45 -0800 (PST) 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=@broadcom.com header.s=google header.b=GcZ02Nik; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727833AbgKYTYt (ORCPT + 99 others); Wed, 25 Nov 2020 14:24:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbgKYTYs (ORCPT ); Wed, 25 Nov 2020 14:24:48 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03446C0613D4 for ; Wed, 25 Nov 2020 11:24:48 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id j19so3285680pgg.5 for ; Wed, 25 Nov 2020 11:24:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=exli7Jn89ePXI3uUlIWqFJjBzSYa7MQJTS/YOZClQJY=; b=GcZ02NikeASbjl2JU3MYJiS8omBN8ZwlNY0+gy4wctMVfk9VoRWLMkN9BomJwf1hFn LzMk3NSBK+0xviY+3h4J3WRn6363x058aboPdLfx+HpuZqGTZWImtHY+FseXv3w2rYMe ra5LiB59i2UqoABnufCcnkAtPOTxDXtzCOZ/Y= 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=exli7Jn89ePXI3uUlIWqFJjBzSYa7MQJTS/YOZClQJY=; b=SQPeWyaYLCXVchUEPvOWewRv/TKhilYFyaYXoT2PHyLSN2iVnaJQuhWIcTf3mB7zbp TgghlyXA+qB35js/5PiBEvATiJPnyEO/Ml/cEOpZvRPl/dUwCU+A7bWzx2/CnPNZA5kT rzXlgVjjph4VyA6EwC9N0qwQIdAYZxIrSRZHtMP+Sfl2wksGWV0bRKayO6FVgs3WxKN/ gi1RPWC7Iqn83myrzsLCAA6hfHJySX4U3nl7hGIEvg5cCSHXqPNKuHpCRui8Rkimk2JF VUGfszbNA1smD1u2EJ86XMtOzt2xjzcu0/uRjdUmT+aX1oMlv/4Y3kE0vD3F7JPJ6hkO NeRQ== X-Gm-Message-State: AOAM530JqBOcCuDhRU6W+QWON0D2+vTmAJ6G7wfUIJB/6nwSRZAQk8cf gEDeDq5HyJFG/djp/dtnroncYg== X-Received: by 2002:a17:90a:ba84:: with SMTP id t4mr5062420pjr.110.1606332287495; Wed, 25 Nov 2020 11:24:47 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id j69sm2574885pfd.37.2020.11.25.11.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 11:24:46 -0800 (PST) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Cc: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , 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 v1 6/6] PCI: brcmstb: check return value of clk_prepare_enable() Date: Wed, 25 Nov 2020 14:24:23 -0500 Message-Id: <20201125192424.14440-7-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125192424.14440-1-james.quinlan@broadcom.com> References: <20201125192424.14440-1-james.quinlan@broadcom.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000068015605b4f361ae" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000068015605b4f361ae The check was missing on PCIe resume. Signed-off-by: Jim Quinlan --- 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 469bbb0ebdd9..56c88d2b4f87 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -1380,7 +1380,9 @@ static int brcm_pcie_resume(struct device *dev) base = pcie->base; brcm_set_regulators(pcie, TURN_ON); - clk_prepare_enable(pcie->clk); + ret = clk_prepare_enable(pcie->clk); + if (ret) + return ret; ret = brcm_phy_start(pcie); if (ret) -- 2.17.1 --00000000000068015605b4f361ae Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQQwYJKoZIhvcNAQcCoIIQNDCCEDACAQExDzANBglghkgBZQMEAgEFADALBgkq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