]> git.baikalelectronics.ru Git - kernel.git/commit
ucc/hdlc: fix two little issue
authorZhao Qiang <qiang.zhao@nxp.com>
Tue, 14 Mar 2017 01:38:33 +0000 (09:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 04:53:48 +0000 (21:53 -0700)
commit293ec80801802dc84eff70eaf00012a089e7f128
treeb9e2193d2a25c9c74fa6628c02836cd5f446eeee
parent0990335373126aeb0fa63f44d25d1c82ffe358ba
ucc/hdlc: fix two little issue

1. modify bd_status from u32 to u16 in function hdlc_rx_done,
because bd_status register is 16bits
2. write bd_length register before writing bd_status register

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c