linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* new modular hid?
@ 2009-01-12 20:05 Michael Tokarev
  2009-01-12 23:54 ` Jiri Kosina
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Tokarev @ 2009-01-12 20:05 UTC (permalink / raw)
  To: linux-input

Hello.

I tried to run a new (2.6.28) kernel today, to discover that
my keyboard does not work anymore.  After investigation it
turned out the keyboard is now handled by a hid-sub-driver,
hid-bright, and it does not work if this (mostly one-liner)
driver module is not loaded.

udev/m.i.t works fine, it's the initramfs which is broken.
I.e., there's no keyboard during initramfs stage, only when
udev runs and loads everything - as much as i hate it, it
becomes more and more mandatory, but that's another story.

Before 2.6.28, I used to include usbhid into initramfs.
Now, it's not sufficient anymore.

So I've two questions:

1) which drivers to include into ramfs and load for a
 "generic USB keyboard" to work?  Maybe from now on one
 have to use usbkbd instead of usbhid?  I just want to
 be able to do some rescue stuff before actual system
 startup in case a system does not boot for whatever
 reason (root fs is corrupt or wrong raid1 replacement
 disk or whatever).

2) why all those tiny "subdrivers" in the first place?
 I looked into several of them, and they're mostly sort
 of quirks or some additional features or additional key
 (re)mapping.  Why can't it all be done in the main driver
 instead, just like it is done for PCI bus for example?
 The amount of real-work code is tiny, modules are much
 bigger - both the resulting .ko files and all the
 init/exit wrappers in .c files...

Thanks!

/mjt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-14 13:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 20:05 new modular hid? Michael Tokarev
2009-01-12 23:54 ` Jiri Kosina
2009-01-13  5:43   ` Dmitry Torokhov
2009-01-13  8:50     ` Jiri Kosina
2009-01-13  9:00       ` Jiri Kosina
2009-01-13  9:08         ` Dmitry Torokhov
2009-01-14 13:26         ` Michael Tokarev
2009-01-14 13:39           ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).