1. 14 Aug, 2013 33 commits
  2. 13 Aug, 2013 4 commits
  3. 12 Aug, 2013 3 commits
    • Frank Schäfer's avatar
      usb: pl2303: add two comments concerning the supported baud rates with HX chips · c23bda36
      Frank Schäfer authored
      I've found some new datasheets which describe some additionally
      supported standard baud rates and I've verified them with my HX
      (rev. 3A) device. But adding support for individual (chip type
      specific) baud rates would add a good amount of extra code (especially
      when support for further chips will be added to the driver one day),
      which makes no sense as long as we are not using the direct baud rate
      encoding method for newer chips.
      So for now, just drop a comment about these additionally supported baud
      rates.
      
      The second comment is about the baud rate differences between the two
      encoding methods. In theory, we could optimize the code a bit by
      comparing the resulting baud rates of both methods and selecting the
      one which is closer to the requested baud rate. But that seems to be a
      bit overkill, because the differences are very small and the device
      likely uses the same baud rate generator for both methods so that the
      resulting baud rate would be the same.
      Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c23bda36
    • Frank Schäfer's avatar
      usb: pl2303: also use the divisor based baud rate encoding method for baud... · 61fa8d69
      Frank Schäfer authored
      usb: pl2303: also use the divisor based baud rate encoding method for baud rates < 115200 with HX chips
      
      Now that the divisor based baud rate encoding method has been fixed and
      extended, it can also be used for baud rates < 115200 baud with HX
      chips.
      This makes it possible to adjust the baud rate almost continuously
      instead of just beeing able to select between 16 fixed standard values.
      
      Tested with a PL2303HX 04463A (week 46, 2004, rev 3A).
      Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      61fa8d69
    • Frank Schäfer's avatar
      usb: pl2303: increase the allowed baud rate range for the divisor based encoding method · b5c16c6a
      Frank Schäfer authored
      Reinhard Max has done some tests with a PL2303HX (rev A) and a logic
      analyzer and it seems, that although the PL2303HX is specified for baud
      rates from 75 to 6M baud, the full divisor range can be used with the
      divisor based baud rate encoding method. This corresponds to baud rates
      from 46 to 24M baud.
      Baud rates down to 46 baud (max. divisor) have been confirmed to work
      even under heavy/permanent load, so remove the lower limit.
      Baud rates up to 24M baud should really be tested carefully in "real
      life" scenarios before removing the upper limit completely.
      Anyway, the Windows driver allows maximum baud rates of 110% of the
      specified limit, so for now, increase the upper limit to this value.
      Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: default avatarReinhard Max <max@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b5c16c6a