1. 11 9月, 2007 5 次提交
  2. 23 8月, 2007 8 次提交
    • C
      USB: Adding support for HTC Smartphones to ipaq · 04cab132
      Christian Heim 提交于
      This patch enables support for HTC Smartphones. The original patch is at
      https://bugs.gentoo.org/show_bug.cgi?id=187522. Original author is Mike Doty
      <kingtaco@gentoo.org>.
      Signed-off-by: NChristian Heim <phreak@gentoo.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      04cab132
    • T
      usb-serial: fix oti6858.c segfault in termios handling · a66639ab
      Thomas Viehmann 提交于
      The oti6858 usb serial driver should use kernel_termios_to_user_termios/
      user_termios_to_kernel_termios to avoid segfaults because the kernel
      uses a structure differing from that of user space with a different
      size.
      Signed-off-by: NThomas Viehmann <tv@beamnet.de>
      CC: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a66639ab
    • A
      USB: belkin_sa: avoid divide by zero error · e48eb085
      Andy Green 提交于
      The belkin_sa module has a problem coping with a 0 return from
      tty_get_baud_rate() -- the subsequent BELKIN_SA_BAUD macro
      
      drivers/usb/serial/belkin_sa.h:#define BELKIN_SA_BAUD(b) (230400/b)
      
      performs a divide with it leading to the following divide error:
      
      usb 3-1: Belkin / Peracom / GoHubs USB Serial Adapter converter now attached to ttyUSB0
      PM: Adding info for No Bus:usbdev3.3_ep81
      PM: Adding info for No Bus:usbdev3.3_ep01
      PM: Adding info for No Bus:usbdev3.3_ep82
      divide error: 0000 [#1]
      SMP
      Modules linked in: vfat fat iwl3945 mac80211 cfg80211 belkin_sa usbserial usb_storage autofs4 vmnet(P) vmmon(P) aes nf_conntrack_netbios_ns ipt_REJECT nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink xt_tcpudp iptable_filter ip_tables x_tables cpufreq_ondemand acpi_cpufreq video output sbs button dock battery ac arc4 snd_hda_intel ecb blkcipher snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss sr_mod snd_mixer_oss rtc_cmos cdrom iTCO_wdt iTCO_vendor_support snd_pcm rtc_core snd_timer serio_raw b44 ssb rtc_lib parport ata_piix snd soundcore snd_page_alloc mii ata_generic sg ahci libata sd_mod scsi_mod ext3 jbd mbcache ehci_hcd ohci_hcd uhci_hcd
      CPU:    1
      EIP:    0060:[<f8dd1747>]    Tainted: P        VLI
      EFLAGS: 00010246   (2.6.23-rc1 #1)
      EIP is at belkin_sa_set_termios+0x18e/0x5b9 [belkin_sa]
      eax: 00038400   ebx: 00000000   ecx: 00000000   edx: 00000000
      esi: 00038400   edi: 00001cb2   ebp: de49adb0   esp: de49ad6c
      ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
      Process minicom (pid: 7306, ti=de49a000 task=eed6c3b0 task.ti=de49a000)
      Stack: d85c74f0 00000046 00000002 00000001 d85c74f0 d85c74f0 00000246 c887c658
             00000001 00000cb0 00000001 00000084 00000000 d01b58c0 f6ba10e0 de49ade8
             de49ae40 de49add0 f8e2526b d85c74b8 ca6e6dbc de49ae40 d85c746c eded72e8
      Call Trace:
       [<c0405f35>] show_trace_log_lvl+0x1a/0x2f
       [<c0405fe5>] show_stack_log_lvl+0x9b/0xa3
       [<c04061a5>] show_registers+0x1b8/0x289
       [<c0406389>] die+0x113/0x246
       [<c0622f98>] do_trap+0x8a/0xa3
       [<c04068dc>] do_divide_error+0x85/0x8f
       [<c0622d6a>] error_code+0x72/0x78
       [<f8e2526b>] serial_set_termios+0x86/0x8d [usbserial]
       [<c0542d33>] set_termios+0x309/0x34c
       [<c0542ece>] n_tty_ioctl+0x158/0x4ba
       [<c054030b>] tty_ioctl+0xc78/0xcd6
       [<c048aea0>] do_ioctl+0x50/0x67
       [<c048b100>] vfs_ioctl+0x249/0x25c
       [<c048b15c>] sys_ioctl+0x49/0x61
       [<c0404ed2>] sysenter_past_esp+0x5f/0x99
       =======================
      Code: 85 c0 79 14 c7 44 24 04 67 1c dd f8 c7 04 24 d4 1e dd f8 e8 96 99 65 c7 8b 46 04 be 00 84 03 00 e8 47 11 77 c7 31 d2 89 c1 89 f0 <f7> f1 66 85 c0 89 c1 b8 01 00 00 00 0f 44 c8 8b 45 d8 85 db 8b
      EIP: [<f8dd1747>] belkin_sa_set_termios+0x18e/0x5b9 [belkin_sa] SS:ESP 0068:de49ad6c
      
      The small patch below should take care of this situation.  Note that my
      kernel was tainted (vmware) but the problem will occur if
      tty_get_baud_rate() ever returns zero and should be taken care of.
      Signed-off-by: NAndy Green <andy@warmcat.com>
      Cc: William Greathouse <wgreathouse@smva.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e48eb085
    • S
      USB: Support for the Evolution Scorpion robots · c1f8ea7d
      Søren Hauberg 提交于
        The attached (mostly trivial) patches adds support for the Evolution
      Scorpion Robots.
        Evolution Robotics supplies a patch against 2.6.8 with their
      software. My patch is based on their work, so I don't know if I can
      sign it off, or if you need some Evolution people to do this (which
      might be hard).
        The patch adds device ID's for some robots which is trivial.
      
      
      
      From: Søren Hauberg <hauberg@gmail.com>
      Acked-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      Søren
      c1f8ea7d
    • F
      USB: fix support for Dell Wireless Broadband (aka WWAN) · 96443218
      Faidon Liambotis 提交于
      Dell Wireless Broadband ExpressCards are rebrands of Novatel's cards.
      Add all of their known PCI IDs to date along with their mapping to the exact
      Novatel model to the Option driver which already claims to support them.
      Signed-off-by: NFaidon Liambotis <paravoid@debian.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      96443218
    • R
      USB: Typo: "USB_SAFE_PADDED" -> "USB_SERIAL_SAFE_PADDED". · 3aec6e26
      Robert P. J. Day 提交于
      Fix typo in safe_serial.c to match the actual CONFIG variable.
      Signed-off-by: NRobert P. J. Day <rpjday@mindspring.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3aec6e26
    • H
      USB: serial: garmin_gps: fixes package loss if used from gpsbabel · 468d1362
      Hermann Kneissel 提交于
      This patch contains two fixes submitted by Ondrej Palkovsky:
      - the 'ACK' packet is sent after the transfer of the USB packet is
      completed, i.e. in the write_callback function. Because the close
      function sends the 'abort' command, a parameter is added that allows
      the caller of garmin_write_bulk to specify, if the 'ack' should be
      propagated to the serial link or dimissed.
      This fixes the problem with gpsbabel, it has sent several packets that
      were acknowledged before they were sent to the GPS and GpsBabel closed
      the device - thus effectively cancelled all outstanding requests in the
      queue.
      - removed the APP_RESP_SEEN and APP_REQ_SEEN flags and changed
      them into counters. It evades USB reset of the gps on every device close.
      Signed-off-by: NHermann Kneissel <hermann.kneissel@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      468d1362
    • M
      USB: visor add ACER S10 palm device id · c8ba84a0
      Maximilian Attems 提交于
      modprobe visor vendor=0x502 product=0x1
      is said to work, plus there are patch instructions for it.
      fixes http://bugs.debian.org/340547
      see http://www.chinaitpower.com/A/2004-07-28/87909.htmlSigned-off-by: NMaximilian Attems <max@stro.at>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c8ba84a0
  3. 31 7月, 2007 7 次提交
  4. 20 7月, 2007 4 次提交
    • J
      USB: Remove pointless conditional in drivers/usb/serial/io_ti.c::edge_shutdown() · 0d46c007
      Jesper Juhl 提交于
      Coverity scan found (CID: 1708) this in
      drivers/usb/serial/io_ti.c::edge_shutdown() :
      
      ...
      2797 		for (i=0; i < serial->num_ports; ++i) {
      2798 			edge_port = usb_get_serial_port_data(serial->port[i]);
      2799 			edge_remove_sysfs_attrs(edge_port->port);
      2800 			if (edge_port) {
      2801 				edge_buf_free(edge_port->ep_out_buf);
      2802 				kfree(edge_port);
      2803 			}
      2804 			usb_set_serial_port_data(serial->port[i], NULL);
      2805 		}
      ...
      
      It's complaining that we dereference 'edge_port' in line 2799 which
      makes the test of that pointer against NULL in 2800 pointless, since if
      edge_port was actually NULL we'd have crashed already before reaching
      line 2800.
      Reading the edge_open() function it seems to me that the pointer
      returned by usb_get_serial_port_data(serial->port[i]) and stored in
      'edge_port' can never actually be NULL here, so the test is entirely
      superfluous (even if it could be NULL it would be pointless here,
      ignoring the then possible crash in that case, since both
      edge_buf_free() and kfree() can handle being passed NULL pointers.
      
      This patch removes the pointless conditional (and also makes a few
      tiny style corrections now that I was in the area anyway).
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0d46c007
    • F
      USB: mos7720, mos7840: remove redundant urb check · e94fa28f
      Florin Malita 提交于
      Coverity (1709, 1710, 1711, 1712, 1713) actually flagged these as
      REVERSE_INULLs (NULL check performed after dereference). But looking at
      the other drivers I can't see any similar tests and the USB core already
      makes sure urb is non-null - so might as well get rid of the checks.
      Signed-off-by: NFlorin Malita <fmalita@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e94fa28f
    • K
      USB: sierra: Add new devices · 9454c46a
      Kevin Lloyd 提交于
      This patch adds new devices to the Sierra Wireless driver. This is being
      resubmitted because the dependent patch (patch 01/02) needed to be
      resubmitted.
      Signed-off-by: NKevin Lloyd <linux@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9454c46a
    • K
      USB: sierra: Add TRU-Install (c) Support · 112225b1
      Kevin Lloyd 提交于
      This patch adds compatibility with Sierra Wireless' new TRU-Install
      feature. Future devices that use this feature will not work unless this
      patch has been applied.
      Signed-off-by: NKevin Lloyd <linux@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      112225b1
  5. 13 7月, 2007 16 次提交