serial:ifx6x60:SPI header is decoded incorrectly
authorchao bi <chao.bi@intel.com>
Tue, 6 Nov 2012 03:13:59 +0000 (11:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 00:47:35 +0000 (16:47 -0800)
commit1b2f8a9550f92686fb76f9dd4d0ec7c0c3f1b027
tree42c03439a644e310f0bb18507df4963afae8c83e
parent54d5f88f25c38e5500a17b16240cb3775af00876
serial:ifx6x60:SPI header is decoded incorrectly

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: channing <chao.bi@intel.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ifx6x60.c
This page took 0.037195 seconds and 5 git commands to generate.