[PATCH] USB gadget: dualspeed {run,compile}-time flags
commit2328fb17c17ec156481290916ee8d9dc4eceab08
authorDavid Brownell <david-b@pacbell.net>
Wed, 10 Mar 2004 05:30:20 +0000 (9 21:30 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 10 Mar 2004 05:30:20 +0000 (9 21:30 -0800)
treecdc1d85ed70e805238408b5f11876320f7ae179a
parente2d38bf31f0a5a0b66a8ec60c557435498de68ba
[PATCH] USB gadget: dualspeed {run,compile}-time flags

This is the first several autoconfig patches; please merge.
This particular one abstracts dual-speed (high and full)
support.

Support some more autoconfiguration for gadget drivers.

    Run-time:
* Add gadget->is_dualspeed flag for controllers to set.
* Tested by "ethernet" gadget, to decide whether certain
  operations are errors or not.
* Turned on by net2280.

    Compile-time
* Generic CONFIG_USB_GADGET_DUALSPEED, not net2280-specific.
* Used by "ethernet" gadget, to decide whether to
  include extra code and data for dual-speed support.
* Turned on by net2280.

The basic idea behind this, and other autoconfig patches yet to come,
is minimizing the controller-specific compile-time configuration
needed by gadget drivers.
drivers/usb/gadget/Kconfig
drivers/usb/gadget/ether.c
drivers/usb/gadget/net2280.c
include/linux/usb_gadget.h