1. 04 1月, 2014 1 次提交
    • J
      USB: pl2303: fix data corruption on termios updates · 623c8263
      Johan Hovold 提交于
      Some PL2303 devices are known to lose bytes if you change serial
      settings even to the same values as before. Avoid this by comparing the
      encoded settings with the previsouly used ones before configuring the
      device.
      
      The common case was fixed by commit bf5e5834 ("pl2303: Fix mode
      switching regression"), but this problem was still possible to trigger,
      for instance, by using the TCSETS2-interface to repeatedly request
      115201 baud, which gets mapped to 115200 and thus always triggers a
      settings update.
      
      Cc: Frank Schäfer <fschaefer.oss@googlemail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      623c8263
  2. 20 12月, 2013 1 次提交
  3. 19 12月, 2013 1 次提交
  4. 10 12月, 2013 1 次提交
  5. 03 12月, 2013 6 次提交
  6. 26 11月, 2013 2 次提交
  7. 15 11月, 2013 1 次提交
  8. 02 11月, 2013 13 次提交
  9. 25 10月, 2013 1 次提交
  10. 17 10月, 2013 1 次提交
  11. 12 10月, 2013 7 次提交
  12. 07 10月, 2013 1 次提交
  13. 01 10月, 2013 1 次提交
  14. 27 9月, 2013 2 次提交
  15. 18 9月, 2013 1 次提交
    • F
      USB: pl2303: distinguish between original and cloned HX chips · 7d26a78f
      Frank Schäfer 提交于
      According to Prolific, several (unauthorized) cheap and less functional
      clones of the PL2303HX chip are in circulation. [1]
      I've had the chance to test such a cloned device and it turned out that
      it doesn't support any baud rates above 115200 baud (original: 6 Mbaud)
      It also doesn't support the divisior based baud rate encoding method,
      so no continuous baud rate adjustment is possible.
      Nevertheless, these devices have been working (unintentionally) with
      the driver up to commit 61fa8d69 ("pl2303: also use the divisor based
      baud rate encoding method for baud rates < 115200 with HX chips"), and
      this commit broke support for them.
      Fortunately, it is pretty simple to distinguish between the original
      and the cloned HX chips, so I've added a check and an extra chip type
      to keep the clones working.
      The same check is used by the latest Prolific Windows driver, so it
      should be solid.
      
      [1] http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=225&pcid=41Signed-off-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7d26a78f