From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [RFC] media DT bindings Date: Mon, 23 Jul 2012 13:14:20 +0100 Message-ID: <20120723121420.GC8302@sirena.org.uk> References: <5000375B.9060100@gmail.com> <5006EB9F.5010408@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5006EB9F.5010408@gmail.com> Sender: linux-media-owner@vger.kernel.org To: Sylwester Nawrocki Cc: Guennadi Liakhovetski , devicetree-discuss , Magnus Damm , Laurent Pinchart , Linux Media Mailing List List-Id: devicetree@vger.kernel.org On Wed, Jul 18, 2012 at 07:00:15PM +0200, Sylwester Nawrocki wrote: > One possible solution would be to have host/bridge drivers to register > a clkdev entry for I2C client device, so it can acquire the clock through > just clk_get(). We would have to ensure the clock is not tried to be > accessed before it is registered by a bridge. This would require to add > clock handling code to all sensor/encoder subdev drivers though.. If this is done well it could just be a simple callback, and we could probably arrange for the framework to just implement the default behaviour if the driver doesn't do anything explicit. Of couse this is one of those things where we really need the generic clock API to be generally available...