OSDN Git Service

net: qualcomm: prepare frame decoding for UART driver
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 29 May 2017 11:57:19 +0000 (13:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 17:57:30 +0000 (13:57 -0400)
commit60d6702464b9d667312035eb3bd9d390af9626dd
tree83741bcd9a1371592442a2bb5ee3afe0079425a7
parentf1789286e0200f6a40fc20b05ee0e5e62d044a9e
net: qualcomm: prepare frame decoding for UART driver

Unfortunately the frame format is not exactly identical between SPI
and UART. In case of SPI there is an additional HW length at the
beginning. So store the initial state to make the decoding state machine
more flexible and easy to extend for UART support.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_7k_common.c
drivers/net/ethernet/qualcomm/qca_7k_common.h
drivers/net/ethernet/qualcomm/qca_spi.c