Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CC70C3A59D for ; Thu, 22 Aug 2019 06:35:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 21C1F233A0 for ; Thu, 22 Aug 2019 06:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731739AbfHVGfi (ORCPT ); Thu, 22 Aug 2019 02:35:38 -0400 Received: from sauhun.de ([88.99.104.3]:56614 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbfHVGfi (ORCPT ); Thu, 22 Aug 2019 02:35:38 -0400 Received: from localhost (p54B3343F.dip0.t-ipconnect.de [84.179.52.63]) by pokefinder.org (Postfix) with ESMTPSA id 892A02C2686; Thu, 22 Aug 2019 08:35:34 +0200 (CEST) Date: Thu, 22 Aug 2019 08:35:30 +0200 From: Wolfram Sang To: Ulf Hansson Cc: Ulrich Hecht , Linux-Renesas , "linux-mmc@vger.kernel.org" , Niklas =?utf-8?Q?S=C3=B6derlund?= , Masahiro Yamada , Geert Uytterhoeven , Magnus Damm Subject: Re: [PATCH v2 1/2] mmc: tmio: leave clock handling to runtime PM if enabled Message-ID: <20190822063530.wzee6gy4d2lisj2x@katana> References: <1564589857-17720-1-git-send-email-uli+renesas@fpond.eu> <1564589857-17720-2-git-send-email-uli+renesas@fpond.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xnta7dnbv7kckfzp" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org --xnta7dnbv7kckfzp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ulf, > > +#ifdef CONFIG_PM > > + /* PM handles the clock; disable it so it won't be enabled twic= e. */ > > + if (_host->clk_disable && pdev->dev.pm_domain) >=20 > Hmm. >=20 > This seems to work for most cases of yours, but it's fragile, because > how do you know that the pm_domain above is managing the clock? You > don't. >=20 =2E.. > I am going to think a bit more about this, but at this point, my > gut-feeling is that may need to add some helper functions to let genpd > and/or the pm_clk framework, to share some internal information with > drivers. Any outcome of this? Do you want to do it? Kind regards, Wolfram --xnta7dnbv7kckfzp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl1eN60ACgkQFA3kzBSg KbZ8Jg/+P+Gl2f7dNKdjUiBhpesovbr73kHwlAnwapdedRcgbv//36l4s1Pip0P1 +ulYeJtufUOtaoTMMP6xFEbUazPCbzMX/pGhukh389pmyWJAIaIUPVYzf+Bh8iOW F/hgEtzVnOKx2jkILXCSXVrJFIlSAIT9kXy/c2MFcsGFEhCV5dEjFkOSUvBL8icm q48dA5SAmzVA7sLkb5W1Pra3PywBEMkWOekHTEm+WPJ0FPPcmcKe8gJ9J59NT58m CAiVGl55L23jx2MRsc6Glqj3QRtI66/BUjMwF3NUzlkv6VdZ6Ym6lEI2kqJ0qyE8 hbHmfCpi5X+VE4wLZzQlNUE7PH3vH5I9cYhLTJ1s7gEERBAqeIbD32DOIkk8Xy6P Dm1OyJBjbNqd+x3zew5Xt41rr1ntntmgYRcU/UECLNfn3vZayAc+BVZq5L3SJguX OA8ScprISlYA+af/CJQY91lE/EMTvjqJeH/Na9jqzFGnge1N4gN6R7MP1CVEe8Pz UL6c3/46SpH2YSadsb6AqQcI39kataDxl63TffUtP68dVrsoNZtfjQMsht5TSepo Ba08uNj6ywmekvenPcWI33+doEF7oUTPXzeaLnC//0xAoRvjF7QHLNHt2cc43gvw vsiIr2csd+IV8YFLSsZAkcFGa9o+wZcTG9EdOFl39srM5x1xYK8= =+Zji -----END PGP SIGNATURE----- --xnta7dnbv7kckfzp--