1. 16 6月, 2009 3 次提交
    • M
      USB: ftdi_sio: fix hi-speed device packet size calculation · 895f28ba
      Mark Adamson 提交于
      Added a function to set the packet size to be used based on the value from the
      device endpoint descriptor.  The FT2232H and FT4232H hi-speed devices will have
      wMaxPacketSize of 512 bytes when connected to a USB 2.0 hi-speed host, but will
      use alternative descriptors with wMaxPacketSize of 64 bytes if connected to a
      USB 1.1 host or hub.  All other FTDI devices have wMaxPacketSize of 64 bytes,
      except some FT232R and FT245R devices which customers have mistakenly
      programmed to have wMaxPacketSize of 0 - this is an error and will be
      overridden to use wMaxPacketSize of 64 bytes.  The packet size used is
      important as it determines where the driver removes the status bytes from the
      incoming data.  If it is incorrect, it will lead to data corruption.
      Signed-off-by: NMark J. Adamson <mark.adamson@ftdichip.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      895f28ba
    • M
      USB: serial: FTDI: add high speed device support · 094c2e6d
      Mark Adamson 提交于
      Added support for FTDI's USB 2.0 hi-speed devices - FT2232H (2
      interfaces) and FT4232H (4 interfaces), including a new baud rate
      calculation for these devices which can now achieve up to 12Mbaud by
      turning off a divide by 2.5 in the baud rate generator of the chips.  In
      order to achieve baud rates of <1200 baud, the divide by 2.5 must be
      active.  The default product ID of the FT2232H is 0x6010 (same as the
      FT2232C IC).  The default PID of the FT4232H is 0x6011.
      Signed-off-by: NMark J. Adamson <mark.adamson@ftdichip.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      094c2e6d
    • D
      USB: FTDI-SIO new device ids · d46130ab
      Daniel Suchy 提交于
      I would like to have added new device to usbserial/ftdi_sio driver.
      These ids used USB track device (http://www.l-and-b.dk/access_alt.html).
      They use differend device IDs, but it works as standard usb-serial
      conventer.
      
      From: Daniel Suchy <danny@danysek.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      d46130ab
  2. 11 6月, 2009 3 次提交
  3. 18 5月, 2009 1 次提交
    • D
      Fix oops on close of hot-unplugged FTDI serial converter · 80193195
      David Woodhouse 提交于
      Commit c45d6320 ("fix reference counting of ftdi_private") stopped
      ftdi_sio_port_remove() from directly freeing the port-private data, with
      the intention if the port was still open, it would be freed when
      ftdi_close() is eventually called and releases the last refcount on the
      structure.
      
      That's all very well, but ftdi_sio_port_remove() still contains a call
      to usb_set_serial_port_data(port, NULL) -- so by the time we get to
      ftdi_close() for the port which was unplugged, it _still_ oopses on
      dereferencing that NULL pointer, as it did before (and does in 2.6.29).
      
      The fix is just not to clear the private data in ftdi_sio_port_remove().
      Then the refcount is properly reduced to zero when the final kref_put()
      happens in ftdi_close().
      
      Remove a bogus comment too, while we're at it. And stop doing things
      inside "if (priv)" -- it must _always_ be there.
      
      Based loosely on an earlier patch by Daniel Mack, and suggestions by
      Alan Stern.
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      Tested-by: NDaniel Mack <daniel@caiaq.de>
      Cc: stable@kernel.org
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      80193195
  4. 09 5月, 2009 2 次提交
  5. 18 4月, 2009 1 次提交
  6. 25 3月, 2009 3 次提交
  7. 18 3月, 2009 2 次提交
  8. 10 2月, 2009 2 次提交
  9. 28 1月, 2009 2 次提交
  10. 16 1月, 2009 1 次提交
  11. 03 1月, 2009 1 次提交
  12. 18 12月, 2008 2 次提交
  13. 06 12月, 2008 1 次提交
  14. 18 10月, 2008 4 次提交
  15. 14 10月, 2008 2 次提交
  16. 24 9月, 2008 2 次提交
  17. 14 8月, 2008 3 次提交
  18. 23 7月, 2008 2 次提交
  19. 04 7月, 2008 1 次提交
    • J
      USB: New device ID for ftdi_sio driver · 2542335c
      Jon K Hellan 提交于
      Here's a new device ID for the ftdio_sio driver.
      The diff is with linus's tree as of this morning.
      
      The device is the RigExpert Tiny USB Soundcard Transceiver Interface for ham
      radio.
      
      (I didn't actually test this. A fellow ham couldn't get the device to work, and
      I suggested binding the device ID using sysfs - see
      "http://jk.ufisa.uninett.no/usb/". However, he had had moved on to other things
      by then. I guess adding the device ID to the kernel "on spec" won't hurt.
      The relevant part of cat /proc/bus/usb/devices shows:
      
      T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
      P:  Vendor=0403 ProdID=ed22 Rev= 5.00
      S:  Manufacturer=FTDI
      S:  Product=MixW RigExpert Tiny
      S:  SerialNumber=00000000
      C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=100mA
      I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      )
      
      From: Jon K Hellan <hellan@acm.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      2542335c
  20. 30 5月, 2008 1 次提交
  21. 21 5月, 2008 1 次提交