aspeed/smc: Calculate checksum on normal DMA
commitae275f71338ad4e567c7f2683bf28e66847eabe4
authorChristian Svensson <bluecmd@google.com>
Wed, 4 Sep 2019 07:05:04 +0000 (4 09:05 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Sep 2019 15:05:01 +0000 (13 16:05 +0100)
treecc93c8a95984aa0de034ffca5ee5e4d0d2add924
parent5258c2a69ce6cea0b9ab90f1c83223c0daa8d72c
aspeed/smc: Calculate checksum on normal DMA

This patch adds the missing checksum calculation on normal DMA transfer.
According to the datasheet this is how the SMC should behave.

Verified on AST1250 that the hardware matches the behaviour.

Signed-off-by: Christian Svensson <bluecmd@google.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20190904070506.1052-9-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/aspeed_smc.c