]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Jun 2015 22:34:22 +0000 (00:34 +0200)
commitd0ad2c02c2ee6a54307bc278041bd363d10042a9
treebb203eedacbff49a40f5d0fa8ee117229da21c70
parent333441464fede2b37919fe7d20dfbec11d000c2f
NFC: st21nfcb: Do not remove header once the payload is sent

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>
drivers/nfc/st21nfcb/i2c.c