Received: by 10.192.165.148 with SMTP id m20csp897621imm; Wed, 25 Apr 2018 09:17:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+rFRPGKsoDKa6+zys7so2jXjGElBngR1P9pACNE7jGP/Y3Ofbpv2+Qta8IEF6uEdiUjgg X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr30067563plo.72.1524673049590; Wed, 25 Apr 2018 09:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524673049; cv=none; d=google.com; s=arc-20160816; b=xXUIwaR+/GwSNSFAUzOShIH2lnDbwqAJGyLtg50QCoFKN1undH+FpeIy+UI5YPAGOe KeYu65fxnTxpFTG3iTpVZC2UZTh8z/xGGKUjKLfF9kePLLPoFA7/L61V4/OutW6PrVOJ VBQuGySgGXaTWe1hn+IxQwAFKpKWoMY3YhTCcALnhYaHtGs9i0Dd7Uj7wwuVgSF7peN0 PDP6w7rWi2RSdPjyiRf1N9PI6JkFW5S2fWeZX7tLkqdewtZRvqErlD4OXAp4h+VoFmo6 MeJa8UBFzRL3RjqyUKBXKTko8ovmPICYZ6FWCy/Dadq+0EuxImhN5FW4wmPn/adWF3DV C6eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=JASTEXYGg4TG8vTCvUqc1079Q/JclnNWh67Fk7f72NU=; b=BaVsLVjg5uOxbxH6jIYksZ8KbMXm2LxaxfhH16H4hrxMrGsUVs6HLWl0eY6lmYASPh WQsdkXdOii4703tFq9UqgZGMbSRWYPDEUIskfKm7vxAQHDNThfimjakWU8OKumrekNeW XJnJfKwMPnPp3qys+gKZOOsr2UL3uQ6ldhl5tJjmAasKAemEbguf4+4UeTMcIOOgF6dT qm4SapqoiyDZ0LjKQWpsPABS9vqvqbXHGnk9/CjcX7VIULcDXSaccLZjSvBtXpaXCWfD gHw5Q5GQgDkfEfEOYYHPlwcIQzuKwQa+klVdateCZrJrq7xktrs5VSARnsiXMJwtJia8 /wLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ehpF9MVN; 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 a5-v6si16051618pla.117.2018.04.25.09.17.15; Wed, 25 Apr 2018 09:17:29 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ehpF9MVN; 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 S1755517AbeDYQNZ (ORCPT + 99 others); Wed, 25 Apr 2018 12:13:25 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:35330 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755242AbeDYPue (ORCPT ); Wed, 25 Apr 2018 11:50:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JASTEXYGg4TG8vTCvUqc1079Q/JclnNWh67Fk7f72NU=; b=ehpF9MVNmoTdlu2z2QnD0qnIk hXsoTV3lcMNOBMcjgh0nSE8QiVhQY0H4UHY+VrgRKBX3gk3mk2gTkBTGgczDV5fX0RAKYLRkMoOVD egKlaPMSptLnh76j5zA6jwwBScwKC0z+cgdNxag1I2/epZIIXZYc+0hRyjXX2gwh9uB+U=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBMgf-0002pN-Cg; Wed, 25 Apr 2018 15:50:29 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1fBMge-0000nz-FR; Wed, 25 Apr 2018 16:50:28 +0100 Date: Wed, 25 Apr 2018 16:50:28 +0100 From: Mark Brown To: Stefan Potyra Cc: Florian Fainelli , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Gorski , ldv-project@linuxtesting.org, sil2review@lists.osadl.org Subject: Re: [PATCH v3] spi/bcm63xx-hspi: Enable the clock before calling Message-ID: <20180425155028.GF24769@sirena.org.uk> References: <20180419130358.r7dva6owy2izyfus@agrajag.zerfleddert.de> <20180424161605.GA17825@er01809n.ebgroup.elektrobit.com> <20180424173253.GF22073@sirena.org.uk> <20180425134728.GA20897@er01809n.ebgroup.elektrobit.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="E7i4zwmWs5DOuDSH" Content-Disposition: inline In-Reply-To: <20180425134728.GA20897@er01809n.ebgroup.elektrobit.com> X-Cookie: MS-DOS must die! User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --E7i4zwmWs5DOuDSH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2018 at 03:47:30PM +0200, Stefan Potyra wrote: > + ret =3D clk_prepare_enable(clk); > + if (ret) > + return ret; > + > rate =3D clk_get_rate(clk); > if (!rate) { > struct clk *pll_clk =3D devm_clk_get(dev, "pll"); > =20 > - if (IS_ERR(pll_clk)) > - return PTR_ERR(pll_clk); > + if (IS_ERR(pll_clk)) { > + ret =3D PTR_ERR(pll_clk); > + goto out_disable_clk; > + } > + > =20 > rate =3D clk_get_rate(pll_clk); Isn't this just showing the same problem with not enabling the pll_clk before getting the rate that you're trying to fix for the main clk? --E7i4zwmWs5DOuDSH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlrgo8MACgkQJNaLcl1U h9C3mAf9E2wT1z6BVSR3pGjn8VkIqjK8tF4v/fW0OUJoRejY519N0LtV6wkA2ikU H5eCOr7VNNu345uaFdzIXqKWR4jEyPCWkzHj7baall1kwb9wSA1tfMoFG36FW38G Kbg2hDQXS/vuIvfBcaNh8XtAftIuKxyWv0W0HnvoKfAJyntdkgCyamRzMgraTNrQ oHziqpj2Nzkm8wwtk7HnjyvvnfW8ErCT92pTjcoki5MWeVExDYpgqHseEyXYm+QR Oeg8Gch4CHPQfJcvL3njThXkqFIGHqZl4xddXSi/kM/1xOtTY0ibY48GkmSUjjNX +4hRjKR2e+ZLj3Jmnbg5tOCwi0IcBw== =PbX0 -----END PGP SIGNATURE----- --E7i4zwmWs5DOuDSH--