Changeset 12510
- Timestamp:
- 07/15/09 17:49:36 (4 years ago)
- Location:
- src/linux/pb42/linux-2.6.22
- Files:
-
- 1 added
- 8 edited
-
.config_lsx (modified) (2 diffs)
-
.config_rs (modified) (8 diffs)
-
arch/mips/mm/dma-default.c (modified) (2 diffs)
-
crypto/api.c (modified) (2 diffs)
-
drivers/mtd/devices/ar7100_flash.c (modified) (2 diffs)
-
drivers/net/usb/Kconfig (modified) (1 diff)
-
drivers/net/usb/Makefile (modified) (1 diff)
-
drivers/net/usb/hso.c (added)
-
drivers/usb/serial/sierra.c (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/pb42/linux-2.6.22/.config_lsx
r11592 r12510 690 690 CONFIG_NETDEVICES=y 691 691 # CONFIG_DUMMY is not set 692 # CONFIG_BONDING is not set 692 CONFIG_BONDING=m 693 693 # CONFIG_EQUALIZER is not set 694 694 CONFIG_IMQ=y … … 1008 1008 # CONFIG_BFS_FS is not set 1009 1009 # CONFIG_EFS_FS is not set 1010 # CONFIG_JFFS2_FS is not set 1010 CONFIG_JFFS2_FS=m 1011 CONFIG_JFFS2_FS_DEBUG=0 1012 CONFIG_JFFS2_FS_WRITEBUFFER=y 1013 # CONFIG_JFFS2_SUMMARY is not set 1014 # CONFIG_JFFS2_FS_XATTR is not set 1015 CONFIG_JFFS2_COMPRESSION_OPTIONS=y 1016 CONFIG_JFFS2_ZLIB=y 1017 CONFIG_JFFS2_RTIME=y 1018 # CONFIG_JFFS2_RUBIN is not set 1019 # CONFIG_JFFS2_CMODE_NONE is not set 1020 # CONFIG_JFFS2_CMODE_PRIORITY is not set 1021 CONFIG_JFFS2_CMODE_SIZE=y 1011 1022 # CONFIG_CRAMFS is not set 1012 1023 # CONFIG_VXFS_FS is not set -
src/linux/pb42/linux-2.6.22/.config_rs
r11896 r12510 2 2 # Automatically generated make config: don't edit 3 3 # Linux kernel version: 2.6.22.19 4 # Wed Apr 8 14:09:1320094 # Wed Jul 15 16:38:45 2009 5 5 # 6 6 CONFIG_MIPS=y … … 536 536 # CONFIG_MAC80211 is not set 537 537 # CONFIG_IEEE80211 is not set 538 # CONFIG_RFKILL is not set 538 CONFIG_RFKILL=y 539 539 540 540 # … … 763 763 CONFIG_NETDEVICES=y 764 764 # CONFIG_DUMMY is not set 765 # CONFIG_BONDING is not set 765 CONFIG_BONDING=m 766 766 # CONFIG_EQUALIZER is not set 767 767 CONFIG_IMQ=y … … 831 831 # CONFIG_USB_USBNET_MII is not set 832 832 # CONFIG_USB_USBNET is not set 833 CONFIG_USB_HSO=m 833 834 # CONFIG_WAN is not set 834 835 # CONFIG_FDDI is not set … … 1051 1052 # USB Serial Converter support 1052 1053 # 1053 CONFIG_USB_SERIAL=m 1054 # CONFIG_USB_SERIAL_GENERIC is not set 1054 CONFIG_USB_SERIAL=y 1055 # CONFIG_USB_SERIAL_CONSOLE is not set 1056 CONFIG_USB_SERIAL_GENERIC=y 1055 1057 # CONFIG_USB_SERIAL_AIRCABLE is not set 1056 CONFIG_USB_SERIAL_AIRPRIME= m1058 CONFIG_USB_SERIAL_AIRPRIME=y 1057 1059 # CONFIG_USB_SERIAL_ARK3116 is not set 1058 1060 # CONFIG_USB_SERIAL_BELKIN is not set … … 1079 1081 # CONFIG_USB_SERIAL_MOS7840 is not set 1080 1082 # CONFIG_USB_SERIAL_NAVMAN is not set 1081 CONFIG_USB_SERIAL_PL2303= m1083 CONFIG_USB_SERIAL_PL2303=y 1082 1084 # CONFIG_USB_SERIAL_HP4X is not set 1083 1085 # CONFIG_USB_SERIAL_SAFE is not set … … 1166 1168 # File systems 1167 1169 # 1168 # CONFIG_EXT2_FS is not set 1170 CONFIG_EXT2_FS=m 1171 CONFIG_EXT2_FS_XATTR=y 1172 # CONFIG_EXT2_FS_POSIX_ACL is not set 1173 # CONFIG_EXT2_FS_SECURITY is not set 1174 CONFIG_EXT2_FS_XIP=y 1175 CONFIG_FS_XIP=y 1169 1176 CONFIG_EXT3_FS=m 1170 1177 CONFIG_EXT3_FS_XATTR=y … … 1215 1222 # DOS/FAT/NT Filesystems 1216 1223 # 1217 CONFIG_FAT_FS= y1218 CONFIG_MSDOS_FS= y1219 CONFIG_VFAT_FS= y1224 CONFIG_FAT_FS=m 1225 CONFIG_MSDOS_FS=m 1226 CONFIG_VFAT_FS=m 1220 1227 CONFIG_FAT_DEFAULT_CODEPAGE=437 1221 1228 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" -
src/linux/pb42/linux-2.6.22/arch/mips/mm/dma-default.c
r9438 r12510 19 19 20 20 #include <dma-coherence.h> 21 #include <ar7100.h> 21 22 22 23 static inline unsigned long dma_addr_to_virt(dma_addr_t dma_addr) … … 119 120 120 121 case DMA_FROM_DEVICE: 122 #ifdef CONFIG_MACH_AR7100 123 124 /* 125 * Hydra needs DDR FIFO flush before any desc/dma data can be read. 126 */ 127 ar7100_flush_pci(); 128 #endif 121 129 dma_cache_inv(addr, size); 122 130 break; -
src/linux/pb42/linux-2.6.22/crypto/api.c
r9438 r12510 394 394 return ERR_PTR(err); 395 395 } 396 EXPORT_SYMBOL _GPL(crypto_alloc_base);396 EXPORT_SYMBOL(crypto_alloc_base); 397 397 398 398 /* … … 422 422 } 423 423 424 EXPORT_SYMBOL _GPL(crypto_free_tfm);424 EXPORT_SYMBOL(crypto_free_tfm); 425 425 426 426 int crypto_alg_available(const char *name, u32 flags) -
src/linux/pb42/linux-2.6.22/drivers/mtd/devices/ar7100_flash.c
r11591 r12510 73 73 .size = AR7100_FLASH_SIZE_16MB, 74 74 #elif CONFIG_MTD_FLASH_8MB 75 .size = AR7100_FLASH_SIZE_ 16MB,75 .size = AR7100_FLASH_SIZE_8MB, 76 76 #else 77 77 .size = AR7100_FLASH_SIZE_4MB, … … 385 385 ar7100_spi_send_addr(addr); 386 386 ar7100_spi_go(); 387 display(0x7d);387 // display(0x7d); 388 388 ar7100_spi_poll(); 389 389 } -
src/linux/pb42/linux-2.6.22/drivers/net/usb/Kconfig
r9438 r12510 160 160 what other networking devices you have in use. 161 161 162 config USB_HSO 163 tristate "Option USB High Speed Mobile Devices" 164 depends on USB && RFKILL 165 default n 166 help 167 Choose this option if you have an Option HSDPA/HSUPA card. 168 These cards support downlink speeds of 7.2Mbps or greater. 169 170 To compile this driver as a module, choose M here: the 171 module will be called hso. 172 162 173 163 174 config USB_NET_CDCETHER -
src/linux/pb42/linux-2.6.22/drivers/net/usb/Makefile
r9438 r12510 7 7 obj-$(CONFIG_USB_PEGASUS) += pegasus.o 8 8 obj-$(CONFIG_USB_RTL8150) += rtl8150.o 9 obj-$(CONFIG_USB_HSO) += hso.o 9 10 obj-$(CONFIG_USB_NET_AX8817X) += asix.o 10 11 obj-$(CONFIG_USB_NET_CDCETHER) += cdc_ether.o -
src/linux/pb42/linux-2.6.22/drivers/usb/serial/sierra.c
r12067 r12510 17 17 Whom based his on the Keyspan driver by Hugh Blemings <hugh@blemings.org> 18 18 19 Back ported to kernel 2.6.2 319 Back ported to kernel 2.6.22 20 20 */ 21 21 /* Uncomment to log function calls */ 22 /* #define DEBUG*/23 #define DRIVER_VERSION "v.1. 7.0"22 /* #define DEBUG */ 23 #define DRIVER_VERSION "v.1.6.2" 24 24 #define DRIVER_AUTHOR "Kevin Lloyd, Elina Pasheva, Matthew Safar, Rory Filer" 25 25 #define DRIVER_DESC "USB Driver for Sierra Wireless USB modems" … … 39 39 #define SWIMS_SET_MODE_Modem 0x0001 40 40 41 /* per port private data */ 41 42 #define N_IN_URB 8 42 43 #define N_OUT_URB 64 … … 51 52 static int nmea; 52 53 static int truinstall = 1; 53 static int suspend_support;54 54 55 55 enum devicetype { … … 135 135 } 136 136 137 static int is_blacklisted( const u8 ifnum, const struct list *blacklist)137 static int is_blacklisted( const u8 ifnum, const struct list *blacklist ) 138 138 { 139 139 const u8 *list; … … 245 245 { USB_DEVICE(0x1199, 0x0120) }, /* Sierra Wireless USB Dongle 595U */ 246 246 /* Sierra Wireless C597 */ 247 { USB_DEVICE _AND_INTERFACE_INFO(0x1199, 0x0023, 0xFF, 0xFF, 0xFF) },247 { USB_DEVICE(0x1199, 0x0023) }, 248 248 /* Sierra Wireless Device */ 249 { USB_DEVICE _AND_INTERFACE_INFO(0x1199, 0x0025, 0xFF, 0xFF, 0xFF) },249 { USB_DEVICE(0x1199, 0x0025) }, 250 250 { USB_DEVICE(0x1199, 0x0026) }, /* Sierra Wireless Device */ 251 251 { USB_DEVICE(0x1199, 0x0027) }, /* Sierra Wireless Device */ … … 279 279 { USB_DEVICE(0x1199, 0x685A) }, /* Sierra Wireless AirCard 885 E */ 280 280 /* Sierra Wireless C885 */ 281 { USB_DEVICE _AND_INTERFACE_INFO(0x1199, 0x6880, 0xFF, 0xFF, 0xFF)},281 { USB_DEVICE(0x1199, 0x6880)}, 282 282 /* Sierra Wireless Device */ 283 { USB_DEVICE _AND_INTERFACE_INFO(0x1199, 0x6890, 0xFF, 0xFF, 0xFF)},283 { USB_DEVICE(0x1199, 0x6890)}, 284 284 /* Sierra Wireless Device */ 285 { USB_DEVICE _AND_INTERFACE_INFO(0x1199, 0x6891, 0xFF, 0xFF, 0xFF)},285 { USB_DEVICE(0x1199, 0x6891)}, 286 286 /* Sierra Wireless Device */ 287 { USB_DEVICE _AND_INTERFACE_INFO(0x1199, 0x6892, 0xFF, 0xFF, 0xFF)},287 { USB_DEVICE(0x1199, 0x6892)}, 288 288 289 289 { USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */ … … 302 302 MODULE_DEVICE_TABLE(usb, id_table); 303 303 304 /* per port private data */ 304 static struct usb_driver sierra_driver = { 305 .name = "sierra", 306 .probe = usb_serial_probe, 307 .disconnect = usb_serial_disconnect, 308 .id_table = id_table, 309 }; 310 305 311 struct sierra_port_private { 306 312 spinlock_t lock; /* lock the structure */ … … 347 353 return usb_control_msg(serial->dev, 348 354 usb_rcvctrlpipe(serial->dev, 0), 349 0x22, 0x21, val, interface,350 NULL, 0,USB_CTRL_SET_TIMEOUT);355 0x22,0x21,val,interface,NULL,0, 356 USB_CTRL_SET_TIMEOUT); 351 357 } 352 358 } … … 363 369 return usb_control_msg(serial->dev, 364 370 usb_rcvctrlpipe(serial->dev, 0), 365 0x22, 0x21, val, interface, 366 NULL, 0, USB_CTRL_SET_TIMEOUT); 367 371 0x22,0x21,val,interface,NULL,0, 372 USB_CTRL_SET_TIMEOUT); 368 373 } 369 374 } … … 384 389 struct sierra_port_private *portdata; 385 390 386 dev_dbg(&port->dev, "%s\n", __func__);387 391 portdata = usb_get_serial_port_data(port); 388 392 … … 561 565 562 566 /* Resubmit urb so we continue receiving */ 563 if (port->open_count && status != -ESHUTDOWN && status != -ENOENT) {567 if (port->open_count && status != -ESHUTDOWN) { 564 568 err = usb_submit_urb(urb, GFP_ATOMIC); 565 569 if (err) … … 619 623 620 624 /* Resubmit urb so we continue receiving IRQ data */ 621 if (port->open_count && status != -ESHUTDOWN && status != -ENOENT) {625 if (port->open_count && status != -ESHUTDOWN) { 622 626 urb->dev = serial->dev; 623 627 err = usb_submit_urb(urb, GFP_ATOMIC); … … 648 652 } 649 653 650 static void sierra_stop_rx_urbs(struct usb_serial_port *port)651 {652 int i;653 struct sierra_port_private *portdata = usb_get_serial_port_data(port);654 655 for (i = 0; i < ARRAY_SIZE(portdata->in_urbs); i++) {656 usb_kill_urb(portdata->in_urbs[i]);657 }658 usb_kill_urb(port->interrupt_in_urb);659 }660 661 static int sierra_submit_rx_urbs(struct usb_serial_port *port)662 {663 int ok_cnt;664 int err = -EINVAL;665 int i;666 struct urb * urb;667 struct sierra_port_private *portdata = usb_get_serial_port_data(port);668 669 ok_cnt = 0;670 for (i = 0; i < ARRAY_SIZE(portdata->in_urbs); i++) {671 urb = portdata->in_urbs[i];672 if (!urb)673 continue;674 err = usb_submit_urb(urb, GFP_KERNEL);675 if (err) {676 dev_err(&port->dev, "%s: submit urb failed: %d\n",677 __func__, err );678 } else {679 ok_cnt ++;680 }681 }682 683 if (ok_cnt && port->interrupt_in_urb) {684 err = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);685 if (err) {686 dev_err(&port->dev, "%s: submit intr urb failed: %d\n",687 __func__, err );688 }689 }690 691 if (ok_cnt > 0) /* at least one rx urb submitted */692 return 0;693 else694 return err;695 }696 654 697 655 static struct urb *sierra_setup_urb(struct usb_serial *serial, int endpoint, … … 733 691 return urb; 734 692 } 693 static int sierra_open(struct usb_serial_port *port, struct file *filp) 694 { 695 struct sierra_port_private *portdata; 696 struct usb_serial *serial = port->serial; 697 int i, err; 698 struct urb *urb; 699 700 portdata = usb_get_serial_port_data(port); 701 702 dev_dbg(&port->dev, "%s\n", __func__); 703 704 /* Set some sane defaults */ 705 portdata->rts_state = 1; 706 portdata->dtr_state = 1; 707 708 if (port->tty) { 709 port->tty->low_latency = 1; 710 } 711 712 spin_lock_init(&portdata->lock); 713 714 /* Reset low level data toggle and start reading from endpoints */ 715 for (i = 0; i < N_IN_URB; i++) { 716 urb = sierra_setup_urb(serial, 717 port->bulk_in_endpointAddress, 718 USB_DIR_IN, 719 port, 720 IN_BUFLEN, 721 sierra_indat_callback); 722 portdata->in_urbs[i] = urb; 723 if (!urb) 724 continue; 725 726 /* 727 * make sure endpoint data toggle is synchronized with the 728 * device 729 */ 730 usb_clear_halt(urb->dev, urb->pipe); 731 732 err = usb_submit_urb(urb, GFP_ATOMIC); 733 if (err) { 734 dev_err(&port->dev, "%s: submit urb %d failed (%d) %d\n", 735 __func__, i, err, 736 urb->transfer_buffer_length); 737 portdata->in_urbs[i] = NULL; 738 sierra_release_urb(urb); 739 } 740 } 741 742 /* Start up the interrupt endpoint if we have one */ 743 if(port->interrupt_in_urb) { 744 port->interrupt_in_urb->dev = port->serial->dev; 745 err = usb_submit_urb(port->interrupt_in_urb, GFP_ATOMIC); 746 if (err) 747 dev_err(&port->dev, "%s: submit irq_in urb failed %d\n", 748 __func__, err); 749 } 750 751 sierra_send_setup(port); 752 753 return 0; 754 } 735 755 736 756 static void sierra_close(struct usb_serial_port *port, struct file *filp) … … 749 769 sierra_send_setup(port); 750 770 751 /* Stop reading urbs */ 752 sierra_stop_rx_urbs(port); 753 /* .. and release them */ 771 /* Stop reading/writing urbs */ 754 772 for (i = 0; i < N_IN_URB; i++) { 773 usb_kill_urb(portdata->in_urbs[i]); 755 774 sierra_release_urb(portdata->in_urbs[i]); 756 775 portdata->in_urbs[i] = NULL; 757 776 } 758 777 } 759 778 usb_kill_urb(port->interrupt_in_urb); 760 779 port->tty = NULL; 761 }762 763 static int sierra_open(struct usb_serial_port *port, struct file *filp)764 {765 struct sierra_port_private *portdata;766 struct usb_serial *serial = port->serial;767 int i;768 int err;769 int endpoint;770 struct urb *urb;771 772 portdata = usb_get_serial_port_data(port);773 774 dev_dbg(&port->dev, "%s\n", __func__);775 776 /* Set some sane defaults */777 portdata->rts_state = 1;778 portdata->dtr_state = 1;779 780 if (port->tty) {781 port->tty->low_latency = 1;782 }783 784 spin_lock_init(&portdata->lock);785 786 endpoint = port->bulk_in_endpointAddress;787 788 for (i = 0; i < ARRAY_SIZE(portdata->in_urbs); i++) {789 urb = sierra_setup_urb(serial, endpoint, USB_DIR_IN, port,790 IN_BUFLEN, sierra_indat_callback);791 portdata->in_urbs[i] = urb;792 }793 /* clear halt condition */794 usb_clear_halt(serial->dev,795 usb_sndbulkpipe(serial->dev, endpoint) | USB_DIR_IN);796 797 err = sierra_submit_rx_urbs(port);798 if (err) {799 /* get rid of everything as in close */800 sierra_close(port, filp);801 return err;802 }803 sierra_send_setup(port);804 805 return 0;806 780 } 807 781 … … 857 831 } 858 832 } 859 860 int sierra_suspend(struct usb_serial *serial, pm_message_t message)861 {862 int i;863 864 dev_dbg(&serial->dev->dev, "%s\n", __func__);865 866 /* The dummy interface doesn't prevent suspended state */867 if (serial->num_ports == 0)868 return 0;869 870 if (!suspend_support)871 return -EOPNOTSUPP;872 873 for (i=0; i < serial->num_ports ; i++) {874 sierra_stop_rx_urbs(serial->port[i]);875 }876 return 0;877 }878 879 int sierra_resume(struct usb_serial *serial)880 {881 int i;882 883 dev_dbg(&serial->dev->dev, "%s\n", __func__);884 885 for (i=0; i < serial->num_ports ; i++) {886 sierra_submit_rx_urbs(serial->port[i]);887 }888 889 return 0;890 }891 892 static struct usb_driver sierra_driver = {893 .name = "sierra",894 .probe = usb_serial_probe,895 .disconnect = usb_serial_disconnect,896 .suspend = usb_serial_suspend,897 .resume = usb_serial_resume,898 .id_table = id_table,899 900 .no_dynamic_id = 1,901 .supports_autosuspend = 1,902 };903 833 904 834 static struct usb_serial_driver sierra_device = { … … 925 855 .shutdown = sierra_shutdown, 926 856 .read_int_callback = sierra_instat_callback, 927 .suspend = sierra_suspend,928 .resume = sierra_resume,929 857 }; 930 858 … … 974 902 module_param(debug, bool, S_IRUGO | S_IWUSR); 975 903 MODULE_PARM_DESC(debug, "Debug messages"); 976 977 module_param(suspend_support, bool, S_IRUGO | S_IWUSR);978 MODULE_PARM_DESC(suspend_support, "Selective Suspend support");
Note: See TracChangeset
for help on using the changeset viewer.
