[regression] Kobil card reader don't work with 2.6.22-x (now with a patch)

Bug #128228 reported by Erik Harren
8
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

I'm running variuos secure card terminals for HBCI-banking (Kobil and Reiner SCT)which don't do anything in gutsy with delivered kernel 2.6.22-7/8.

I need to run them with libctapi and moneyplex. When running gutsy-kernels i cannot establish any usb-device (e.g. /dev/ttyUSB0 for Kobil B1 pro USB). When running Feisty-kernel-image 2.6.20-x everything (Kobil) is doing fine. Reiner SCT is only shown when running lsusb twice very shortly.

Greetings,
Erik.

[Read https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/128228/comments/6 for a patch]

Revision history for this message
Paul Dufresne (paulduf) wrote : Re: [regression] secure card reader don't work with 2.6.22-x

Thank you for taking the time to report this bug and helping to make Ubuntu better.
I am sure things will be clearer if we begin to treat each device separately.
So, let's make this bug report about Kobil device.
Please open a new bug report about Reiner SCT device and post the number of the newly created bug here.

Please include the following additional information, if you have not already done so (please pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "sudo lspci -vvnn > lspci-vvnn.log" and attach the resulting file "lspci-vvnn.log" to this bug report.
[And added by me:]
4. Please run the command "lsusb -v > lsusb.log" and attach the resulting file "lsusb.log" to this bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at [WWW] http://wiki.ubuntu.com/KernelTeamBugPolicies. Thanks in advance!

Changed in linux-source-2.6.22:
assignee: nobody → dufresnep
status: New → Incomplete
Revision history for this message
Mirko Strüßmann (mirko-struessmann) wrote : Re: [regression] Kobil card reader don't work with 2.6.22-x

I'm just experiencing this problem after upgrading my system to gutsy. When moneyplex tries to access the card reader, it takes all cpu idle time and nothing happens...

> uname -a
> Linux urmel2 2.6.22-14-386 #1 Sun Oct 14 22:36:54 GMT 2007 i686 GNU/Linux

Revision history for this message
Mirko Strüßmann (mirko-struessmann) wrote :
Revision history for this message
Mirko Strüßmann (mirko-struessmann) wrote :
Revision history for this message
Erik Harren (linux-aceh) wrote :

Hi out there!

Sorry for being absent and did not move for such a long time. Paul, i added your recommended files to the tgz-file twice:

A) working with 2.6.20
B) no work with 2.6.22-14

The Kobil seems to be listed but cannot used by libct-api. Don't know why this happens.

regards,

Erik.

Revision history for this message
Harald Seipp (hseipp) wrote :

Here is the upstream bug: http://thread.gmane.org/gmane.linux.kernel/589306/

The fix is part of the 2.6.24-rc1:
commit 94d0f7eac77a84da2cee41b8038796891f75f09e
Author: Alan Cox <email address hidden>
Date: Wed Aug 22 23:09:16 2007 +0100

    USB: kobil_sct: Rework driver

    No hardware but this driver is currently totally broken so we can't make
    it much worse. Remove all tbe broken invalid termios handling and replace
    it with a proper set_termios method.

    Signed-off-by: Alan Cox <email address hidden>
    Signed-off-by: Greg Kroah-Hartman <email address hidden>

I extracted the patch and re-compiled the kobil_sct driver - everything is working again with my Kobil Kaan Standard Plus.
For convenience, I attached the single patch for kobil_sct.c

Please integrate into the next Gutsy kernel update!

Paul Dufresne (paulduf)
description: updated
Revision history for this message
Paul Dufresne (paulduf) wrote :

Thanks you all for these new information.
Erik, please next time just attach files individually rather than an archive (I expect they are stored compress anyway).
I am confirming the bug now.

Changed in linux-source-2.6.22:
assignee: dufresnep → ubuntu-kernel-team
status: Incomplete → Confirmed
Revision history for this message
Harald Seipp (hseipp) wrote :

I was very disappoionted with the last kernel update (2.6.22-14.47) because it did not include the fix for the broken driver.
The current driver is unusable, the fix is available - what's going wrong here?

Revision history for this message
Erik Harren (linux-aceh) wrote :

Hi Harald,

i expected a release of 2.6.24 working with hardy - but nothing seems to be changed so far as far as i'm concerned. The kobil-driver still seems to be corrupted.

Could you please provide me with via email with your knowledge how to patch the driver?

regards,
Erik.

Revision history for this message
Paul Dufresne (paulduf) wrote :

I have written an email to Grek KH who was supposed to have written a patch for this according to Alan Cox, asking him if the patch was really released. If/When I receive an answer, I will keep you informed.

Revision history for this message
Harald Seipp (hseipp) wrote :

Erik,

I attached the patch that I backported from 2.6.24-rc1 to the current 2.6.22-14 gutsy kernel to my post (https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/128228/comments/6) above.
Applying that patch (http://launchpadlibrarian.net/10175748/kobil_sct.patch) to the current gutsy Ubuntu sources is straight-forward, if you are used to handle kernel sources or patches. If you're stuck with that, send me an e-mail and I'll help.

Paul,

I don't understand your last comment - my post https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/128228/comments/6 contained all information about the patchset that was taken into the mainstream kernel with 2.6.24-rc1. Even if you won't believe me, you could have looked it up in the kernel release notes or the git repository, so why bothering the developers with that.
Again, I've applied the patch and I can confrim that the patch fixes the driver at least in a way that it works again as it did with feisty.

Revision history for this message
Paul Dufresne (paulduf) wrote :

It's not that I don't believe your patch to be right, but because I want it to be fixed in all distribution, not just Ubuntu.
I suppose that if it would have indeed been patched in main kernel by Oct 13 2007 like the linux thread archive you mentioned above says, we would have it in 2.6.24 by now. So I suspect the patch Alan Cox mentioned to have seen from Greg never have been released in main kernel, which seems to indicate it was... lost somewhere. Admittedly, I probably should have let a kernel developer decide to do that or not.

Revision history for this message
Paul Dufresne (paulduf) wrote :

Sigh... Ok, I begin to see. I am just discovering linux gitweb.
So basically your patch is both this two mainstream patches (that are not lost at all!):
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a6ebf80dbc186d4782d6b08cf3676e4f22a8a84b termios encoding fixups) plus:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=94d0f7eac77a84da2cee41b8038796891f75f09e (USB: kobil_sct: Rework driver)

At first glance, the latest diff is already in Hardy kernel:
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-hardy.git;a=blob;h=aee450246bfd8b0befa879ca9613415ad649d577;hb=8be508e1ed1d17da4fb810b2ea2b2af4991016fe;f=drivers/usb/serial/kobil_sct.c
So I don't really understand why Hardy alpha-2 CD would not work.

Revision history for this message
Harald Seipp (hseipp) wrote :

There was never a question that the driver would work with hardy - as I mentioned above, the driver _is_ going to be fixed for 2.6.24. The point is that I'm missing the fix as part of a _gutsy_ kernel update.
The gutsy kernel introduced the regression and again, the driver was working with feisty and previous ubuntu releases.
But maybe I just don't understand the fix strategy for non-LTS releases with regards to kernel patches....If fixing broken kernel drivers is always postponed to the next ubuntu release, I can live with that, but I think that users without kernel development skills who can't get their hardware working again (here: online banking secure access!) will be very disappointed...

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The patches referenced here are already committed in the Hardy kernel so I'll be marking this as 'Fix Released' against the actively developed kernel. However, against linux-source-2.6.22 this bug does not meet the criteria for a stable release update and is being marked as Won't Fix. You can learn more about the stable release update process at https://wiki.ubuntu.com/KernelUpdates and https://wiki.ubuntu.com/StableReleaseUpdates . Thanks!

Changed in linux:
status: New → Fix Released
Changed in linux-source-2.6.22:
status: Confirmed → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.