• chao bi's avatar
    serial:ifx6x60:SPI header is decoded incorrectly · 1b2f8a95
    chao bi authored
    This patch is to correct the bit mapping of "MORE" and "CTS" in SPI frame header.
    Per SPI protocol, SPI header is encoded with length of 4 byte, which is defined
    as below:
    bit 0 ~ 11: current data size;
    bit 12: "MORE" bit;
    bit 13: reserve
    bit 14 ~ 15: reserve
    bit 16 ~ 27: next data size
    bit 28: RI
    bit 29: DCD
    bit 30: CTS/RTS
    bit 31: DSR/DTR
    
    According to above SPI header structure, the bit mapping of "MORE" and "CTS" is
    incorrect in function ifx_spi_decode_spi_header();
    
    Cc: Chen Jun <jun.d.chen@intel.com>
    Signed-off-by: default avatarchanning <chao.bi@intel.com>
    Acked-by: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    1b2f8a95
ifx6x60.c 37.9 KB