armv7R: k3: Release all the exclusive devices
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 7 Jun 2019 13:54:43 +0000 (19:24 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 27 Jul 2019 01:49:22 +0000 (21:49 -0400)
Release all the exclusive devices held by SPL.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/mach-k3/common.c

index ee84d44de88f5555b094d0ee935dff6441d4177a..4e7fe2076ce4a5437de1c05363c06f855d04f7ad 100644 (file)
@@ -30,8 +30,12 @@ struct ti_sci_handle *get_ti_sci_handle(void)
 #ifdef CONFIG_SYS_K3_SPL_ATF
 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
 {
+       struct ti_sci_handle *ti_sci = get_ti_sci_handle();
        int ret;
 
+       /* Release all the exclusive devices held by SPL before starting ATF */
+       ti_sci->ops.dev_ops.release_exclusive_devices(ti_sci);
+
        /*
         * It is assumed that remoteproc device 1 is the corresponding
         * Cortex-A core which runs ATF. Make sure DT reflects the same.