Received: by 10.192.165.148 with SMTP id m20csp974939imm; Wed, 25 Apr 2018 10:30:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48JzM1tH0haLjeO7e5ueKNW8orRBbNpA1AUejp1sEOPL4aP9EX4lV5vie9b7Aicv9SrrXgM X-Received: by 2002:a17:902:322:: with SMTP id 31-v6mr29918943pld.122.1524677419988; Wed, 25 Apr 2018 10:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524677419; cv=none; d=google.com; s=arc-20160816; b=MEmhwKKgPH24HbR/VnvRw7tJ+NdXNB5ChfBScLviyITApRDrz8mv9+MicWSSD9jSse BkTPPMwiSvlSt1VhoxDKVgd2+rKebb3/fPL9O5Cn8F7PDRAD3lQ+Xwxr4DJHOy5SpKDF ma7g6U2HfjwNgIlCgo8kaamlZLmIntqwpJL86fdf4GTjfaBd6sVrvUDD6vlUMjnIm4b3 hhzvu+4e/IDGFRHgym4YtdEXE0HTaXrCZYMRO1o63XaGIfGV+iR8Ma4VDBHgUcAGSKNy Ryt7VCdbsVEI0oTTX9udkVzvAZwxhLzv/HGRkSHofbvkpVEhw5QqF0gf8QDxavnhuIkN F/YA== 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=w0oqUDuZqxNLUG30+2vzwmtfHksAPyhxFWaDnwkrJEw=; b=d3OqAb2NZfCAqxYZMtwVHgsCi81ioG04lO1JjvnsIKHdqxVjVLFMjcCipXrIWylbPN MURrny1YfC9nsGsYTT2fIhAnoEU9plvpQmzZsQ+Co3c43hY3lDPCrKfZb+7pEw7ufRFg odC7C+iEKew3Fe6yiQEcBgNhCqB+CSLIvKjLfRFOrgR+ENj9YTvufvWMHI6MvaA1z7PV os+o6Dw0ygxVI/qLnw8iU4u9p5DuJ1iLjMukqn3m+7v1/VHMPGif9nbf8FedihvPFjH5 tJFyaKjH99Ko6WGeU5RRUZWCeTOsLMA1JSK7GA9BEijrWnIFMlRivEUfcCeI4wZaRtjy yu4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TrFa5gaU; 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 s16-v6si16116537plp.487.2018.04.25.10.30.05; Wed, 25 Apr 2018 10:30:19 -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=TrFa5gaU; 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 S1755953AbeDYR2W (ORCPT + 99 others); Wed, 25 Apr 2018 13:28:22 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:58440 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755891AbeDYR2U (ORCPT ); Wed, 25 Apr 2018 13:28:20 -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=w0oqUDuZqxNLUG30+2vzwmtfHksAPyhxFWaDnwkrJEw=; b=TrFa5gaUrRf9E6xRlEKTpYnQ4 I3Z1hb14oVNHNXi06hmm2FNZaVzYrxIh+h1o8pApCfl1bQm+/7lqWNoPKtlu87fsHZ9je9IeKa865 KWDDL3ox9i0BtBmjqQI+o2jpfs7gZiXubq6JmOVc9olXLEfXj47k+gM1NSzV3T7mk/KoY=; 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 1fBODJ-00033R-1Z; Wed, 25 Apr 2018 17:28:17 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1fBODI-0003ud-AL; Wed, 25 Apr 2018 18:28:16 +0100 Date: Wed, 25 Apr 2018 18:28:16 +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 v4] spi/bcm63xx-hspi: Enable the clock before calling clk_get_rate(). Message-ID: <20180425172816.GI24769@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> <20180425155028.GF24769@sirena.org.uk> <20180425164904.GA30349@er01809n.ebgroup.elektrobit.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Q59ABw34pTSIagmi" Content-Disposition: inline In-Reply-To: <20180425164904.GA30349@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 --Q59ABw34pTSIagmi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2018 at 06:49:06PM +0200, Stefan Potyra wrote: > Additionally, prepare/enable the pll_clk before calling clk_get_rate() > for the same reason. I don't see this change in the code: > 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); > - if (!rate) > - return -EINVAL; Did you forget a git add? --Q59ABw34pTSIagmi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlrguq8ACgkQJNaLcl1U h9AsQQf/eb4QMlqdeZw5IBQeEG+aa+JJHHr3zw0WmnYW9tUnMCZTrUnU8F5kxYlU mzKhZ7nLND8AxG8cr9mlcCd8P9A4pPsx2ARLh0Ji+yj8LznKUf8qAhiamgFD3k0+ SIMyDteMB9ckbiU8bZWk96QpHg7Kjl2shmth5YCDwugnnjhruBzs9vnjAuLuPuVG j/7uk9mj5QNDd5P5lpNh4iXm2fK4HMLi/1OIm4uFwEL3TfNte96ahh1yLVZ/1lxn 1HFrJmjYus8NduYAOpEF02sXvzj63n3t83019NOVi3Twsrc5385I0czNeE7J87F+ o30is95xtenYwHjGvoJLfhnSMNI2MQ== =l/Yu -----END PGP SIGNATURE----- --Q59ABw34pTSIagmi--