]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
remoteproc/pruss: set recovery_disabled flag properly
authorSuman Anna <s-anna@ti.com>
Mon, 23 Feb 2015 19:59:05 +0000 (13:59 -0600)
committerSuman Anna <s-anna@ti.com>
Tue, 24 Feb 2015 19:50:14 +0000 (13:50 -0600)
The error recovery feature is not supported for the PRU
remote processors. The flag is a negative flag, so mark
the rproc configuration flag appropriately for PRUs.

The debugfs interface behavior is unchanged, as there
are no true triggers for recovery anyways for the PRU
processors.

Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/pruss_remoteproc.c

index 0228620afc4185be2fbc3c3ccb5817cc99b5627e..b6fdb51895e994fc59736e216f067d121ede1950 100644 (file)
@@ -830,6 +830,9 @@ static int pru_rproc_probe(struct platform_device *pdev)
                dev_err(dev, "rproc_alloc failed\n");
                return -ENOMEM;
        }
+       /* error recovery is not supported for PRUs */
+       rproc->recovery_disabled = true;
+
        pru = rproc->priv;
        pru->id = pdata->id;
        pru->pruss = platform_get_drvdata(ppdev);