[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/7] gpiolib: implement dev_gpiochip_{add,remove} calls
On Tue, Oct 21, 2008 at 09:22:48PM -0700, David Brownell wrote:
> On Tuesday 21 October 2008, Benjamin Herrenschmidt wrote:
> > The notifier can be registered before the devices, though it's a little
> > bit fishy and fragile.
> >
> > Easier I suppose to just have OF specific hooks in the bus code.
> Like what I suggested: "chip-aware OF glue drivers". The relevant
> bus code being the "of_platform_bus_type" infrastructure.
> Example: instead of Anton's patch #6 modifying the existing pca953x
> driver, an of_pca953x driver that knows how to poke around in the OF
> device attributes to (a) create the pca953x_platform_data, (b) call
> i2c_register_board_info() to make that available later, and then
> finally (c) vanish, since it's not needed any longer.

Heh. You tell me my first approach: (mmc_spi)

The OF people didn't like the patch which was used to support this

The board info has another problem though. We can't remove it, thus
we can't implement module_exit() for the 'OF glue'.

Anton Vorontsov

 \ /
  Last update: 2008-10-22 12:39    [W:0.096 / U:3.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site