« Return to Thread: Bug#399682: openct: cm4000 driver fails with "cm4000: setting parameters failed"

Bug#399682: openct: cm4000 driver fails with "cm4000: setting parameters failed"

by Jan Niehusmann :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

Package: openct
Version: 0.6.10-1
Severity: normal
Tags: patch

The cm4000 driver fails to load because the initialization routine calls
ifd_sevice_set_parameters which in turn tries to call
dev->ops->set_params(). This function is currently only defined for
serial and usb devices, but not for pcmcia devices.

The proper fix may be implementing the set_params function for cm4000,
but the following patch does work for now (and in fact only reverts a
recent regression in openct):

Only in openct-0.6.10-orig/src/ifd: .ifd-cm4000.c.swp
diff -ur openct-0.6.10-orig/src/ifd/ifd-cm4000.c openct-0.6.10/src/ifd/ifd-cm4000.c
--- openct-0.6.10-orig/src/ifd/ifd-cm4000.c 2006-09-12 22:55:14.000000000 +0200
+++ openct-0.6.10/src/ifd/ifd-cm4000.c 2006-11-21 11:13:25.000000000 +0100
@@ -42,11 +42,16 @@
 
  params = dev->settings;
  params.usb.interface = 0;
+ /* ifd_sevice_set_parameters does not work for cm4000, as dev->ops->set_params
+ * is not defined.
+
  if (ifd_device_set_parameters(dev, ¶ms) < 0) {
  ct_error("cm4000: setting parameters failed", device_name);
  ifd_device_close(dev);
  return -1;
  }
+
+ */
 
  return 0;
 }



-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2-vs2.0.2.2-rc3vserver-g9be2442a
Locale: LANG=C, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages openct depends on:
ii  adduser                      3.99        Add and remove users and groups
ii  dpkg                         1.13.24     package maintenance system for Deb
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libltdl3                     1.5.22-4    A system independent dlopen wrappe
ii  libopenct1                   0.6.10-1    middleware framework for smart car
ii  libusb-0.1-4                 2:0.1.12-2  userspace USB programming library

Versions of packages openct recommends:
ii  udev                          0.100-2.3  /dev/ and hotplug management daemo

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

 « Return to Thread: Bug#399682: openct: cm4000 driver fails with "cm4000: setting parameters failed"