linux-stable/drivers/net/mctp
Jeremy Kerr cccf14c07e mctp: serial: Fix starting value for frame check sequence
[ Upstream commit 2856a62762 ]

RFC1662 defines the start state for the crc16 FCS to be 0xffff, but
we're currently starting at zero.

This change uses the correct start state. We're only early in the
adoption for the serial binding, so there aren't yet any other users to
interface to.

Fixes: a0c2ccd9b5 ("mctp: Add MCTP-over-serial transport binding")
Reported-by: Harsh Tyagi <harshtya@google.com>
Tested-by: Harsh Tyagi <harshtya@google.com>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:39 +01:00
..
Kconfig mctp i2c: MCTP I2C binding driver 2022-02-19 16:18:49 +00:00
Makefile mctp i2c: MCTP I2C binding driver 2022-02-19 16:18:49 +00:00
mctp-i2c.c mctp i2c: don't count unused / invalid keys for flow release 2022-11-26 09:27:34 +01:00
mctp-serial.c mctp: serial: Fix starting value for frame check sequence 2022-12-31 13:26:39 +01:00