* [GIT PATCH] HID patches for 2.6.19
@ 2006-12-08 18:54 Greg KH
2006-12-08 19:28 ` Linus Torvalds
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2006-12-08 18:54 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton
Cc: Jiri Kosina, Marcel Holtmann, Dmitry Torokhov, linux-kernel,
linux-usb-devel
Here are some patches that move the HID code to a new directory allowing
it to be used by other kernel subsystems easier.
This patch was approved by Dmitry, Marcel and myself, and Andrew asked
that I get this to you now to make merges with other parts of our
respective queues easier.
Many thanks to Jiri for taking the time and respinning these patches
multiple times as the tree has changed over the past few days.
Please pull from:
master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6.git/
The full set of patches will be sent to the linux-usb-devel mailing
list, if anyone wants to see them.
thanks,
greg k-h
CREDITS | 8 +
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/hid/Kconfig | 18 +
drivers/hid/Makefile | 15 +
drivers/hid/hid-core.c | 1003 +++++++++++++++
drivers/{usb/input => hid}/hid-input.c | 151 +--
drivers/input/Makefile | 1 +
drivers/usb/input/Kconfig | 21 +-
drivers/usb/input/Makefile | 3 -
drivers/usb/input/hid-core.c | 1415 +++++-----------------
drivers/usb/input/hid-ff.c | 8 +-
drivers/usb/input/hid-lgff.c | 7 +-
drivers/usb/input/hid-pidff.c | 58 +-
drivers/usb/input/hid-tmff.c | 5 +-
drivers/usb/input/hid-zpff.c | 7 +-
drivers/usb/input/hiddev.c | 37 +-
drivers/usb/input/usbhid.h | 84 ++
{drivers/usb/input => include/linux}/hid-debug.h | 0
{drivers/usb/input => include/linux}/hid.h | 86 +-
20 files changed, 1584 insertions(+), 1346 deletions(-)
create mode 100644 drivers/hid/Kconfig
create mode 100644 drivers/hid/Makefile
create mode 100644 drivers/hid/hid-core.c
rename drivers/{usb/input/hid-input.c => hid/hid-input.c} (88%)
create mode 100644 drivers/usb/input/usbhid.h
rename drivers/usb/input/hid-debug.h => include/linux/hid-debug.h (100%)
rename drivers/usb/input/hid.h => include/linux/hid.h (86%)
---------------
Jiri Kosina (8):
Generic HID layer - disable USB HID
Generic HID layer - code split
Generic HID layer - API
Generic HID layer - USB API
Generic HID layer - hiddev
Generic HID layer - input and event reporting
Generic HID layer - pb_fnmode
Generic HID layer - build
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [GIT PATCH] HID patches for 2.6.19
2006-12-08 18:54 [GIT PATCH] HID patches for 2.6.19 Greg KH
@ 2006-12-08 19:28 ` Linus Torvalds
2006-12-08 19:38 ` Marcel Holtmann
2006-12-08 21:12 ` Greg KH
0 siblings, 2 replies; 5+ messages in thread
From: Linus Torvalds @ 2006-12-08 19:28 UTC (permalink / raw)
To: Greg KH
Cc: Andrew Morton, Jiri Kosina, Marcel Holtmann, Dmitry Torokhov,
linux-kernel, linux-usb-devel
On Fri, 8 Dec 2006, Greg KH wrote:
>
> Here are some patches that move the HID code to a new directory allowing
> it to be used by other kernel subsystems easier.
I pulled. However, I think the Kconfig changes are HORRIBLE.
I don't understand why people don't use "select" more. Why should Kconfig
ask for "Generic HID support?" That question _never_ makes sense to a
user. And if you answer "n", you'll not get USB_HID.
This is not user-friendly. If you need HID support, just select it. Don't
ask people questions that make no sense. If the generic HID code is needed
for some driver, you just select it. If it's not needed, you don't. It's
that easy.
Linus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PATCH] HID patches for 2.6.19
2006-12-08 19:28 ` Linus Torvalds
@ 2006-12-08 19:38 ` Marcel Holtmann
2006-12-08 21:34 ` Jiri Kosina
2006-12-08 21:12 ` Greg KH
1 sibling, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2006-12-08 19:38 UTC (permalink / raw)
To: Linus Torvalds
Cc: Greg KH, Andrew Morton, Jiri Kosina, Dmitry Torokhov,
linux-kernel, linux-usb-devel
Hi Linus,
> > Here are some patches that move the HID code to a new directory allowing
> > it to be used by other kernel subsystems easier.
>
> I pulled. However, I think the Kconfig changes are HORRIBLE.
>
> I don't understand why people don't use "select" more. Why should Kconfig
> ask for "Generic HID support?" That question _never_ makes sense to a
> user. And if you answer "n", you'll not get USB_HID.
>
> This is not user-friendly. If you need HID support, just select it. Don't
> ask people questions that make no sense. If the generic HID code is needed
> for some driver, you just select it. If it's not needed, you don't. It's
> that easy.
since we don't have any user-space or out of kernel HID transport
drivers at the moment it would make sense to simply select HID if
someone selects USB_HID or the upcoming Bluetooth transport.
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PATCH] HID patches for 2.6.19
2006-12-08 19:38 ` Marcel Holtmann
@ 2006-12-08 21:34 ` Jiri Kosina
0 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2006-12-08 21:34 UTC (permalink / raw)
To: Marcel Holtmann, Linus Torvalds
Cc: Greg KH, Dmitry Torokhov, linux-kernel, linux-usb-devel
On Fri, 8 Dec 2006, Marcel Holtmann wrote:
> since we don't have any user-space or out of kernel HID transport
> drivers at the moment it would make sense to simply select HID if
> someone selects USB_HID or the upcoming Bluetooth transport.
OK, I agree. Something like this? (applies on top of previous patches,
or I could collapse all the Kconfig changes into one patch if desired)
Thanks.
[PATCH] Generic HID layer - build: USB_HID should select HID, not depend on it
Let CONFIG_USB_HID imply CONFIG_HID. Making it only dependent might confuse
users to choose CONFIG_HID, but no particular HID transport drivers.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
commit a94cfd7aa1df1e89b058d6eaf347ce94cd10ba71
tree b11cb076d4528603c8c11220691801231d6236c8
parent 3ecbf35f6a6b45ecbf03002da8dd6fe030196ed3
author Jiri Kosina <jkosina@suse.cz> Fri, 08 Dec 2006 22:29:13 +0100
committer Jiri Kosina <jkosina@suse.cz> Fri, 08 Dec 2006 22:29:13 +0100
drivers/usb/input/Kconfig | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/input/Kconfig b/drivers/usb/input/Kconfig
index 8a62d47..e308f6d 100644
--- a/drivers/usb/input/Kconfig
+++ b/drivers/usb/input/Kconfig
@@ -7,7 +7,8 @@ comment "USB Input Devices"
config USB_HID
tristate "USB Human Interface Device (full HID) support"
default y
- depends on USB && HID
+ depends on USB
+ select HID
---help---
Say Y here if you want full HID support to connect USB keyboards,
mice, joysticks, graphic tablets, or any other HID based devices
--
Jiri Kosina
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [GIT PATCH] HID patches for 2.6.19
2006-12-08 19:28 ` Linus Torvalds
2006-12-08 19:38 ` Marcel Holtmann
@ 2006-12-08 21:12 ` Greg KH
1 sibling, 0 replies; 5+ messages in thread
From: Greg KH @ 2006-12-08 21:12 UTC (permalink / raw)
To: Linus Torvalds
Cc: Andrew Morton, Jiri Kosina, Marcel Holtmann, Dmitry Torokhov,
linux-kernel, linux-usb-devel
On Fri, Dec 08, 2006 at 11:28:57AM -0800, Linus Torvalds wrote:
>
>
> On Fri, 8 Dec 2006, Greg KH wrote:
> >
> > Here are some patches that move the HID code to a new directory allowing
> > it to be used by other kernel subsystems easier.
>
> I pulled. However, I think the Kconfig changes are HORRIBLE.
>
> I don't understand why people don't use "select" more. Why should Kconfig
> ask for "Generic HID support?" That question _never_ makes sense to a
> user. And if you answer "n", you'll not get USB_HID.
>
> This is not user-friendly. If you need HID support, just select it. Don't
> ask people questions that make no sense. If the generic HID code is needed
> for some driver, you just select it. If it's not needed, you don't. It's
> that easy.
I think some people feel we are using "select" too much at times, so
that is why it was done that way.
But in this case, yes, I do think it would make it easier for the user
if it was changed. Jiri, care to make up a new patch that does this?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-12-08 21:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 18:54 [GIT PATCH] HID patches for 2.6.19 Greg KH
2006-12-08 19:28 ` Linus Torvalds
2006-12-08 19:38 ` Marcel Holtmann
2006-12-08 21:34 ` Jiri Kosina
2006-12-08 21:12 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox