From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerhard Sittig Subject: Re: [PATCH] ARM: imx6q: Add missing esai_ahb clock to current clock tree Date: Thu, 9 Jan 2014 15:57:53 +0100 Message-ID: <20140109145753.GV20094@book.gsilab.sittig.org> References: <1389236699-10387-1-git-send-email-Guangyu.Chen@freescale.com> <20140109075525.GO6750@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20140109075525.GO6750-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Nicolin Chen , shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org, mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, Jan 09, 2014 at 08:55 +0100, Sascha Hauer wrote: > > [ ... ] > > We have the situation here that a single bit controls two clocks. As > Shawn mentioned just using two gates on the same bit doesn't work > properly. Do we need a new basic clock type or expand the common gate > code somehow? > This situation happens from time to time and I haven't seen a solution > for this. You may want to lookup the following message: Date: Tue, 23 Jul 2013 15:14:06 +0200 From: Gerhard Sittig To: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Anatolij Gustschin , Mike Turquette , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: [ ... ] Subject: Re: [PATCH v3 17/31] clk: mpc512x: introduce COMMON_CLK for MPC512x http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/185687.html The specific situation was for MS-CAN on PowerPC, but it inspired my outlining an approach to "shared clock gates". See an example implementation towards the end of the message with both the clk-gate.c extension, as well as rather generic example use. My approach turned out to not be needed, but it might serve as a starting point for you. You'd have to add support for static declaration though, but this should be straight forward. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office-ynQEQJNshbs@public.gmane.org -- 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