[LinuxPPS] RFC: IRQ/GPIO client

Ricardo Martins rasm at fe.up.pt
Thu Dec 16 03:06:21 CET 2010


Hi,

On 14 December 2010 07:27, Rodolfo Giometti <giometti at enneenne.com> wrote:
> On Tue, Dec 14, 2010 at 12:21:20AM +0000, Ricardo Martins wrote:
>
>> What do you think about this quick&dirty patch ?
>
> Nack.
I sent the patch just to help François if he needed.

>
> You should use a generic driver who can be used for more than one
> GPIO.
>
> Try using a platform driver who manages several platform devices.
I attach a more complete patch that does what you request. I kept the
part that allows to add sources through module arguments just to
simplify the life of those who want this feature but do not want to
change their board initialization code.

Regards,
Ricardo Martins

>
> Ciao,
>
> Rodolfo
>
> --
>
> GNU/Linux Solutions                  e-mail: giometti at enneenne.com
> Linux Device Driver                          giometti at linux.it
> Embedded Systems                     phone:  +39 349 2432127
> UNIX programming                     skype:  rodolfo.giometti
> Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 00-pps-irq-kconfig.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20101216/a6145831/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-pps-irq-makefile.patch
Type: text/x-patch
Size: 382 bytes
Desc: not available
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20101216/a6145831/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-pps-irq-source.patch
Type: text/x-patch
Size: 7043 bytes
Desc: not available
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20101216/a6145831/attachment-0002.bin 


More information about the LinuxPPS mailing list