Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751912AbaFFAq1 (ORCPT ); Thu, 5 Jun 2014 20:46:27 -0400 Received: from mail-vc0-f170.google.com ([209.85.220.170]:36316 "EHLO mail-vc0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbaFFAqY (ORCPT ); Thu, 5 Jun 2014 20:46:24 -0400 MIME-Version: 1.0 In-Reply-To: <20140606000324.10062.10257@quantum> References: <1401467562-5585-1-git-send-email-dianders@chromium.org> <1402000514-30752-1-git-send-email-dianders@chromium.org> <20140606000324.10062.10257@quantum> Date: Thu, 5 Jun 2014 17:46:23 -0700 X-Google-Sender-Auth: ihts_9ErUcaELGhrgFbZNJaZvS0 Message-ID: Subject: Re: [PATCH v3] clk: exynos5420: Remove aclk66_peric from the clock tree description From: Doug Anderson To: Mike Turquette Cc: Tomasz Figa , Kukjin Kim , Olof Johansson , Javier Martinez Canillas , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Rahul Sharma , Shaik Ameer Basha , Arun Kumar , Alim Akhtar , a.hajda@samsung.com, linux-samsung-soc , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mike, On Thu, Jun 5, 2014 at 5:03 PM, Mike Turquette wrote: > Quoting Doug Anderson (2014-06-05 13:35:14) >> The "aclk66_peric" clock is a gate clock with a whole bunch of gates >> underneath it. This big gate isn't very useful to include in our >> clock tree. If any of the children need to be turned on then the big >> gate will need to be on anyway. ...and there are plenty of other "big >> gates" that aren't described in our clock tree, some of which shut off >> collections of clocks that have no relationship in the hierarchy so >> are hard to model. > > I think this is a common problem. On OMAP we have something similar to > this called "clock domains" or "clkdm" and it has been historically > handled outside of the Linux clock framework[1]. There is a relationship > to the clock framework of course and in the future it might be > worthwhile to see if there is a generic way to handle this stuff. That sounds like something that would be nice to solve, but it's not going to happen now. On the off chance that the user manual mentioned the existence of one of these "big gate" bits, it tends to not be very specific about _exactly_ which sets of clocks it disables. Tracking down every one of these would be hugely time consuming. Also: as Tomasz has indicated they don't provide a huge amount of benefit since we're already dealing with clocks on a more fine-grained level... >> "aclk66_peric" is causing earlyprintk problems since it gets disabled >> as part of the boot process, so let's just remove it. >> >> Strangely (and for no good reason) this clock is exported as part of >> the common clock bindings. Remove it since there are no in-kernel >> device trees using it and no reason anyone out of tree should refer to >> it either. > > So Linux has no control over the big gate now, correct? You are > dependent on the bootloader to ungate this thing? A better way to put it is that you're dependent on the bootloader not to gate it. ...but that's also true for pretty much any clock marked IGNORE_UNUSED and not explicitly enabled anywhere. Are you opposed to this landing as-is to unblock things and people can continue to work on the clock driver to make it even better? -Doug -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/