login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
24
Re: [PATCH] Input: add flags bitfield
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Dmitry Torokhov <dtor@...>
To: Henrique de Moraes Holschuh <hmh@...>
Cc: <linux-kernel@...>, Richard Purdie <rpurdie@...>
Subject:
Re: [PATCH] Input: add flags bitfield
Date: Sunday, March 23, 2008 - 9:02 pm
On Saturday 22 March 2008, Henrique de Moraes Holschuh wrote:
quoted text
> On Fri, 21 Mar 2008, Henrique de Moraes Holschuh wrote: > > On Fri, 21 Mar 2008 16:07:01 -0400, "Dmitry Torokhov" > > <dmitry.torokhov@gmail.com> said: > > > On Sun, Mar 16, 2008 at 05:14:11PM -0300, Henrique de Moraes Holschuh wrote: > > > > Add a flags bitfield to the input_dev structure, which can be used for > > > > internal coordination among kernel input devices and input handlers without > > > > the need to use ever-expanding blacklists on the input handlers. > > > > > > > > Add initial flag bits which allows an input driver to request that joystick > > > > emulation (joydev) or mouse emulation (mousedev) not be attached to an > > > > input device. > > > > > > > > This will be used by accelerometer drivers exporting a raw interface which > > > > is not to be used as a joystick device (not to confuse this with the usual > > > > fuzzed joystick interface these drivers export for enhanced Neverball > > > > productivity), for example. > > > > > > I'd rather not apply this patch because it pushes kowledge of existing > > > input interfaces into device drivers. What we could do instead is add > > > a 'type' field to the input device structure and then input interfaces > > > (evdev/mousedev, etc) could have an option of matching either by device > > > type or by device capabilities or both. Your raw devices could have type > > > of accelerometer and joydev would bind to devices with type "joystick" > > > or "unknown" + certain capabilities. Will this work? > > > > It would solve my problem, yes. > > > > But I'd prefer if joydev and mousedev did not bind to > > unknown+capabilities, just in case. Looks like bad form to me, and > > might bite us back later on. We can properly fix all drivers in-tree > > to have suitable types for joydev and/or mousedev binds, rfkill binds, > > and so on after all.
Ohne word - HID.
quoted text
> > Drat, removing unknown+capabilities means I'd have to hunt down every > frigging input device in the tree to annotate its type... otherwise, it > would cause regressions re. the handlers. It is a work that needs to be > done anyway, only adding type metadata to new devices and leaving the > rest to report "unknown" is just icky. > > Come to think of it, what about uinput? It would need to be able to set > the device type as well, otherwise mousedev and joydev, for example, > would not attach to uinput-created input devices. >
That's why I thinkg unmarked should really be default and only few selected devices should set their type. -- Dmitry --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Input: add flags bitfield
, Henrique de Moraes Holschuh...
, (Sun Mar 16, 4:14 pm)
Re: [PATCH] Input: add flags bitfield
, Dmitry Torokhov
, (Fri Mar 21, 4:07 pm)
Re: [PATCH] Input: add flags bitfield
, Henrique de Moraes Holschuh...
, (Fri Mar 21, 5:56 pm)
Re: [PATCH] Input: add flags bitfield
, Henrique de Moraes Holschuh...
, (Sat Mar 22, 3:09 am)
Re: [PATCH] Input: add flags bitfield
, Dmitry Torokhov
, (Sun Mar 23, 9:02 pm)
Re: [PATCH] Input: add flags bitfield
, Henrique de Moraes Holschuh...
, (Sun Mar 23, 11:25 pm)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Junio C Hamano
[ANNOUNCE] GIT 1.6.0
Linus Torvalds
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Paul Menage
Re: [RFC][PATCH 6/7] Account for the number of tasks within container
git
:
Nicolas Pitre
Re: pack operation is thrashing my server
Scott Chacon
Git Community Book
Greg KH
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Lars Hjemli
[PATCH] git-merge: add option --no-ff
openbsd-misc
:
GVG GVG
ssh_exchange_identification: Connection closed by remote host
Nick Guenther
Re: Real men don't attack straw men
Travers Buda
Re: Important OpenBSD errata
Gregory Edigarov
How to re-build openssl with SHA1 support?
linux-fsdevel
:
Al Boldi
[RFC] VM: I have a dream...
Dave Kleikamp
Re: [RFC] Heads up on sys_fallocate()
Jörn
Review status (Re: [PATCH] LogFS take three)
Chris Mason
[ANNOUNCE] Btrfs v0.12 released
Latest forum posts
How to make initramfs smaller
2 hours ago
Linux kernel
How to exec user process in kernel mode.
4 hours ago
Linux kernel
how to check if a given block device is in use?
5 hours ago
Linux kernel
[IPSEC]IPSEC_MANUAL_REQID_MAX
3 days ago
Linux kernel
help in UDP catching module..
4 days ago
Linux kernel
Is there anything like Real-time drivers?
5 days ago
Linux general
ns16550 serail console in Linux 2.6.19
5 days ago
Linux general
what class should i use to register my devices
6 days ago
Linux kernel
reset bios pasword toshiba
6 days ago
Hardware
Analysis of Process Scheduling
1 week ago
Linux kernel
Show all forums...
Recent Tags
-rc4
Andrew Morton
quote
H. Peter Anvin
Linux
Tux3
2.6.27
Daniel Phillips
-rc5
2.6.27-rc5
-rc
filesystem
Linus Torvalds
more tags
Colocation donated by:
Who's online
There are currently
8 users
and
1421 guests
online.
Online users
Jeremy
Mr_Z
kingneutron
Timothy Brownawell
strcmp
madscientist
Liberator
zeekec
Syndicate
speck-geostationary