* PROBLEM: AIPTEK input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
@ 2005-04-10 13:21 Viktor A. Danilov
2005-04-12 7:41 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Viktor A. Danilov @ 2005-04-10 13:21 UTC (permalink / raw)
To: linux-kernel, bwheadley, chris
[-- Attachment #1: Type: text/plain, Size: 2141 bytes --]
PROBLEM: aiptek input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
REASON: `dev` - field not filled...
SOLUTION: in linux/drivers/usb/input/aiptek.c write
aiptek->inputdev.dev = &intf->dev;
before calling
input_register_device(&aiptek->inputdev);
PATCH:
--- linux/drivers/usb/input/aiptek.c.orig 2005-03-09 13:12:31.000000000 +0500
+++ linux/drivers/usb/input/aiptek.c 2005-04-10 18:39:59.000000000 +0600
@@ -2139,8 +2140,9 @@
aiptek->inputdev.id.bustype = BUS_USB;
aiptek->inputdev.id.vendor = le16_to_cpu(usbdev->descriptor.idVendor);
aiptek->inputdev.id.product = le16_to_cpu(usbdev->descriptor.idProduct);
aiptek->inputdev.id.version = le16_to_cpu(usbdev->descriptor.bcdDevice);
+ aiptek->inputdev.dev = &intf->dev;
aiptek->usbdev = usbdev;
aiptek->ifnum = intf->altsetting[0].desc.bInterfaceNumber;
aiptek->inDelay = 0;
LINUX_VERSION:
vdanilov@viktor:/usr/src/linux/scripts$ ./ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
Linux viktor 2.6.11.5-C2H5OH #1 Fri Mar 25 15:29:27 YEKT 2005 i686 GNU/Linux
Gnu C 3.3.4
Gnu make 3.80
binutils 2.15
util-linux 2.12h
mount 2.12h
module-init-tools 3.1
e2fsprogs 1.35
reiserfsprogs line
reiser4progs line
pcmcia-cs 3.2.5
PPP 2.4.2
Linux C Library 2.3.2
Dynamic linker (ldd) 2.3.2
Procps 3.2.4
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 5.2.1
udev 056
Modules Loaded i830 drm pcmcia smbfs pcspkr snd_intel8x0m aiptek usbhid uhci_hcd intel_agp agpgart 8139too crc32 yenta_socket rsrc_nonstatic pcmcia_core ehci_hcd snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore snd_page_alloc nls_koi8_r vfat fat eeprom evdev i2c_sensor i2c_i801 i2c_core ide_cd cdrom usbkbd usbcore psmouse speedstep_centrino freq_table
[-- Attachment #2: aiptek.c.diff --]
[-- Type: text/x-diff, Size: 587 bytes --]
--- linux/drivers/usb/input/aiptek.c.orig 2005-03-09 13:12:31.000000000 +0500
+++ linux/drivers/usb/input/aiptek.c 2005-04-10 18:39:59.000000000 +0600
@@ -2139,8 +2140,9 @@
aiptek->inputdev.id.bustype = BUS_USB;
aiptek->inputdev.id.vendor = le16_to_cpu(usbdev->descriptor.idVendor);
aiptek->inputdev.id.product = le16_to_cpu(usbdev->descriptor.idProduct);
aiptek->inputdev.id.version = le16_to_cpu(usbdev->descriptor.bcdDevice);
+ aiptek->inputdev.dev = &intf->dev;
aiptek->usbdev = usbdev;
aiptek->ifnum = intf->altsetting[0].desc.bInterfaceNumber;
aiptek->inDelay = 0;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PROBLEM: AIPTEK input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
2005-04-10 13:21 PROBLEM: AIPTEK input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#) Viktor A. Danilov
@ 2005-04-12 7:41 ` Greg KH
2005-06-05 10:21 ` PROBLEM: atiremote " Vincent Vanackere
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2005-04-12 7:41 UTC (permalink / raw)
To: Viktor A. Danilov; +Cc: linux-kernel, bwheadley, chris
On Sun, Apr 10, 2005 at 07:21:28PM +0600, Viktor A. Danilov wrote:
>
> PROBLEM: aiptek input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
> REASON: `dev` - field not filled...
> SOLUTION: in linux/drivers/usb/input/aiptek.c write
> aiptek->inputdev.dev = &intf->dev;
> before calling
> input_register_device(&aiptek->inputdev);
Good catch, I've applied this to my kernel trees.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* PROBLEM: atiremote input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
2005-04-12 7:41 ` Greg KH
@ 2005-06-05 10:21 ` Vincent Vanackere
2005-06-20 15:43 ` Vojtech Pavlik
0 siblings, 1 reply; 4+ messages in thread
From: Vincent Vanackere @ 2005-06-05 10:21 UTC (permalink / raw)
To: linux-kernel, Greg KH, thoffman; +Cc: Viktor A. Danilov
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
> On Sun, Apr 10, 2005 at 07:21:28PM +0600, Viktor A. Danilov wrote:
> >
> > PROBLEM: aiptek input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
> > REASON: `dev` - field not filled...
> > SOLUTION: in linux/drivers/usb/input/aiptek.c write
> > aiptek->inputdev.dev = &intf->dev;
> > before calling
> > input_register_device(&aiptek->inputdev);
Hi,
The following (tested) patch fixes the exact same issue with the ATI
Remote input driver.
Best regards,
Vincent
[-- Attachment #2: patch_ati.txt --]
[-- Type: text/plain, Size: 522 bytes --]
--- linux-2.6.11/drivers/usb/input/ati_remote.c 2005-05-09 16:20:19.000000000 +0200
+++ linux-2.6.12-rc5/drivers/usb/input/ati_remote.c 2005-06-05 11:40:58.000000000 +0200
@@ -654,6 +654,7 @@
idev->id.vendor = le16_to_cpu(ati_remote->udev->descriptor.idVendor);
idev->id.product = le16_to_cpu(ati_remote->udev->descriptor.idProduct);
idev->id.version = le16_to_cpu(ati_remote->udev->descriptor.bcdDevice);
+ idev->dev = &(ati_remote->udev->dev);
}
static int ati_remote_initialize(struct ati_remote *ati_remote)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PROBLEM: atiremote input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
2005-06-05 10:21 ` PROBLEM: atiremote " Vincent Vanackere
@ 2005-06-20 15:43 ` Vojtech Pavlik
0 siblings, 0 replies; 4+ messages in thread
From: Vojtech Pavlik @ 2005-06-20 15:43 UTC (permalink / raw)
To: Vincent Vanackere; +Cc: linux-kernel, Greg KH, thoffman, Viktor A. Danilov
On Sun, Jun 05, 2005 at 12:21:43PM +0200, Vincent Vanackere wrote:
> > On Sun, Apr 10, 2005 at 07:21:28PM +0600, Viktor A. Danilov wrote:
> > >
> > > PROBLEM: aiptek input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
> > > REASON: `dev` - field not filled...
> > > SOLUTION: in linux/drivers/usb/input/aiptek.c write
> > > aiptek->inputdev.dev = &intf->dev;
> > > before calling
> > > input_register_device(&aiptek->inputdev);
>
> Hi,
>
> The following (tested) patch fixes the exact same issue with the ATI
> Remote input driver.
Thanks; applied.
--
Vojtech Pavlik
SuSE Labs, SuSE CR
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-20 15:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-10 13:21 PROBLEM: AIPTEK input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#) Viktor A. Danilov
2005-04-12 7:41 ` Greg KH
2005-06-05 10:21 ` PROBLEM: atiremote " Vincent Vanackere
2005-06-20 15:43 ` Vojtech Pavlik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.