1. 04 9月, 2019 27 次提交
  2. 04 7月, 2019 1 次提交
  3. 18 6月, 2019 1 次提交
  4. 11 6月, 2019 1 次提交
  5. 30 1月, 2019 1 次提交
  6. 22 1月, 2019 3 次提交
  7. 10 11月, 2018 2 次提交
  8. 10 10月, 2018 1 次提交
  9. 18 9月, 2018 1 次提交
  10. 28 2月, 2018 1 次提交
  11. 28 11月, 2017 1 次提交
    • L
      serial: fsl_lpuart: Support common rs485 binding for RTS polarity · 01d84535
      Lukas Wunner 提交于
      Invoke the ->rs485_config callback on probe to set UARTMODEM_TXRTSPOL
      appropriately based on the UART's device properties.
      
      This implicitly sets UARTMODEM_TXRTSE if rs485 was enabled in the device
      properties, so drop the identical code from lpuart_probe().
      
      It also fixes a bug:  If an unsupported rs485 property was specified
      (rs485-rx-during-tx or rs485-rts-delay), the driver returns -ENOSYS
      without performing any cleanup, in particular without calling
      uart_remove_one_port() or clk_disable_unprepare(), thus leaking the
      uart_port. But with the invocation of ->rs485_config, the unsupported
      properties are now cleared in struct serial_rs485 and thus ignored.
      It therefore seems sufficient to just log an error instead of bailing
      out.
      
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NLukas Wunner <lukas@wunner.de>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      01d84535