Skip to content
  • Trent Piepho's avatar
    478a573a
    i.MX: Support serial RS-232 break properly · 478a573a
    Trent Piepho authored
    
    
    Linux does not detect a break from this IMX serial driver as a magic
    sysrq.  Nor does it note a break in the port error counts.
    
    The former is because the Linux driver uses the BRCD bit in the USR2
    register to trigger the RS-232 break handler in the kernel, which is
    where sysrq hooks in.  The emulated UART was not setting this status
    bit.
    
    The latter is because the Linux driver expects, in addition to the BRK
    bit, that the ERR bit is set when a break is read in the FIFO.  A break
    should also count as a frame error, so add that bit too.
    
    Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
    Signed-off-by: default avatarTrent Piepho <tpiepho@impinj.com>
    Message-id: 20180320013657.25038-1-tpiepho@impinj.com
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    478a573a
    i.MX: Support serial RS-232 break properly
    Trent Piepho authored
    
    
    Linux does not detect a break from this IMX serial driver as a magic
    sysrq.  Nor does it note a break in the port error counts.
    
    The former is because the Linux driver uses the BRCD bit in the USR2
    register to trigger the RS-232 break handler in the kernel, which is
    where sysrq hooks in.  The emulated UART was not setting this status
    bit.
    
    The latter is because the Linux driver expects, in addition to the BRK
    bit, that the ERR bit is set when a break is read in the FIFO.  A break
    should also count as a frame error, so add that bit too.
    
    Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
    Signed-off-by: default avatarTrent Piepho <tpiepho@impinj.com>
    Message-id: 20180320013657.25038-1-tpiepho@impinj.com
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Loading