Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3285050ybb; Tue, 31 Mar 2020 02:05:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvwdTBr4dbeDgnTYOry7IgzPOdelCFlCpgZyfoTNXKWiyRWzXYqoNW03axtGJNSMV3E6+J1 X-Received: by 2002:a9d:6d04:: with SMTP id o4mr8336335otp.101.1585645547879; Tue, 31 Mar 2020 02:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645547; cv=none; d=google.com; s=arc-20160816; b=hSj2sq25IEguaCewICgJEEZfpnLOmb3Nv1bA8x2yeMKCPTp7E0Cil9uj7FBisfhjYB WNvii8gKtnX9tv7VCUSdIZZmyPowbHYRiib8FugCCAeGiETshBZF60Qp6YwLiVYPDjFu 6yWm9fHLh0uSX0vK7Sf8MCnLBQFuki/4tdcIr2o2vFyE5d4ZVIbu/bVafn31nicV2VZB I3KPvNNS6HM6xKRN9quzzvV3mM2iDfwk808uWBqLRnr4z2b9RxoExsLvSpmH2DpaT3Ou BsCch7CCAB2DPoO4PSeFId1EJCggBUn+prreJQ1CG1cX5UVU++xQs7CwA+4d/TiNG9Qu C8YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iXU/4IdaWYJhaVns3IofmVwkVhMf1KqygtfzNuVN/bc=; b=eof7s1hAe9R56mMxdfXmh31kycGPeZTzOSHDCFAHn75GkJR6Z6offbUIopThmYQ0sI EwcPTgSonVeAeigO3OIujOV+WOGgh3q8Upshqx8lH5cWKv7jzC+IB14SXfsXLoJoztB6 I8yMrydzZzj4B+Fxa1NztT5HKt/uE6LMbDBWH4fEqh1Sx77zjkcnkXTOf38wb61QjlWc 5VLXAuTwFXWrbTn/uUR6c1idyshjws6Kvjo3K+xlhVFz1OdInersRBHUTGyQxeib/WmU 6Jyb7m8KBVS0nOiMAhrd9w0CVdYVRaRu4EsjTNT51z0RwLs+D2WeHb8LYWHHajrrYm7F DiZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CbdTSjFk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y35si7085727otb.315.2020.03.31.02.05.35; Tue, 31 Mar 2020 02:05:47 -0700 (PDT) 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=@kernel.org header.s=default header.b=CbdTSjFk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731045AbgCaJFJ (ORCPT + 99 others); Tue, 31 Mar 2020 05:05:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:45982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730441AbgCaJFI (ORCPT ); Tue, 31 Mar 2020 05:05:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A53A921835; Tue, 31 Mar 2020 09:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645508; bh=CDK92CjtltPfetDZtqbXhiCGOui1J5dMDllimrK+Xuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CbdTSjFk82mSI46YGwQ2ZZdbVuq8I0hesd9YBmC/EEO8c/YDEpQlOty/RO4fdzl3n UkxpqWj5oO6UR93ETZklGr0HZTqfb+lh092ykWObRZKPfNu2HAralK+GHRH1HhviKO Y3eK+5RtvaD54zA4Aq+tzXveu8k3QhWTvcaNqWGg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rayagonda Kokatanur , Andrew Lunn , "David S. Miller" Subject: [PATCH 5.5 026/170] net: phy: mdio-mux-bcm-iproc: check clk_prepare_enable() return value Date: Tue, 31 Mar 2020 10:57:20 +0200 Message-Id: <20200331085426.866429083@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rayagonda Kokatanur [ Upstream commit 872307abbd0d9afd72171929806c2fa33dc34179 ] Check clk_prepare_enable() return value. Fixes: 2c7230446bc9 ("net: phy: Add pm support to Broadcom iProc mdio mux driver") Signed-off-by: Rayagonda Kokatanur Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/mdio-mux-bcm-iproc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/drivers/net/phy/mdio-mux-bcm-iproc.c +++ b/drivers/net/phy/mdio-mux-bcm-iproc.c @@ -288,8 +288,13 @@ static int mdio_mux_iproc_suspend(struct static int mdio_mux_iproc_resume(struct device *dev) { struct iproc_mdiomux_desc *md = dev_get_drvdata(dev); + int rc; - clk_prepare_enable(md->core_clk); + rc = clk_prepare_enable(md->core_clk); + if (rc) { + dev_err(md->dev, "failed to enable core clk\n"); + return rc; + } mdio_mux_iproc_config(md); return 0;