Skip to content

Commit 850f7a5

Browse files
committed
Merge tag 'soc-fixes-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull ARM SoC fixes from Arnd Bergmann: "These are a couple of build fixes from randconfig testing, plus a set of Mediatek SoC specific fixes, all trivial" * tag 'soc-fixes-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: soc: tegra: fix CPU_BIG_ENDIAN dependencies ARM: disallow pre-ARMv5 builds with ld.lld ARM: pxa: fix building with clang MAINTAINERS: add related dts to IXP4xx ARM: dts: spear: drop 0x from unit address arm64: dts: mt8183: Fix Mali GPU clock arm64: dts: mediatek: mt8195-demo: fix the memory size of node secmon soc: mediatek: pm-domains: Fix the power glitch issue
2 parents 6feb57c + 6f85602 commit 850f7a5

File tree

11 files changed

+29
-7
lines changed

11 files changed

+29
-7
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,7 @@ F: Documentation/devicetree/bindings/bus/intel,ixp4xx-expansion-bus-controller.y
23302330
F: Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt
23312331
F: Documentation/devicetree/bindings/interrupt-controller/intel,ixp4xx-interrupt.yaml
23322332
F: Documentation/devicetree/bindings/timer/intel,ixp4xx-timer.yaml
2333+
F: arch/arm/boot/dts/intel-ixp*
23332334
F: arch/arm/mach-ixp4xx/
23342335
F: drivers/bus/intel-ixp4xx-eb.c
23352336
F: drivers/clocksource/timer-ixp4xx.c

arch/arm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,14 @@ comment "CPU Core family selection"
345345
config ARCH_MULTI_V4
346346
bool "ARMv4 based platforms (FA526, StrongARM)"
347347
depends on !ARCH_MULTI_V6_V7
348+
depends on !LD_IS_LLD
348349
select ARCH_MULTI_V4_V5
349350
select CPU_FA526 if !(CPU_SA110 || CPU_SA1100)
350351

351352
config ARCH_MULTI_V4T
352353
bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
353354
depends on !ARCH_MULTI_V6_V7
355+
depends on !LD_IS_LLD
354356
select ARCH_MULTI_V4_V5
355357
select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \
356358
CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \

arch/arm/boot/dts/spear300.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
status = "disabled";
4747
};
4848

49-
shirq: interrupt-controller@0x50000000 {
49+
shirq: interrupt-controller@50000000 {
5050
compatible = "st,spear300-shirq";
5151
reg = <0x50000000 0x1000>;
5252
interrupts = <28>;

arch/arm/boot/dts/spear310.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
status = "disabled";
3535
};
3636

37-
shirq: interrupt-controller@0xb4000000 {
37+
shirq: interrupt-controller@b4000000 {
3838
compatible = "st,spear310-shirq";
3939
reg = <0xb4000000 0x1000>;
4040
interrupts = <28 29 30 1>;

arch/arm/boot/dts/spear320.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
status = "disabled";
5050
};
5151

52-
shirq: interrupt-controller@0xb3000000 {
52+
shirq: interrupt-controller@b3000000 {
5353
compatible = "st,spear320-shirq";
5454
reg = <0xb3000000 0x1000>;
5555
interrupts = <30 28 29 1>;

arch/arm/mach-pxa/pxa27x.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ void pxa27x_cpu_pm_enter(suspend_state_t state)
133133
#ifndef CONFIG_IWMMXT
134134
u64 acc0;
135135

136+
#ifndef CONFIG_AS_IS_LLVM
136137
asm volatile(".arch_extension xscale\n\t"
137138
"mra %Q0, %R0, acc0" : "=r" (acc0));
139+
#else
140+
asm volatile("mrrc p0, 0, %Q0, %R0, c0" : "=r" (acc0));
141+
#endif
138142
#endif
139143

140144
/* ensure voltage-change sequencer not initiated, which hangs */
@@ -153,8 +157,12 @@ void pxa27x_cpu_pm_enter(suspend_state_t state)
153157
case PM_SUSPEND_MEM:
154158
cpu_suspend(pwrmode, pxa27x_finish_suspend);
155159
#ifndef CONFIG_IWMMXT
160+
#ifndef CONFIG_AS_IS_LLVM
156161
asm volatile(".arch_extension xscale\n\t"
157162
"mar acc0, %Q0, %R0" : "=r" (acc0));
163+
#else
164+
asm volatile("mcrr p0, 0, %Q0, %R0, c0" :: "r" (acc0));
165+
#endif
158166
#endif
159167
break;
160168
}

arch/arm/mach-pxa/pxa3xx.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@ static void pxa3xx_cpu_pm_suspend(void)
108108
#ifndef CONFIG_IWMMXT
109109
u64 acc0;
110110

111+
#ifdef CONFIG_CC_IS_GCC
111112
asm volatile(".arch_extension xscale\n\t"
112113
"mra %Q0, %R0, acc0" : "=r" (acc0));
114+
#else
115+
asm volatile("mrrc p0, 0, %Q0, %R0, c0" : "=r" (acc0));
116+
#endif
113117
#endif
114118

115119
/* resuming from D2 requires the HSIO2/BOOT/TPM clocks enabled */
@@ -137,8 +141,12 @@ static void pxa3xx_cpu_pm_suspend(void)
137141
AD3ER = 0;
138142

139143
#ifndef CONFIG_IWMMXT
144+
#ifndef CONFIG_AS_IS_LLVM
140145
asm volatile(".arch_extension xscale\n\t"
141146
"mar acc0, %Q0, %R0" : "=r" (acc0));
147+
#else
148+
asm volatile("mcrr p0, 0, %Q0, %R0, c0" :: "r" (acc0));
149+
#endif
142150
#endif
143151
}
144152

arch/arm64/boot/dts/mediatek/mt8183.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@
16781678
<GIC_SPI 278 IRQ_TYPE_LEVEL_LOW>;
16791679
interrupt-names = "job", "mmu", "gpu";
16801680

1681-
clocks = <&topckgen CLK_TOP_MFGPLL_CK>;
1681+
clocks = <&mfgcfg CLK_MFG_BG3D>;
16821682

16831683
power-domains =
16841684
<&spm MT8183_POWER_DOMAIN_MFG_CORE0>,

arch/arm64/boot/dts/mediatek/mt8195-demo.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@
5656
#size-cells = <2>;
5757
ranges;
5858

59-
/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
59+
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */
6060
bl31_secmon_reserved: secmon@54600000 {
6161
no-map;
62-
reg = <0 0x54600000 0x0 0x30000>;
62+
reg = <0 0x54600000 0x0 0x200000>;
6363
};
6464

6565
/* 12 MiB reserved for OP-TEE (BL32)

drivers/soc/mediatek/mtk-pm-domains.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ static int scpsys_power_off(struct generic_pm_domain *genpd)
275275
clk_bulk_disable_unprepare(pd->num_subsys_clks, pd->subsys_clks);
276276

277277
/* subsys power off */
278-
regmap_clear_bits(scpsys->base, pd->data->ctl_offs, PWR_RST_B_BIT);
279278
regmap_set_bits(scpsys->base, pd->data->ctl_offs, PWR_ISO_BIT);
280279
regmap_set_bits(scpsys->base, pd->data->ctl_offs, PWR_CLK_DIS_BIT);
280+
regmap_clear_bits(scpsys->base, pd->data->ctl_offs, PWR_RST_B_BIT);
281281
regmap_clear_bits(scpsys->base, pd->data->ctl_offs, PWR_ON_2ND_BIT);
282282
regmap_clear_bits(scpsys->base, pd->data->ctl_offs, PWR_ON_BIT);
283283

0 commit comments

Comments
 (0)