Messages in this thread Patch in this message | | | From | Andrey Smirnov <> | Subject | [PATCH 2/6] mfd: rave-sp: Fix incorrectly specified checksum type | Date | Fri, 6 Jul 2018 19:41:04 -0700 |
| |
RAVE SP firmware covered by "legacy" variant uses 16-bit CCITT checksum algorithm. Change the code to correctly reflect that.
Cc: linux-kernel@vger.kernel.org Cc: cphealy@gmail.com Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> --- drivers/mfd/rave-sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/rave-sp.c b/drivers/mfd/rave-sp.c index dfa4f5f1c376..a90ec4986b22 100644 --- a/drivers/mfd/rave-sp.c +++ b/drivers/mfd/rave-sp.c @@ -697,7 +697,7 @@ static const struct rave_sp_checksum rave_sp_checksum_ccitt = { }; static const struct rave_sp_variant rave_sp_legacy = { - .checksum = &rave_sp_checksum_8b2c, + .checksum = &rave_sp_checksum_ccitt, .cmd = { .translate = rave_sp_default_cmd_translate, }, -- 2.17.1
| |