NFC: st21nfcb: Do not remove header once the payload is sent
authorChristophe Ricard <christophe.ricard@gmail.com>
Sat, 6 Jun 2015 11:16:43 +0000 (13:16 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 4 Jul 2015 03:02:25 +0000 (23:02 -0400)
commit9a7a8972b6e12a0dcea8fba94d8bcc636f6b7a5d
tree7884ee38986dd7e7e6d8101263a0767f5dd8863e
parenta119af5a95c10e72ee9b5b2e3cb7f1ea5094aed2
NFC: st21nfcb: Do not remove header once the payload is sent

[ Upstream commit 09f39a950523b1bb830c30a8670b77e0067da092 ]

Once the data is sent, we need to preserve the full frame for
the ndlc state machine. If the NDLC ACK is not received in time,
the ndlc layer will resend the same frame.
Having the header byte pulled will corrupt the frame.

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/nfc/st21nfcb/i2c.c