* [2.6.14.2] port smartcard driver to new pcmcia infrastructure?
@ 2005-11-18 13:21 Jan De Luyck
0 siblings, 0 replies; 2+ messages in thread
From: Jan De Luyck @ 2005-11-18 13:21 UTC (permalink / raw)
To: linux-kernel
Hello list,
I'm currently looking into getting my smartcard driver to work. O2Micro was
nice enough to opensource the driver [1]. The driver compiles without
problems, and can be insmod' without triggering any problem. The main problem
lies that it doesn't seem to be calling the ozscrx_attach function, which
sets up the irq's and everything, thus causing the subsequent open of the
device to fail with -ENODEV.
The laptop in question is an Acer TM803, with an
in-the-cardbus-system-integrated SmartCard reader.
Does anyone have any idea how i can continue debugging this?
Thanks.
Jan
[1] ftp://scrdriver:scrdriver@209.19.104.194/Linux or
http://www.musclecard.com/drivers/readers/files/O2Micro_PCMCIA_SCR_202_Linux_Kernel26_OpenSource.tar.gz
--
Se o filme fosse gaúcho...
Mamãe Faz Cem anos -- A Véia tá Cheirando a Defunto
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6.14.2] port smartcard driver to new pcmcia infrastructure?
@ 2005-12-07 11:02 Dominik Brodowski
0 siblings, 0 replies; 2+ messages in thread
From: Dominik Brodowski @ 2005-12-07 11:02 UTC (permalink / raw)
To: Jan De Luyck; +Cc: linux-kernel
Hi!
> I'm currently looking into getting my smartcard driver to work. O2Micro was
> nice enough to opensource the driver [1]. The driver compiles without
> problems, and can be insmod' without triggering any problem. The main problem
> lies that it doesn't seem to be calling the ozscrx_attach function, which
> sets up the irq's and everything, thus causing the subsequent open of the
> device to fail with -ENODEV.
>
> Does anyone have any idea how i can continue debugging this?
The problem is that one, possibly two of the required changes haven't yet
propagated to their driver.
* event handler initialization in struct pcmcia_driver (as of 2.6.13)
The event handler is notified of all events, and must be initialized
as the event() callback in the driver's struct pcmcia_driver.
Example patch:
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=1e212f3645a6b355de8c43a23376bc0e2ac49a63
and
* in-kernel device<->driver matching (as of 2.6.13)
PCMCIA devices and their correct drivers can now be matched in
kernelspace. See 'devicetable.txt' for details.
Example patch:
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff;h=cdcc46e1f11d6dfbf4e741d7c77ec83a4b7c09ac;hp=f3ea4a9f2bf196a0b884cde3d44a2cec27f9db13;hb=ce8a0037e110c1f4ec2fac7a3d791043e4e38cfc;f=drivers/net/pcmcia/pcnet_cs.c
the correct ID is, AFAICS:
PCMCIA_DEVICE_PROD_ID123("O2Micro", "SmartCardBus Reader", "V1.0", 0x97299583, 0xb8501ba9, 0xe611e659);
For -mm (and for 2.6.16, not .15) there are quite more changes necessary,
which are also described in Documentation/pcmcia/driver-changes.txt.
Dominik
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-07 11:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 13:21 [2.6.14.2] port smartcard driver to new pcmcia infrastructure? Jan De Luyck
-- strict thread matches above, loose matches on Subject: below --
2005-12-07 11:02 Dominik Brodowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox