Re: [PATCH RFC 0/3] Implement refcounting for OF GPIO chips

2010-02-09 Thread Anton Vorontsov
On Tue, Feb 09, 2010 at 10:40:53AM +0100, Michal Simek wrote: [...] > >The above situation is hard to trigger, but the issue is there > >nonetheless, and so needs fixing. > > > I tested xilinx gpio driver, heartbeat trigger and access through > sysfs and I haven't found any problem. There is only

Re: [PATCH RFC 0/3] Implement refcounting for OF GPIO chips

2010-02-09 Thread Grant Likely
On Tue, Feb 9, 2010 at 2:40 AM, Michal Simek wrote: > Anton Vorontsov wrote: >> >> Hi all, >> >> OF GPIO infrastructure is using dynamic GPIO bases, so it is possible >> that of_get_gpio()'s returned GPIO number will be no longer valid, or >> worse, it may point to an unexpected GPIO controller. >

Re: [PATCH RFC 0/3] Implement refcounting for OF GPIO chips

2010-02-09 Thread Michal Simek
Anton Vorontsov wrote: Hi all, OF GPIO infrastructure is using dynamic GPIO bases, so it is possible that of_get_gpio()'s returned GPIO number will be no longer valid, or worse, it may point to an unexpected GPIO controller. This scenario is possible: driver A: driver B:

[PATCH RFC 0/3] Implement refcounting for OF GPIO chips

2010-02-05 Thread Anton Vorontsov
Hi all, OF GPIO infrastructure is using dynamic GPIO bases, so it is possible that of_get_gpio()'s returned GPIO number will be no longer valid, or worse, it may point to an unexpected GPIO controller. This scenario is possible: driver A: driver B: driver C: -