Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp962635imc; Mon, 11 Mar 2019 03:29:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxClLs/Kvj46NLben86YO6q/Sag7E6F9DRVuV9ehrFq4fPpJVnxetQhoMuaWNdwiwF/nxD/ X-Received: by 2002:a62:4586:: with SMTP id n6mr32641740pfi.43.1552300152386; Mon, 11 Mar 2019 03:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552300152; cv=none; d=google.com; s=arc-20160816; b=BRSjhGUKGMYZ43VMyBEp6YJKbrKBedCLoxdfWGAina0BTtxrnzOlBUQ8Aw2IoF9Rht FwYd5oafVQ+E0chG4eDJKiVn1Rv+9mDV+U7rs4taE8Ho+ZzCz3pUTXuAQ+qFVXQ1k1HK rMDtqnAhx5FrFjxbY3TDhkxX7Ih7lpL5fnv23I47ujCvC2oLEiNR2oFYhvNAlUgJ/zyg BTSEzHkAenG7SQGvk6v6p6LmT5FUhDM2fOauAPH24lMYGdPpdJTmCItSaNi/ULsKvWJH HEKs2nrKzE4a6F7T+jNjh0YhKEUmO1uhL2sj5fSXpuPjpL3bJZmRQlDVkuAcgzAqu1cw bf7g== 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=SQqLTwBMqQbY6b8/0qbPYyztTdpyDo0pvM9cF1fABwI=; b=u1nHg2Oi09mPRuZtgspHhXkAoHnwd3Ecc+BF/ddpT7Zi0oR9lHbAxvFe2CTvMfEJ9T d1AlX+UmypQIo/tRee4F7gyG4yzR9RK8+gR9x8sOYh1iUpKWQlKDqSlwEp248INvHtn2 EIBMPI+hHzEkY5Ybs07lvB4sa0bUW3bw/NPpiclABCYjXgI1umfJNoPDyTgg1tFY+X55 3AxwowOC+oAgOfrq067/otaFJaOwhLjqK9pGWUOvRd49EPwjfVAf432mHFwjhyMeutp1 Jwaav+3ghwtSM2etWl2wENejuMm5/SGvFK2AYD0dNo4H8PIZ2/2rT+L5xceE9A90Mlqp exZw== 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 b12si4587873pgq.421.2019.03.11.03.28.56; Mon, 11 Mar 2019 03:29:12 -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; 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 S1727008AbfCKK2e (ORCPT + 99 others); Mon, 11 Mar 2019 06:28:34 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:44619 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfCKK2d (ORCPT ); Mon, 11 Mar 2019 06:28:33 -0400 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h3IAU-0006W5-F6; Mon, 11 Mar 2019 11:28:26 +0100 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1h3IAT-0003ry-Lp; Mon, 11 Mar 2019 11:28:25 +0100 Date: Mon, 11 Mar 2019 11:28:25 +0100 From: Sascha Hauer To: Abel Vesa Cc: Michael Turquette , Stephen Boyd , Sascha Hauer , Lucas Stach , Shawn Guo , Aisheng Dong , Jacky Bai , Anson Huang , Linux Kernel Mailing List , dl-linux-imx , Fabio Estevam , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [RFC] clk: imx: Allow re-parenting by default on set rate Message-ID: <20190311102825.g7d5mmorcltxnnzf@pengutronix.de> References: <1551950425-7346-1-git-send-email-abel.vesa@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551950425-7346-1-git-send-email-abel.vesa@nxp.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:08:49 up 27 days, 18:34, 84 users, load average: 0.22, 0.40, 0.38 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Abel, On Thu, Mar 07, 2019 at 09:20:37AM +0000, Abel Vesa wrote: > By default, the muxes should re-parent on set_rate. > This would allow the drivers to control only the leaf clock node, > leaving the rest to the clock driver, that way simplifying the > clock control. I am afraid of this change. Besides the rate there might be other reasons to choose one mux input over another, consider for example low power audio playback where we need one specific mux setting because it provides a clock which runs at low power mode. On the IPU on i.MX5/6 there are clocks being used as pixel clocks derived from different muxes. I don't think you want to pick an input clock just because it happens to deliver the best clock rate at that point in time, but really is shared with some other clock that changes its rate in the next moment. I have no concrete examples for things that break with this change, but I would be more confident if we change the behaviour explicitly only for the muxes that we have reviewed to cope with this change. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |