Hi,
Just some suggestions I need for my GPIO Expander Driver.
I have just written a working driver for my GPIO expander in Linux Kernel 2.6.37
The suggestions I need are during my probe function I use the spi write routines to configure IO of the expander.
When I use the subsys_initcall for the driver registration the SPI routines do not work properly but when i use late_initcall all seems to work fine.
The thing I would like to know is that I thought I would register the driver first and then do the init of IO's the last thing in my board file. But what happens is that when i use the gpio_set_value or any other gpio routine it gets executed first thing before my driver is registered in which case the GPIO is invalid. How do I specify in my board file that request some gpio's when my IO expander driver has registered.
Thanks for your help.
Ali