public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.net>
To: Jan De Luyck <lkml@kcore.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.6.14.2] port smartcard driver to new pcmcia infrastructure?
Date: Wed, 7 Dec 2005 12:02:44 +0100	[thread overview]
Message-ID: <20051207110244.GA12569@isilmar.linta.de> (raw)

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

             reply	other threads:[~2005-12-07 11:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-07 11:02 Dominik Brodowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-18 13:21 [2.6.14.2] port smartcard driver to new pcmcia infrastructure? Jan De Luyck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051207110244.GA12569@isilmar.linta.de \
    --to=linux@dominikbrodowski.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@kcore.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox