Skip to content

Commit f1e4920

Browse files
committed
Merge tag 'imx-fixes-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
i.MX fixes for 5.6: - Build v7_cpu_resume() unconditionally to fix system hang in case that suspend is disabled but cpuidle support is enabled. - Drop unexisting Ethernet PHY device from imx8qxp-mek board. - Fix SRAM compatible strings on imx6dl-colibri-eval-v3 board. - Fix imx-scu driver to make sure that all messages words are written sequentially. - A series from Leonard Crestez to fix i.MX SC API users, having all messages aligned on 4 bytes. - Fix eMMC supply for phycore-som board. - Drop bogus frequency setting from imx7-colibri SD/MMC device, so that HS200 mode starts working and delivers better performance. - Fix opp-supported-hw for i.MX7D to get consumer and industrial parts work with correct frequency settings. - Restore MDIO compatible to the correct one for LS1021A SoC. * tag 'imx-fixes-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: soc: imx-scu: Align imx sc msg structs to 4 firmware: imx: Align imx_sc_msg_req_cpu_start to 4 firmware: imx: scu-pd: Align imx sc msg structs to 4 firmware: imx: misc: Align imx sc msg structs to 4 firmware: imx: scu: Ensure sequential TX ARM: dts: imx7-colibri: Fix frequency for sd/mmc arm64: dts: imx8qxp-mek: Remove unexisting Ethernet PHY ARM: dts: imx6dl-colibri-eval-v3: fix sram compatible properties ARM: dts: ls1021a: Restore MDIO compatible to gianfar ARM: dts: imx7d: fix opp-supported-hw ARM: imx: build v7_cpu_resume() unconditionally ARM: dts: imx6: phycore-som: fix emmc supply Link: https://lore.kernel.org/r/20200224120334.GH27688@dragon Signed-off-by: Olof Johansson <[email protected]>
2 parents 515fa3e + f10e58a commit f1e4920

File tree

14 files changed

+68
-36
lines changed

14 files changed

+68
-36
lines changed

arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275

276276
/* SRAM on Colibri nEXT_CS0 */
277277
sram@0,0 {
278-
compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
278+
compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
279279
reg = <0 0 0x00010000>;
280280
#address-cells = <1>;
281281
#size-cells = <1>;
@@ -286,7 +286,7 @@
286286

287287
/* SRAM on Colibri nEXT_CS1 */
288288
sram@1,0 {
289-
compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
289+
compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
290290
reg = <1 0 0x00010000>;
291291
#address-cells = <1>;
292292
#size-cells = <1>;

arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@
192192
pinctrl-0 = <&pinctrl_usdhc4>;
193193
bus-width = <8>;
194194
non-removable;
195-
vmmc-supply = <&vdd_emmc_1p8>;
196195
status = "disabled";
197196
};
198197

arch/arm/boot/dts/imx7-colibri.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@
336336
assigned-clock-rates = <400000000>;
337337
bus-width = <8>;
338338
fsl,tuning-step = <2>;
339-
max-frequency = <100000000>;
340339
vmmc-supply = <&reg_module_3v3>;
341340
vqmmc-supply = <&reg_DCDC3>;
342341
non-removable;

arch/arm/boot/dts/imx7d.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@
4444
opp-hz = /bits/ 64 <792000000>;
4545
opp-microvolt = <1000000>;
4646
clock-latency-ns = <150000>;
47-
opp-supported-hw = <0xd>, <0xf>;
47+
opp-supported-hw = <0xd>, <0x7>;
4848
opp-suspend;
4949
};
5050

5151
opp-996000000 {
5252
opp-hz = /bits/ 64 <996000000>;
5353
opp-microvolt = <1100000>;
5454
clock-latency-ns = <150000>;
55-
opp-supported-hw = <0xc>, <0xf>;
55+
opp-supported-hw = <0xc>, <0x7>;
5656
opp-suspend;
5757
};
5858

5959
opp-1200000000 {
6060
opp-hz = /bits/ 64 <1200000000>;
6161
opp-microvolt = <1225000>;
6262
clock-latency-ns = <150000>;
63-
opp-supported-hw = <0x8>, <0xf>;
63+
opp-supported-hw = <0x8>, <0x3>;
6464
opp-suspend;
6565
};
6666
};

arch/arm/boot/dts/ls1021a.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
};
748748

749749
mdio0: mdio@2d24000 {
750-
compatible = "fsl,etsec2-mdio";
750+
compatible = "gianfar";
751751
device_type = "mdio";
752752
#address-cells = <1>;
753753
#size-cells = <0>;
@@ -756,7 +756,7 @@
756756
};
757757

758758
mdio1: mdio@2d64000 {
759-
compatible = "fsl,etsec2-mdio";
759+
compatible = "gianfar";
760760
device_type = "mdio";
761761
#address-cells = <1>;
762762
#size-cells = <0>;

arch/arm/mach-imx/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a
9191
obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o
9292
obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o
9393
endif
94+
AFLAGS_resume-imx6.o :=-Wa,-march=armv7-a
95+
obj-$(CONFIG_SOC_IMX6) += resume-imx6.o
9496
obj-$(CONFIG_SOC_IMX6) += pm-imx6.o
9597

9698
obj-$(CONFIG_SOC_IMX1) += mach-imx1.o

arch/arm/mach-imx/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ void imx_cpu_die(unsigned int cpu);
109109
int imx_cpu_kill(unsigned int cpu);
110110

111111
#ifdef CONFIG_SUSPEND
112-
void v7_cpu_resume(void);
113112
void imx53_suspend(void __iomem *ocram_vbase);
114113
extern const u32 imx53_suspend_sz;
115114
void imx6_suspend(void __iomem *ocram_vbase);
116115
#else
117-
static inline void v7_cpu_resume(void) {}
118116
static inline void imx53_suspend(void __iomem *ocram_vbase) {}
119117
static const u32 imx53_suspend_sz;
120118
static inline void imx6_suspend(void __iomem *ocram_vbase) {}
121119
#endif
122120

121+
void v7_cpu_resume(void);
122+
123123
void imx6_pm_ccm_init(const char *ccm_compat);
124124
void imx6q_pm_init(void);
125125
void imx6dl_pm_init(void);

arch/arm/mach-imx/resume-imx6.S

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
2+
/*
3+
* Copyright 2014 Freescale Semiconductor, Inc.
4+
*/
5+
6+
#include <linux/linkage.h>
7+
#include <asm/assembler.h>
8+
#include <asm/asm-offsets.h>
9+
#include <asm/hardware/cache-l2x0.h>
10+
#include "hardware.h"
11+
12+
/*
13+
* The following code must assume it is running from physical address
14+
* where absolute virtual addresses to the data section have to be
15+
* turned into relative ones.
16+
*/
17+
18+
ENTRY(v7_cpu_resume)
19+
bl v7_invalidate_l1
20+
#ifdef CONFIG_CACHE_L2X0
21+
bl l2c310_early_resume
22+
#endif
23+
b cpu_resume
24+
ENDPROC(v7_cpu_resume)

arch/arm/mach-imx/suspend-imx6.S

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,3 @@ resume:
327327

328328
ret lr
329329
ENDPROC(imx6_suspend)
330-
331-
/*
332-
* The following code must assume it is running from physical address
333-
* where absolute virtual addresses to the data section have to be
334-
* turned into relative ones.
335-
*/
336-
337-
ENTRY(v7_cpu_resume)
338-
bl v7_invalidate_l1
339-
#ifdef CONFIG_CACHE_L2X0
340-
bl l2c310_early_resume
341-
#endif
342-
b cpu_resume
343-
ENDPROC(v7_cpu_resume)

arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
compatible = "ethernet-phy-ieee802.3-c22";
5353
reg = <0>;
5454
};
55-
56-
ethphy1: ethernet-phy@1 {
57-
compatible = "ethernet-phy-ieee802.3-c22";
58-
reg = <1>;
59-
};
6055
};
6156
};
6257

0 commit comments

Comments
 (0)