memory: brcmstb: dpfe: skip downloading firmware when possible
authorMarkus Mayer <mmayer@broadcom.com>
Mon, 2 Oct 2017 23:13:47 +0000 (16:13 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Fri, 6 Oct 2017 23:19:14 +0000 (16:19 -0700)
commita56d339e8cb8e5627aaf7661018627a86cb3501a
treec3bf7a70dbcbad81e2c93ed14b3984a9f79f9116
parentd56e746f4b5b101b3c12b8e23d20b0c1ded01a5e
memory: brcmstb: dpfe: skip downloading firmware when possible

We want to skip downloading the DPFE firmware from Linux if it was
already downloaded by the boot loader.

The driver now checks if the DCPU is already running and, if so,
whether it can process commands. If the DCPU processes commands
successfully, the driver skips the firmware download step.

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