Re: [PATCH 1/3] [RFC] clk: introduce clk_associate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 01, 2008 at 08:51:46AM -0700, David Brownell wrote:
> On Wednesday 01 October 2008, Felipe Balbi wrote:
> > +/**
> > + * clk_associate - associates a user to a clock so device drivers don't
> > + * have to care about clock names
> > + *
> > + * @id: clock id as defined in arch/arm/mach-omapX/clkxxxx.h
> > + * @dev: device pointer for the clock user
> > + * @f: a function for the clock (uart_[if]ck, musb_ick, ehci_[if]ck, etc)
> > + */
> > +void __init clk_associate(const char *id, struct device *dev, const char *f)
> 
> Heh.  I remember coming up with that same abstraction
> for mach-at91/clock.c a few years back.  It seems to
> have worked fairly well in that far simpler environment,
> and I can't imagine why it wouldn't work here too.

aha, so it was you. I was reading clk implementations from other arm
architectures and found that at91_clk_associate() which seemed really
nice. So I decided to move to linux-omap since it'll solve some clk
issues we have here :-)

> The name might be confusing though, since it's not part
> of the standard clk_*() interface ... and the name might
> be needed there, eventually.

I suppose clk_associate() could become part of the clk api, yes. It's
quite useful when you have different version of the SoC with different
clk names (omap1/2/3, for instance).

> So mirroring "at91_clock_associate()" ... maybe this
> should be "omap_clock_associate()" not "clk_associate()".

Well, I'm ok with that but I'd rather see clk_associate() moving to
clk api so anyone who needs that, could use it.

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux