[PCMCIA] - Porting PCMCIA driver to 2.6.16 kernel (from 2.6.15)
jithu joseph
jithu_joseph1 at yahoo.com
Fri Jul 28 04:32:18 EDT 2006
Dear Members,
i have a PCMCIA smart card reader and its driver
sources. My driver sources are not compiling with
Linux kernel version 2.6.16. (working on 2.6.15)
On analysis I find that there are some changes in the
PCMCIA header files (cs.h -> struct pcmcia_driver )
i.e like
1. unifying the attach and EVENT_CARD_INSERTION to a
probe fn
2. unifying detach and REMOVAL_EVENT handlers
i am able to do these
i also understand that i have to move out all the
functionality handled by the event handler
function to functions probe, detach , suspend and
resume which means
3 i have to move cases from event hadler
case CS_EVENT_PM_RESUME :
case CS_EVENT_CARD_RESET :
to the function pointed to by pcmcia_driver ->Resume
But here in my event handler sources i am finding
specific sections of code which are to be
executed only for CS_EVENT_PM_RESUME (and not for
RESET) :
but since in the new architecture i have only
single hadler (Resume) , how can i diffrentiate that
the control is there for the resume event or the reset
event
For more info regarding the PCMCIA related change
which is affecting my driver
(Reference : [PATCH] pcmcia: new suspend core,
commit : 98e4c28b7ec390c2dad6a4c69d69629c0f7e8b10
)
Yours Sincerely
Jithu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the linux-pcmcia
mailing list