1. 18 12月, 2021 1 次提交
  2. 03 12月, 2021 1 次提交
  3. 26 11月, 2021 1 次提交
  4. 26 8月, 2021 3 次提交
  5. 18 8月, 2021 1 次提交
  6. 29 7月, 2021 1 次提交
  7. 13 5月, 2021 10 次提交
  8. 21 1月, 2021 1 次提交
  9. 28 10月, 2020 1 次提交
    • V
      tty: serial: fsl_lpuart: LS1021A has a FIFO size of 16 words, like LS1028A · c97f2a6f
      Vladimir Oltean 提交于
      Prior to the commit that this one fixes, the FIFO size was derived from
      the read-only register LPUARTx_FIFO[TXFIFOSIZE] using the following
      formula:
      
      TX FIFO size = 2 ^ (LPUARTx_FIFO[TXFIFOSIZE] - 1)
      
      The documentation for LS1021A is a mess. Under chapter 26.1.3 LS1021A
      LPUART module special consideration, it mentions TXFIFO_SZ and RXFIFO_SZ
      being equal to 4, and in the register description for LPUARTx_FIFO, it
      shows the out-of-reset value of TXFIFOSIZE and RXFIFOSIZE fields as "011",
      even though these registers read as "101" in reality.
      
      And when LPUART on LS1021A was working, the "101" value did correspond
      to "16 datawords", by applying the formula above, even though the
      documentation is wrong again (!!!!) and says that "101" means 64 datawords
      (hint: it doesn't).
      
      So the "new" formula created by commit f77ebb24 has all the premises
      of being wrong for LS1021A, because it relied only on false data and no
      actual experimentation.
      
      Interestingly, in commit c2f448cf ("tty: serial: fsl_lpuart: add
      LS1028A support"), Michael Walle applied a workaround to this by manually
      setting the FIFO widths for LS1028A. It looks like the same values are
      used by LS1021A as well, in fact.
      
      When the driver thinks that it has a deeper FIFO than it really has,
      getty (user space) output gets truncated.
      
      Many thanks to Michael for pointing out where to look.
      
      Fixes: f77ebb24 ("tty: serial: fsl_lpuart: correct the FIFO depth size")
      Suggested-by: NMichael Walle <michael@walle.cc>
      Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
      Link: https://lore.kernel.org/r/20201023013429.3551026-1-vladimir.oltean@nxp.com
      Reviewed-by:Fugang Duan <fugang.duan@nxp.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c97f2a6f
  10. 05 10月, 2020 1 次提交
  11. 30 9月, 2020 2 次提交
  12. 28 8月, 2020 1 次提交
  13. 27 6月, 2020 1 次提交
  14. 15 5月, 2020 2 次提交
  15. 23 4月, 2020 1 次提交
  16. 16 4月, 2020 1 次提交
  17. 26 3月, 2020 2 次提交
  18. 12 3月, 2020 4 次提交
  19. 06 3月, 2020 2 次提交
  20. 07 1月, 2020 3 次提交