floppy support (was: [HEADS UP] remove ddate(1) command from rawhide)

Matthew Garrett mjg59 at srcf.ucam.org
Tue Aug 30 17:25:27 UTC 2011


On Tue, Aug 30, 2011 at 07:18:40PM +0200, Lennart Poettering wrote:
> On Tue, 30.08.11 18:30, Kevin Kofler (kevin.kofler at chello.at) wrote:
> > An Arch Linux user once pointed out to me that Arch (at the time) probed for 
> > analog joysticks using this udev rule:
> > SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="PNPb02f", 
> > RUN+="/lib/udev/load-modules.sh analog"
> > (They have since dropped that rule in their trunk.) I don't know whether it 
> > makes any sense though. I presume this is just testing for the presence of a 
> > gameport without caring about what is connected, right?
> 
> If the PNP device with the ID "PNPb02f" is an analog joystick port then
> instead of hacking userspace rules like this the analog.ko kernel module
> should just gain a modinfo alias for it like for example parport_pc has
> for its PNP device ids. See "modinfo parport_pc" as an example.

The id is already present in ns558, which is the driver for the typical 
PC game port. However, this is only the driver for the controller, not 
for the joystick itself. In theory we could have the driver probe for a 
connected device and request_module("analog") if it finds something, but 
(a) that'd only work at boot, and (b) it'd be less than ideal if there's 
something other than a standard analog joystick connected.

-- 
Matthew Garrett | mjg59 at srcf.ucam.org


More information about the devel mailing list