From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH] clk: mediatek: Export CPU mux clocks for CPU frequency control Date: Thu, 12 Mar 2015 14:51:30 +0530 Message-ID: References: <1425466152-7867-1-git-send-email-pi-cheng.chen@linaro.org> <20150304112109.GB11010@pengutronix.de> <20150305074207.GC11010@pengutronix.de> <20150305091948.GH11010@pengutronix.de> <20150305105104.GJ11010@pengutronix.de> <20150311001328.14952.56422@quantum> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20150311001328.14952.56422@quantum> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mike Turquette Cc: Sascha Hauer , Russell King - ARM Linux , Pi-Cheng Chen , Mark Rutland , James Liao , Linaro Kernel Mailman List , Pawel Moll , Ian Campbell , Stephen Boyd , Linux Kernel Mailing List , Henry Chen , Chen Fan , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Rob Herring , linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Kumar Gala , Matthias Brugger , "Joe.C" , Eddie Huang , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" List-Id: devicetree@vger.kernel.org On 11 March 2015 at 05:43, Mike Turquette wrote: > Sorry, I am not who you asked for advice but I will chime in anyways ;-) Always welcome :) > I really hate this intermediate frequency stuff in cpufreq. As we I am starting to :) > Furthermore any intermediate-frequency property in a Devicetree binding > would suffer the same fate. Trying to neatly encode some weird sequence > into this generic thing will get very ugly very fast. Hmm.. > For proof please look at clk-divider.c, clk-gate.c, clk-mux.c or > clk-composite.c and you'll see the result of the slow accumulation of > lots and lots of hardware corner cases onto generic code. If I had known > then what I know now I would not have created those generic clock types > and I would have tried for an abstraction layer between generic stuff > (e.g. find the best divider) and the real hardware stuff (write to the > register). Instead I kept all of it together and now things are super > ugly. Yeah. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html