Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-20 Thread Grant Likely
On Fri, Nov 20, 2009 at 1:37 PM, Grant Likely wrote: > On Tue, Nov 17, 2009 at 8:42 AM, Dmitry Eremin-Solenikov > wrote: >> This patch improves OF GPIO bindings so, that most non-OF-specific gpio >> controllers don't need to call any of OF binding function: >> >> 0) Move of_gpio_chip into main gp

Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-20 Thread Grant Likely
On Tue, Nov 17, 2009 at 8:42 AM, Dmitry Eremin-Solenikov wrote: > This patch improves OF GPIO bindings so, that most non-OF-specific gpio > controllers don't need to call any of OF binding function: > > 0) Move of_gpio_chip into main gpio_chip structure. > 1) Call of_gpio_init/destroy from gpiochi

Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-17 Thread Anton Vorontsov
On Tue, Nov 17, 2009 at 09:08:21PM +0100, Wolfram Sang wrote: > > And it turned out that the only sane solution is to write > > OF-pdata-hooks for the each driver (that we do for many drivers > > already): > > Or to support Grant in getting rid of of_platform :) No, of_platform is completely othe

Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-17 Thread Wolfram Sang
> And it turned out that the only sane solution is to write > OF-pdata-hooks for the each driver (that we do for many drivers > already): Or to support Grant in getting rid of of_platform :) -- Pengutronix e.K. | Wolfram Sang| Industrial Linux Solutions

Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-17 Thread Anton Vorontsov
On Tue, Nov 17, 2009 at 06:42:22PM +0300, Dmitry Eremin-Solenikov wrote: > This patch improves OF GPIO bindings so, that most non-OF-specific gpio > controllers don't need to call any of OF binding function: > > 0) Move of_gpio_chip into main gpio_chip structure. > 1) Call of_gpio_init/destroy fro

[RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-17 Thread Dmitry Eremin-Solenikov
This patch improves OF GPIO bindings so, that most non-OF-specific gpio controllers don't need to call any of OF binding function: 0) Move of_gpio_chip into main gpio_chip structure. 1) Call of_gpio_init/destroy from gpiochip_add/remove. 2) By default supply reasonable defaults for gpio_cells/xlat