OSDN Git Service

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)
commit5d06f53d950928ecc02dd1a05e58f719eb28589b
treeb251a705fa3b32882f23c0d723fd601f573dfdca
parent242fb2f1d995184f996466167d41a2d49353229b
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