Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp759894ima; Wed, 6 Feb 2019 07:57:54 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibh8VY7j8p58y1xdnxKY+NwjBlPMDIKQNZ0Lf+0eaziieoTSdEKVGbcMrHivuQeAtCiSQXo X-Received: by 2002:a17:902:b489:: with SMTP id y9mr11520175plr.193.1549468673965; Wed, 06 Feb 2019 07:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549468673; cv=none; d=google.com; s=arc-20160816; b=OvD9YA66Vya6Yv6mLx58HpQnn6uKA5ZE367LMgRjUMqyr42cFuDvXdcraiRzFAy4PN SjBvWHT2xxUTwlR1VFNdzCd1NYiqI38NYdKktwWvtnIP/h1Xd55tEKJ2y3aCLm2vOnWm iv60E4SyKsdneC4phnAgqJPzYyc5qVd+F8I8XyBRHpbGRgt7q5RbY+lo7nj1RcRsbIm7 OfcMUiDr3TvmcKhceaOepBsBIUOjA8UgsDZAJIyUzA4JMtmaiESn3BIyBfuSzvnH3T0/ p00edXNsj8r6hSN43PRVBIequF8nOezdMa7M+kPvDoY5O5VaM80ZQT5FD5oMMnvgf3ZH pBxg== 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; bh=ssZYRAHv1JgiYcuRvBLBTE3iB/qCQr4pgrQ8rhxkogk=; b=ZBt2Ipn2AcNB7+NakebmC3jc55RuXmnZ3EvAw+48YpenVtgAYc44rHNb+a3nFdwkTo XA6cnGYqyPt/odW/rgBtBECpszSVxOa0SBoPqQDNcYr6nyfmguzuLvCEZz5bKZ6yM9x/ FBgFlwwtq5Sm08W2Q6qZn/NusdY1ewZVRL2aBVwgH+ZZls49gxkjr4GrCy2vucGXye6M vFmj+z0OOCNRt7BPkaSUG4HRnd1+wihgI8NC3bDaN2B+4xrPfNTM1uiNgT3GiS2Ru/HE nov78uHgVH/J4qaAA0RuyXonOGKcRjeLGHeIh12MW1dkWUi/OljTts8cz4S+hn2ccSG5 R8Pg== ARC-Authentication-Results: i=1; mx.google.com; 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 go4si6190964plb.69.2019.02.06.07.57.38; Wed, 06 Feb 2019 07:57:53 -0800 (PST) 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; 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 S1730033AbfBFPwb (ORCPT + 99 others); Wed, 6 Feb 2019 10:52:31 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42333 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbfBFPwb (ORCPT ); Wed, 6 Feb 2019 10:52:31 -0500 X-Originating-IP: 185.94.189.187 Received: from localhost (unknown [185.94.189.187]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 2CD3B60015; Wed, 6 Feb 2019 15:52:27 +0000 (UTC) Date: Wed, 6 Feb 2019 16:52:27 +0100 From: Maxime Ripard To: Priit Laes Cc: Chen-Yu Tsai , Michael Turquette , Stephen Boyd , linux-arm-kernel , linux-clk , linux-kernel , Jernej Skrabec Subject: Re: [RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock Message-ID: <20190206155227.wbkzvsdgykir4wn5@flea> References: <20190202155209.31617-1-plaes@plaes.org> <20190205094529.t7je4ozzu2b4ornc@flea> <20190206092000.f46nsn4fw2n4crub@flea> <20190206100309.dhkm2l73qzkwgjzg@plaes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="icccueyyr555murp" Content-Disposition: inline In-Reply-To: <20190206100309.dhkm2l73qzkwgjzg@plaes.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --icccueyyr555murp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 06, 2019 at 10:03:09AM +0000, Priit Laes wrote: > > > I'm concerned for other users of the PLL-PERIPH clock. AFAIK > > > all of them, except the HRTIMER, expect the clock rate to stay > > > the same and not change underneath them. And SATA expects it to > > > be at 600 MHz, as the datasheet says. And while it may not directly > > > apply to the LIME2, eMMC on newer SoCs / boards run at the slightly > > > reduced rate of 50 MHz just fine. > > >=20 > > > In the commit in question, clocks without CLK_SET_RATE_PARENT > > > should be using the old code (now in the if conditional block), > > > i.e. the behavior should not have changed. > > >=20 > > > I don't think this actually "fixes" whatever bug was introduced, > > > but only papers over the issue, and possible introduces further > > > issues for other users. > >=20 > > You're right, I've overlooked that it was pll-periph being > > affected. I've dropped it for now. >=20 > Any ideas what could be done. I currently have no time to debug it, > but it affects existing systems. I can't find what would change with that commit either if the flag isn't set, so looking at the register state before and after that commit would help I guess? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --icccueyyr555murp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXFsCuwAKCRDj7w1vZxhR xTU9AP9g4pbqlt+rpU7LjBo60zkNQyzMukc4S5jIrMWrBFyqpQEAj90+Ygl1XNH0 ouci5HXy93X8iohAAztclWA59L2xzA0= =1KMn -----END PGP SIGNATURE----- --icccueyyr555murp--