Skip to content

Commit 04a9f17

Browse files
committed
Merge tag 'soc-fixes-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull SoC fixes from Arnd Bergmann: "The firmware drivers for ARM SCMI, FF-A and the Tee subsystem, as well as the reset controller and cache controller subsystem all see small bugfixes for reference ounting errors, ABI correctness, and NULL pointer dereferences. Similarly, there are multiple reference counting fixes in drivers/soc/ for vendor specific drivers (rockchips, microchip), while the freescale drivers get a fix for a race condition and error handling. The devicetree fixes for Rockchips and NXP got held up, so for the moment there is only Renesas fixing problesm with SD card initialization, a boot hang on one board and incorrect descriptions for interrupts and clock registers on some SoCs. The Microchip polarfire gets a dts fix for a boot time warning. A defconfig fix avoids a warning about a conflicting assignment" * tag 'soc-fixes-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (21 commits) ARM: multi_v7_defconfig: Drop duplicate CONFIG_TI_PRUSS=m firmware: arm_scmi: Spelling s/mulit/multi/, s/currenly/currently/ firmware: arm_scmi: Fix NULL dereference on notify error path firmware: arm_scpi: Fix device_node reference leak in probe path firmware: arm_ffa: Remove vm_id argument in ffa_rxtx_unmap() arm64: dts: renesas: r8a78000: Fix out-of-range SPI interrupt numbers arm64: dts: renesas: rzg3s-smarc-som: Set bypass for Versa3 PLL2 arm64: dts: renesas: r9a09g087: Fix CPG register region sizes arm64: dts: renesas: r9a09g077: Fix CPG register region sizes arm64: dts: renesas: r9a09g057: Remove wdt{0,2,3} nodes arm64: dts: renesas: rzv2-evk-cn15-sd: Add ramp delay for SD0 regulator arm64: dts: renesas: rzt2h-n2h-evk: Add ramp delay for SD0 card regulator tee: shm: Remove refcounting of kernel pages reset: rzg2l-usbphy-ctrl: Check pwrrdy is valid before using it soc: fsl: cpm1: qmc: Fix error check for devm_ioremap_resource() in qmc_qe_init_resources() soc: fsl: qbman: fix race condition in qman_destroy_fq soc: rockchip: grf: Add missing of_node_put() when returning cache: ax45mp: Fix device node reference leak in ax45mp_cache_init() cache: starfive: fix device node leak in starlink_cache_init() riscv: dts: microchip: add can resets to mpfs ...
2 parents c5cb126 + df3ef89 commit 04a9f17

21 files changed

Lines changed: 69 additions & 93 deletions

File tree

arch/arm/configs/multi_v7_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ CONFIG_TI_CPSW_SWITCHDEV=y
279279
CONFIG_TI_CPTS=y
280280
CONFIG_TI_KEYSTONE_NETCP=y
281281
CONFIG_TI_KEYSTONE_NETCP_ETHSS=y
282-
CONFIG_TI_PRUSS=m
283282
CONFIG_TI_PRUETH=m
284283
CONFIG_XILINX_EMACLITE=y
285284
CONFIG_SFP=m

arch/arm64/boot/dts/renesas/r8a78000.dtsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
compatible = "renesas,scif-r8a78000",
699699
"renesas,rcar-gen5-scif", "renesas,scif";
700700
reg = <0 0xc0700000 0 0x40>;
701-
interrupts = <GIC_SPI 4074 IRQ_TYPE_LEVEL_HIGH>;
701+
interrupts = <GIC_ESPI 10 IRQ_TYPE_LEVEL_HIGH>;
702702
clocks = <&dummy_clk_sgasyncd16>, <&dummy_clk_sgasyncd16>, <&scif_clk>;
703703
clock-names = "fck", "brg_int", "scif_clk";
704704
status = "disabled";
@@ -708,7 +708,7 @@
708708
compatible = "renesas,scif-r8a78000",
709709
"renesas,rcar-gen5-scif", "renesas,scif";
710710
reg = <0 0xc0704000 0 0x40>;
711-
interrupts = <GIC_SPI 4075 IRQ_TYPE_LEVEL_HIGH>;
711+
interrupts = <GIC_ESPI 11 IRQ_TYPE_LEVEL_HIGH>;
712712
clocks = <&dummy_clk_sgasyncd16>, <&dummy_clk_sgasyncd16>, <&scif_clk>;
713713
clock-names = "fck", "brg_int", "scif_clk";
714714
status = "disabled";
@@ -718,7 +718,7 @@
718718
compatible = "renesas,scif-r8a78000",
719719
"renesas,rcar-gen5-scif", "renesas,scif";
720720
reg = <0 0xc0708000 0 0x40>;
721-
interrupts = <GIC_SPI 4076 IRQ_TYPE_LEVEL_HIGH>;
721+
interrupts = <GIC_ESPI 12 IRQ_TYPE_LEVEL_HIGH>;
722722
clocks = <&dummy_clk_sgasyncd16>, <&dummy_clk_sgasyncd16>, <&scif_clk>;
723723
clock-names = "fck", "brg_int", "scif_clk";
724724
status = "disabled";
@@ -728,7 +728,7 @@
728728
compatible = "renesas,scif-r8a78000",
729729
"renesas,rcar-gen5-scif", "renesas,scif";
730730
reg = <0 0xc070c000 0 0x40>;
731-
interrupts = <GIC_SPI 4077 IRQ_TYPE_LEVEL_HIGH>;
731+
interrupts = <GIC_ESPI 13 IRQ_TYPE_LEVEL_HIGH>;
732732
clocks = <&dummy_clk_sgasyncd16>, <&dummy_clk_sgasyncd16>, <&scif_clk>;
733733
clock-names = "fck", "brg_int", "scif_clk";
734734
status = "disabled";
@@ -738,7 +738,7 @@
738738
compatible = "renesas,hscif-r8a78000",
739739
"renesas,rcar-gen5-hscif", "renesas,hscif";
740740
reg = <0 0xc0710000 0 0x60>;
741-
interrupts = <GIC_SPI 4078 IRQ_TYPE_LEVEL_HIGH>;
741+
interrupts = <GIC_ESPI 14 IRQ_TYPE_LEVEL_HIGH>;
742742
clocks = <&dummy_clk_sgasyncd4>, <&dummy_clk_sgasyncd4>, <&scif_clk>;
743743
clock-names = "fck", "brg_int", "scif_clk";
744744
status = "disabled";
@@ -748,7 +748,7 @@
748748
compatible = "renesas,hscif-r8a78000",
749749
"renesas,rcar-gen5-hscif", "renesas,hscif";
750750
reg = <0 0xc0714000 0 0x60>;
751-
interrupts = <GIC_SPI 4079 IRQ_TYPE_LEVEL_HIGH>;
751+
interrupts = <GIC_ESPI 15 IRQ_TYPE_LEVEL_HIGH>;
752752
clocks = <&dummy_clk_sgasyncd4>, <&dummy_clk_sgasyncd4>, <&scif_clk>;
753753
clock-names = "fck", "brg_int", "scif_clk";
754754
status = "disabled";
@@ -758,7 +758,7 @@
758758
compatible = "renesas,hscif-r8a78000",
759759
"renesas,rcar-gen5-hscif", "renesas,hscif";
760760
reg = <0 0xc0718000 0 0x60>;
761-
interrupts = <GIC_SPI 4080 IRQ_TYPE_LEVEL_HIGH>;
761+
interrupts = <GIC_ESPI 16 IRQ_TYPE_LEVEL_HIGH>;
762762
clocks = <&dummy_clk_sgasyncd4>, <&dummy_clk_sgasyncd4>, <&scif_clk>;
763763
clock-names = "fck", "brg_int", "scif_clk";
764764
status = "disabled";
@@ -768,7 +768,7 @@
768768
compatible = "renesas,hscif-r8a78000",
769769
"renesas,rcar-gen5-hscif", "renesas,hscif";
770770
reg = <0 0xc071c000 0 0x60>;
771-
interrupts = <GIC_SPI 4081 IRQ_TYPE_LEVEL_HIGH>;
771+
interrupts = <GIC_ESPI 17 IRQ_TYPE_LEVEL_HIGH>;
772772
clocks = <&dummy_clk_sgasyncd4>, <&dummy_clk_sgasyncd4>, <&scif_clk>;
773773
clock-names = "fck", "brg_int", "scif_clk";
774774
status = "disabled";

arch/arm64/boot/dts/renesas/r9a09g057.dtsi

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -581,16 +581,6 @@
581581
status = "disabled";
582582
};
583583

584-
wdt0: watchdog@11c00400 {
585-
compatible = "renesas,r9a09g057-wdt";
586-
reg = <0 0x11c00400 0 0x400>;
587-
clocks = <&cpg CPG_MOD 0x4b>, <&cpg CPG_MOD 0x4c>;
588-
clock-names = "pclk", "oscclk";
589-
resets = <&cpg 0x75>;
590-
power-domains = <&cpg>;
591-
status = "disabled";
592-
};
593-
594584
wdt1: watchdog@14400000 {
595585
compatible = "renesas,r9a09g057-wdt";
596586
reg = <0 0x14400000 0 0x400>;
@@ -601,26 +591,6 @@
601591
status = "disabled";
602592
};
603593

604-
wdt2: watchdog@13000000 {
605-
compatible = "renesas,r9a09g057-wdt";
606-
reg = <0 0x13000000 0 0x400>;
607-
clocks = <&cpg CPG_MOD 0x4f>, <&cpg CPG_MOD 0x50>;
608-
clock-names = "pclk", "oscclk";
609-
resets = <&cpg 0x77>;
610-
power-domains = <&cpg>;
611-
status = "disabled";
612-
};
613-
614-
wdt3: watchdog@13000400 {
615-
compatible = "renesas,r9a09g057-wdt";
616-
reg = <0 0x13000400 0 0x400>;
617-
clocks = <&cpg CPG_MOD 0x51>, <&cpg CPG_MOD 0x52>;
618-
clock-names = "pclk", "oscclk";
619-
resets = <&cpg 0x78>;
620-
power-domains = <&cpg>;
621-
status = "disabled";
622-
};
623-
624594
rtc: rtc@11c00800 {
625595
compatible = "renesas,r9a09g057-rtca3", "renesas,rz-rtca3";
626596
reg = <0 0x11c00800 0 0x400>;

arch/arm64/boot/dts/renesas/r9a09g077.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,8 @@
974974

975975
cpg: clock-controller@80280000 {
976976
compatible = "renesas,r9a09g077-cpg-mssr";
977-
reg = <0 0x80280000 0 0x1000>,
978-
<0 0x81280000 0 0x9000>;
977+
reg = <0 0x80280000 0 0x10000>,
978+
<0 0x81280000 0 0x10000>;
979979
clocks = <&extal_clk>;
980980
clock-names = "extal";
981981
#clock-cells = <2>;

arch/arm64/boot/dts/renesas/r9a09g087.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,8 +977,8 @@
977977

978978
cpg: clock-controller@80280000 {
979979
compatible = "renesas,r9a09g087-cpg-mssr";
980-
reg = <0 0x80280000 0 0x1000>,
981-
<0 0x81280000 0 0x9000>;
980+
reg = <0 0x80280000 0 0x10000>,
981+
<0 0x81280000 0 0x10000>;
982982
clocks = <&extal_clk>;
983983
clock-names = "extal";
984984
#clock-cells = <2>;

arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
<100000000>;
163163
renesas,settings = [
164164
80 00 11 19 4c 42 dc 2f 06 7d 20 1a 5f 1e f2 27
165-
00 40 00 00 00 00 00 00 06 0c 19 02 3f f0 90 86
165+
00 40 00 00 00 00 00 00 06 0c 19 02 3b f0 90 86
166166
a0 80 30 30 9c
167167
];
168168
};

arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
regulator-max-microvolt = <3300000>;
5454
gpios-states = <0>;
5555
states = <3300000 0>, <1800000 1>;
56+
regulator-ramp-delay = <60>;
5657
};
5758
#endif
5859

arch/arm64/boot/dts/renesas/rzv2-evk-cn15-sd.dtso

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
regulator-max-microvolt = <3300000>;
2626
gpios-states = <0>;
2727
states = <3300000 0>, <1800000 1>;
28+
regulator-ramp-delay = <60>;
2829
};
2930
};
3031

arch/riscv/boot/dts/microchip/mpfs.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@
428428
clocks = <&clkcfg CLK_CAN0>, <&clkcfg CLK_MSSPLL3>;
429429
interrupt-parent = <&plic>;
430430
interrupts = <56>;
431+
resets = <&mss_top_sysreg CLK_CAN0>;
431432
status = "disabled";
432433
};
433434

@@ -437,6 +438,7 @@
437438
clocks = <&clkcfg CLK_CAN1>, <&clkcfg CLK_MSSPLL3>;
438439
interrupt-parent = <&plic>;
439440
interrupts = <57>;
441+
resets = <&mss_top_sysreg CLK_CAN1>;
440442
status = "disabled";
441443
};
442444

drivers/cache/ax45mp_cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ static const struct of_device_id ax45mp_cache_ids[] = {
178178

179179
static int __init ax45mp_cache_init(void)
180180
{
181-
struct device_node *np;
182181
struct resource res;
183182
int ret;
184183

185-
np = of_find_matching_node(NULL, ax45mp_cache_ids);
184+
struct device_node *np __free(device_node) =
185+
of_find_matching_node(NULL, ax45mp_cache_ids);
186186
if (!of_device_is_available(np))
187187
return -ENODEV;
188188

0 commit comments

Comments
 (0)