[#3852] joystick module can't be inserted twice
Submitted By: Mingquan Pan
Open Date
2008-01-23 20:06:34 Close Date
2008-02-24 23:31:46
Priority:
Medium Assignee:
Bryan Wu
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
08r1-6
App binary format:
N/A
Summary: joystick module can't be inserted twice
Details:
joystick module can't be inserted twice.
root:/> modprobe ad7142
ad7142_js_attach: at 0x58
input: ad7142 joystick as /class/input/input0
root:/> lsmod
Module Size Used by
ad7142 4256 0
root:/bin> event_test /dev/input/event0
Input driver version is 1.0.0
Input device ID: bus 0x18 vendor 0x1 product 0x1 version 0x100
Input device name: "ad7142 joystick"
Supported events:
Event type 0 (Reset)
Event code 0 (Reset)
Event code 1 (Key)
Event type 1 (Key)
Event code 103 (Up)
Event code 105 (Left)
Event code 106 (Right)
Event code 108 (Down)
Event code 294 (BaseBtn)
Event code 295 (BaseBtn2)
Event code 296 (BaseBtn3)
Event code 297 (BaseBtn4)
Testing ... (interrupt to exit)
Event: time 1177.815778, type 0 (Reset), code 0 (Reset), value 0
Event: time 1179.872213, type 1 (Key), code 296 (BaseBtn3), value 1
...
root:/bin> rmmod ad7142
Trying to free already-free IRQ 55
root:/bin> lsmod
Module Size Used by
root:/bin> modprobe ad7142
AD7142: Can't allocate irq 55
i2c-adapter i2c-0: Client creation failed at 0x2c (-16)
root:/bin> lsmod
Module Size Used by
ad7142 4256 0
root:/bin> event_test /dev/input/event0
evtest: No such device
Follow-ups
--- Bryan Wu 2008-01-28 03:39:16
it should be fixed in branch and trunk:
---
root:/> modprobe ad7142
ad7142_js_attach: at 0x58
input: ad7142 joystick as /class/input/input0
root:/> event_test /dev/input/event0
Input driver version is 1.0.0
Input device ID: bus 0x18 vendor 0x1 product 0x1 version 0x100
Input device name: "ad7142 joystick"
Supported events:
Event type 0 (Reset)
Event code 0 (Reset)
Event code 1 (Key)
Event type 1 (Key)
Event code 103 (Up)
Event code 105 (Left)
Event code 106 (Right)
Event code 108 (Down)
Event code 294 (BaseBtn)
Event code 295 (BaseBtn2)
Event code 296 (BaseBtn3)
Event code 297 (BaseBtn4)
Testing ... (interrupt to exit)
Event: time 30521.930536, type 1 (Key), code 294 (BaseBtn), value 1
Event: time 30521.931736, type 0 (Reset), code 0 (Reset), value 0
Event: time 30523.606577, type 1 (Key), code 105 (Left), value 1
Event: time 30523.606585, type 0 (Reset), code 0 (Reset), value 0
Event: time 30523.722507, type 1 (Key), code 105 (Left), value 0
Event: time 30523.722513, type 0 (Reset), code 0 (Reset), value 0
Event: time 30525.847936, type 1 (Key), code 294 (BaseBtn), value 0
Event: time 30525.849130, type 0 (Reset), code 0 (Reset), value 0
...
root:/>
root:/>
root:/>
root:/> rmmod ad7142
root:/> modprobe ad7142
ad7142_js_attach: at 0x58
input: ad7142 joystick as /class/input/input1
root:/> rmmod ad7142
----
--- Mingquan Pan 2008-02-24 23:31:46
Yes.fixed.Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found