]> git.baikalelectronics.ru Git - kernel.git/commit
memory: brcmstb: dpfe: Compute checksum at __send_command() time
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Oct 2019 22:45:12 +0000 (15:45 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Fri, 18 Oct 2019 19:11:50 +0000 (12:11 -0700)
commit1cad37f9e3f0e5d06f16afe021ac29b060634be7
treeb251a705fa3b32882f23c0d723fd601f573dfdca
parentd2d4544e54dff3089fc636810ab059b89967304d
memory: brcmstb: dpfe: Compute checksum at __send_command() time

Instead of pre-computing the checksum, do it at the time we send the
command, this reduces the possibility of introducing errors as well as
limits the amount of code necessary while adding new commands and/or new
API versions. The MSG_CHKSUM enumeration value is no longer necessary
and is removed.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
drivers/memory/brcmstb_dpfe.c