lkml.org 
[lkml]   [2023]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] tty: serial: imx: fix rs485 rx after tx
    From
    Date
    > Since commit 79d0224f6bf2 ("tty: serial: imx: Handle RS485 DE signal
    > active high") RS485 reception no longer works after a transmission.

    I can confirm on a Modbus/RS485 setup.

    > Fix this by moving the existing loopback disable code to a helper
    > function
    > and calling it from imx_uart_start_rx() too.
    >
    > Fixes: 79d0224f6bf2 ("tty: serial: imx: Handle RS485 DE signal active
    > high")

    Unfortunately this doesn't fix the regression on my setup and I had to
    fully revert 79d0224f6bf2. 

    Since there's a Modbus layer on top, it's always TX to remote then RX.

    Note that RS485 communication has never been perfect on my setup. After
    TX the DE line is often held active for too long leading to corrupted
    RX if too close from last TX. This leads to occasional frame loss in
    Modbus but it's not a blocker. Hope to get some time to investigate.

    https://bugzilla.kernel.org/show_bug.cgi?id=207751

    \
     
     \ /
      Last update: 2023-08-07 11:57    [W:2.929 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site