1
0
Fork 0

LF-202-3 clk: imx: scu: ignore clks not owned

Not register clks that not owned to current partition.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Peng Fan 2019-11-27 17:26:52 +08:00
parent 361d678bcb
commit 192cbc5d86
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include <linux/bsearch.h>
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/firmware/imx/svc/rm.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
@ -673,6 +674,9 @@ struct clk_hw *imx_clk_scu_alloc_dev(const char *name,
if (!imx_scu_clk_is_valid(rsrc_id))
return NULL;
if (!imx_sc_rm_is_resource_owned(ccm_ipc_handle, rsrc_id))
return NULL;
pdev = platform_device_alloc(name, PLATFORM_DEVID_NONE);
if (!pdev) {
pr_err("%s: failed to allocate scu clk dev rsrc %d type %d\n",