Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 14:14:58 -0800
From:      Yuri <yuri@rawbw.com>
To:        freebsd-hackers@freebsd.org
Cc:        "J.R. Oldroyd" <fbsd@opal.com>
Subject:   umass: should the device specific information be moved from C code to the text file?
Message-ID:  <47C73262.1020805@rawbw.com>

next in thread | raw e-mail | index | archive | help
Currently all devices supported by umass driver are listed in
* sys/dev/usb/usbdevs
  - which has vendor table (vendor-id/name)
  - and product table (ref-to-vendor-id/product-id/name)
and
* sys/dev/usb/umass.c
  - which has some per-device flags.

The problem with this way is that some people might want to disable 
umass for particular devices.
For example some people prefer to use gphoto2 with usb-cameras and 
gphoto2 needs the device to be ugen.

I suggest device specific information should be moved from 
sys/dev/usb/usbdevs and sys/dev/usb/umass.c
to some text file (ex. /etc/umass-devices) which would be read by umass 
driver when it's loaded.

This way users will be able to easily remove/add entries without the 
need to recompile the module.

Yuri





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47C73262.1020805>