* hid-generic regression on existing distros
@ 2012-06-19 13:26 Jan Beulich
2012-06-19 18:31 ` Henrik Rydberg
0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2012-06-19 13:26 UTC (permalink / raw)
To: rydberg, Jiri Kosina; +Cc: linux-kernel
Henrik, Jiri,
commit 8215d557e5f3a70e50e07c857d35c250fee62a73 results
in no keyboard or mouse during early boot on systems where
those are USB-based and HID=m, since nothing there can
possibly be aware that this new driver needs to be manually
loaded for e.g. interactive startup mode to be useful, as it would
have to make it into initrd, yet the mkinitrd machinery can't
reasonably know of it.
Imo, with the functionality having been previously provided
by usbhid.ko, that module should cause hid-generic to be
pulled in automatically.
(Also, just as a side note, a Kconfig default of 'y' is pointless
for a tristate option that depends on another tristate one,
when that one was already set to 'm' - the default really
should be the value of the depended upon symbol.)
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: hid-generic regression on existing distros
2012-06-19 13:26 hid-generic regression on existing distros Jan Beulich
@ 2012-06-19 18:31 ` Henrik Rydberg
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Rydberg @ 2012-06-19 18:31 UTC (permalink / raw)
To: Jan Beulich; +Cc: Jiri Kosina, linux-kernel
Hi Jan,
> commit 8215d557e5f3a70e50e07c857d35c250fee62a73 results
> in no keyboard or mouse during early boot on systems where
> those are USB-based and HID=m, since nothing there can
> possibly be aware that this new driver needs to be manually
> loaded for e.g. interactive startup mode to be useful, as it would
> have to make it into initrd, yet the mkinitrd machinery can't
> reasonably know of it.
This is obviously distro-specific, since there are ramdisk programs
which make use of udev (mkinitcpio, for one). The mkinitrd machinery
cannot reasonably know about HID either, and some distributions use
HID=y, which creates its own set of problems. Either way, your
question really boils down to whether module name changes and the
like, which affect manual initrd setups, are considered user-space
breakage or not. I will leave that question to Jiri.
> Imo, with the functionality having been previously provided
> by usbhid.ko, that module should cause hid-generic to be
> pulled in automatically.
The split was made especially to avoid this. The "hid" module used to
contain both the bus driver and the generic hid driver. It is now only
a bus driver, and the rest of the hid drivers optionally (and
automatically, using udev) hook on to that bus. Saying that all hid
devices carried over usb must load a certain driver is the same as
saying that all pci-based devices must be handled be the same
driver. Convenient, perhaps, but not very practical.
> (Also, just as a side note, a Kconfig default of 'y' is pointless
> for a tristate option that depends on another tristate one,
> when that one was already set to 'm' - the default really
> should be the value of the depended upon symbol.)
Thanks, overall the Kconfig seems to need updating. I will look into it.
Henrik
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-19 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19 13:26 hid-generic regression on existing distros Jan Beulich
2012-06-19 18:31 ` Henrik Rydberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®