diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-05 11:52:29 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2018-01-05 11:52:29 -0500 |
commit | 95f7f383b630d3ec75d4eeeb06a1df46044e1ec2 (patch) | |
tree | 44b031e14adfaac7e6a2af2107473d48aace7a17 | |
parent | 2cb0220609225fcfa5a374d2dc072006a49f3137 (diff) | |
parent | 5b2576ecf19418de699e230587a6d0b928a05e31 (diff) |
Merge tag 'imx-soc-4.16' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/soc
Pull "i.MX SoC updates for 4.16" from Shawn Guo:
- Drop power saving status checking from MMDC driver probe function,
since there is nothing really depending on power saving being
enabled.
- Clean up unused imx3 pm definitions.
* tag 'imx-soc-4.16' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
ARM: imx: remove unused imx3 pm definitions
ARM: imx: don't abort MMDC probe if power saving status doesn't match
-rw-r--r-- | arch/arm/mach-imx/common.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-imx/mmdc.c | 11 |
2 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index b09a2ec19267..c8d68e918b2f 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h | |||
@@ -71,15 +71,6 @@ enum mxc_cpu_pwr_mode { | |||
71 | STOP_POWER_OFF, /* STOP + SRPG */ | 71 | STOP_POWER_OFF, /* STOP + SRPG */ |
72 | }; | 72 | }; |
73 | 73 | ||
74 | enum mx3_cpu_pwr_mode { | ||
75 | MX3_RUN, | ||
76 | MX3_WAIT, | ||
77 | MX3_DOZE, | ||
78 | MX3_SLEEP, | ||
79 | }; | ||
80 | |||
81 | void mx3_cpu_lp_set(enum mx3_cpu_pwr_mode mode); | ||
82 | |||
83 | void imx_enable_cpu(int cpu, bool enable); | 74 | void imx_enable_cpu(int cpu, bool enable); |
84 | void imx_set_cpu_jump(int cpu, void *jump_addr); | 75 | void imx_set_cpu_jump(int cpu, void *jump_addr); |
85 | u32 imx_get_cpu_arg(int cpu); | 76 | u32 imx_get_cpu_arg(int cpu); |
diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c index 78262899a590..5fb1d2254b5e 100644 --- a/arch/arm/mach-imx/mmdc.c +++ b/arch/arm/mach-imx/mmdc.c | |||
@@ -547,7 +547,6 @@ static int imx_mmdc_probe(struct platform_device *pdev) | |||
547 | struct device_node *np = pdev->dev.of_node; | 547 | struct device_node *np = pdev->dev.of_node; |
548 | void __iomem *mmdc_base, *reg; | 548 | void __iomem *mmdc_base, *reg; |
549 | u32 val; | 549 | u32 val; |
550 | int timeout = 0x400; | ||
551 | 550 | ||
552 | mmdc_base = of_iomap(np, 0); | 551 | mmdc_base = of_iomap(np, 0); |
553 | WARN_ON(!mmdc_base); | 552 | WARN_ON(!mmdc_base); |
@@ -565,16 +564,6 @@ static int imx_mmdc_probe(struct platform_device *pdev) | |||
565 | val &= ~(1 << BP_MMDC_MAPSR_PSD); | 564 | val &= ~(1 << BP_MMDC_MAPSR_PSD); |
566 | writel_relaxed(val, reg); | 565 | writel_relaxed(val, reg); |
567 | 566 | ||
568 | /* Ensure it's successfully enabled */ | ||
569 | while (!(readl_relaxed(reg) & 1 << BP_MMDC_MAPSR_PSS) && --timeout) | ||
570 | cpu_relax(); | ||
571 | |||
572 | if (unlikely(!timeout)) { | ||
573 | pr_warn("%s: failed to enable automatic power saving\n", | ||
574 | __func__); | ||
575 | return -EBUSY; | ||
576 | } | ||
577 | |||
578 | return imx_mmdc_perf_init(pdev, mmdc_base); | 567 | return imx_mmdc_perf_init(pdev, mmdc_base); |
579 | } | 568 | } |
580 | 569 | ||