• Stephen Boyd's avatar
    tty: serial: msm: Support sysrq on uartDM devices · 0896d4d4
    Stephen Boyd authored
    To properly support sysrq on uartDM hardware we need to properly
    handle break characters. With the DM hardware the fifo can pack 4
    characters at a time, where a break is indicated by an all zero
    byte. Unfortunately, we can't differentiate between an all zero
    byte for a break and an all zero byte of data, so try and do as
    best we can. First unmask the RX break start interrupt and record
    the interrupt when it arrives. Then while processing the fifo,
    detect the break by searching for an all zero character as long
    as we recently received an RX break start interrupt. This should
    make sysrq work fairly well.
    
    Cc: Frank Rowand <frank.rowand@sonymobile.com>
    Cc: Daniel Thompson <daniel.thompson@linaro.org>
    Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    0896d4d4
msm_serial.h 5.37 KB