Re: [PATCH 1/2] Add support for TPS6235x support

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

 



On Friday 13 February 2009, Mark Brown wrote:
> On Fri, Feb 13, 2009 at 02:15:53PM -0800, David Brownell wrote:
> 
> > So what's the plan for merging it then?  I suspect it
> > relates to board-specific init ... regulator_register()
> > having changed signature for the 2.6.30 merge window,
> > and this FIXME remaining un-addressed:
> 
> Yes, it'll need to be updated for mainline.  I'd expect the updated
> version to be submitted via linux-kernel to myself and Liam (it's Liam
> who'd be doing the actual merge with Linus).

Me too.  I just wanted to be clear on those steps.  As you
noted, this has been around a few times ... IMO it would be
good to stick a useful milestone, like "mainline merge", in
the process.  ;)

Especially with 2.6.29-rc5 out now ... get it in the regulator
merge queue, so it can cook for a bit in the MM tree.  I think
the URL is

  http://git.kernel.org/?p=linux/kernel/git/lrg/voltage-2.6.git;a=shortlog;h=for-next


> > >        /* FIXME board init code should provide init_data->driver_data
> > >         * saying how to configure this regulator:  how big is the
> > >         * inductor (affects light PFM mode optimization), slew rate,
> > >         * PLL multiplier, and so forth.
> > >         */
> 
> > Maybe there should be a <linux/regulator/tps6235x.h>
> > header with that board-specific data, and the framework
> > data that's now thankfully not required to be held in
> > the platform_data.  (That init_data->driver_data was
> 
> I'd expect that would be done

I assume "that" is a struct defining the platform_data contents.


> for whatever data is required - it's the 
> standard thing and it's not new for regulator drivers either.  I've no
> specific knowledge of this chip so I can't really assess what's vital to
> get implemented prior to merge and what can be added in further patches
> later.

Minimally

	struct tps6235x_board_info {
		struct regulator_init_data *init_data;
	};

but presumably at least a few of the CTRL1 and CTRL2 fields.
Heck ... doing *all* of them is trivial, just add two bytes to
that struct (and move the bitfield decls to that header).

- Dave
--
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