]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/arm: zynqmp: Return not supported error for clock get/set rate API
authorMirela Simonovic <mirela.simonovic@aggios.com>
Tue, 23 Oct 2018 14:51:17 +0000 (16:51 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 4 Dec 2019 23:58:10 +0000 (15:58 -0800)
Clock get/set rate EEMI API should be implemented and mapped to clock
divisor, multiplexer, and gate related EEMI APIs by guests.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Reviewed-by: Saeed Nowshadi <saeedn@xilinx.com>
Reviewed-by: Stefano Stabellini <stefanos@xilinx.com>
xen/arch/arm/platforms/xilinx-zynqmp-eemi.c

index f729287c613765b4222a500b1db1688249e215a2..63cf6dc9e5e5f09e9277f5a099cd73dfeeaf03db 100644 (file)
@@ -772,8 +772,6 @@ bool zynqmp_eemi(struct cpu_user_regs *regs)
     case EEMI_FID(PM_CLOCK_GETSTATE):
     case EEMI_FID(PM_CLOCK_GETDIVIDER):
     case EEMI_FID(PM_CLOCK_SETDIVIDER):
-    case EEMI_FID(PM_CLOCK_SETRATE):
-    case EEMI_FID(PM_CLOCK_GETRATE):
     case EEMI_FID(PM_CLOCK_SETPARENT):
     case EEMI_FID(PM_CLOCK_GETPARENT):
         if ( !is_hardware_domain(current->domain) )
@@ -784,6 +782,11 @@ bool zynqmp_eemi(struct cpu_user_regs *regs)
         }
         goto forward_to_fw;
 
+    case EEMI_FID(PM_CLOCK_SETRATE):
+    case EEMI_FID(PM_CLOCK_GETRATE):
+        ret = XST_PM_NOTSUPPORTED;
+        goto done;
+
     /* These calls are never allowed.  */
     case EEMI_FID(PM_SYSTEM_SHUTDOWN):
         ret = XST_PM_NO_ACCESS;