patch: change config options for au1x00 usb device
Attached patch fixes CONFIG_AU1000_USB_DEVICE, which had to be defined manually for each au1x00-based board in arch/mips/config.in. The patch defines it automatically if one of the au1x00 usb function drivers have been enabled.
Signature · 4 lines
Steve Longerbeam MontaVista Software, Inc. office:408-328-9008, fax:408-328-3875 http://www.mvista.com
Index: arch/mips/config.in
===================================================================
RCS file: /cvsdev/mvl-kernel/linux/arch/mips/config.in,v retrieving revision 1.20.2.15
mips/config.in +0 -1
@@ -391,7 +391,6 @@ define_bool CONFIG_NONCOHERENT_IO y define_bool CONFIG_PC_KEYB y define_bool CONFIG_SWAP_IO_SPACE y - define_bool CONFIG_AU1000_USB_DEVICE y fi if [ "$CONFIG_MIPS_PB1500" = "y" ]; then define_bool CONFIG_MIPS_AU1000 y
Index: drivers/char/Config.in
===================================================================
RCS file: /cvsdev/mvl-kernel/linux/drivers/char/Config.in,v retrieving revision 1.14.4.11
char/Config.in +6 -2
@@ -71,9 +71,13 @@ if [ "$CONFIG_AU1000_UART" = "y" ]; then bool ' Enable Au1000 serial console' CONFIG_AU1000_SERIAL_CONSOLE fi - dep_tristate ' Au1000 USB TTY Device support' CONFIG_AU1000_USB_TTY $CONFIG_AU1000_USB_DEVICE + dep_tristate ' Au1000 USB TTY Device support' CONFIG_AU1000_USB_TTY $CONFIG_MIPS_AU1000 if [ "$CONFIG_AU1000_USB_TTY" != "y" ]; then - dep_tristate ' Au1000 USB Raw Device support' CONFIG_AU1000_USB_RAW $CONFIG_AU1000_USB_DEVICE + dep_tristate ' Au1000 USB Raw Device support' CONFIG_AU1000_USB_RAW $CONFIG_MIPS_AU1000 + fi + if [ "$CONFIG_AU1000_USB_TTY" != "n" -o \ + "$CONFIG_AU1000_USB_RAW" != "n" ]; then + define_bool CONFIG_AU1000_USB_DEVICE y fi bool 'TXx927 SIO support' CONFIG_TXX927_SERIAL if [ "$CONFIG_TXX927_SERIAL" = "y" ]; then
Quoted 4 lines · Steve Longerbeam
Attached patch fixes
CONFIG_AU1000_USB_DEVICE, which had to be defined manually for each au1x00-based board inarch/mips/config.in. The patch defines it automatically if one of the au1x00 usb function drivers have been enabled.
I finally got to this patch but it doesn't look like the patch was against the linux-mips tree, so I manually patched it.
Pete