Skip to content

Commit 8685217

Browse files
committed
Merge tag 'armsoc-fixes-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull ARM SoC fixes from Arnd Bergmann: "This time there is one fix for the error path in the mediatek cmdq driver (used by their video driver) and a couple of devicetree fixes, mostly for 32-bit ARM, and fairly harmless: - On OMAP2 there were a few regressions in the ethernet drivers, one of them leading to an external abort trap - One Raspberry Pi version had a misconfigured LED - Interrupts on Broadcom NSP were slightly misconfigured - One i.MX6q board had issues with graphics mode setting - On mmp3 there are some minor fixes that were submitted for v5.8 with a cc:stable tag, so I ended up picking them up here as well - The Mediatek Video Codec needs to run at a higher frequency than configured originally" * tag 'armsoc-fixes-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: ARM: dts: mmp3: Drop usb-nop-xceiv from HSIC phy ARM: dts: mmp3-dell-ariel: Fix the SPI devices ARM: dts: mmp3: Use the MMP3 compatible string for /clocks ARM: dts: bcm: HR2: Fix PPI interrupt types ARM: dts: bcm2835-rpi-zero-w: Fix led polarity ARM: dts/imx6q-bx50v3: Set display interface clock parents soc: mediatek: cmdq: return send msg error code arm64: dts: mt8173: fix vcodec-enc clock ARM: dts: Fix wrong mdio clock for dm814x ARM: dts: am437x: fix networking on boards with ksz9031 phy ARM: dts: am57xx: fix networking on boards with ksz9031 phy
2 parents e2fce15 + 99706d6 commit 8685217

17 files changed

+44
-54
lines changed

arch/arm/boot/dts/am437x-gp-evm.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@
943943

944944
&cpsw_emac0 {
945945
phy-handle = <&ethphy0>;
946-
phy-mode = "rgmii";
946+
phy-mode = "rgmii-rxid";
947947
};
948948

949949
&elm {

arch/arm/boot/dts/am437x-idk-evm.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@
504504

505505
&cpsw_emac0 {
506506
phy-handle = <&ethphy0>;
507-
phy-mode = "rgmii";
507+
phy-mode = "rgmii-rxid";
508508
};
509509

510510
&rtc {

arch/arm/boot/dts/am437x-sk-evm.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,13 +833,13 @@
833833

834834
&cpsw_emac0 {
835835
phy-handle = <&ethphy0>;
836-
phy-mode = "rgmii";
836+
phy-mode = "rgmii-rxid";
837837
dual_emac_res_vlan = <1>;
838838
};
839839

840840
&cpsw_emac1 {
841841
phy-handle = <&ethphy1>;
842-
phy-mode = "rgmii";
842+
phy-mode = "rgmii-rxid";
843843
dual_emac_res_vlan = <2>;
844844
};
845845

arch/arm/boot/dts/am571x-idk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@
190190

191191
&cpsw_port1 {
192192
phy-handle = <&ethphy0_sw>;
193-
phy-mode = "rgmii";
193+
phy-mode = "rgmii-rxid";
194194
ti,dual-emac-pvid = <1>;
195195
};
196196

197197
&cpsw_port2 {
198198
phy-handle = <&ethphy1_sw>;
199-
phy-mode = "rgmii";
199+
phy-mode = "rgmii-rxid";
200200
ti,dual-emac-pvid = <2>;
201201
};
202202

arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,13 @@
433433

434434
&cpsw_emac0 {
435435
phy-handle = <&phy0>;
436-
phy-mode = "rgmii";
436+
phy-mode = "rgmii-rxid";
437437
dual_emac_res_vlan = <1>;
438438
};
439439

440440
&cpsw_emac1 {
441441
phy-handle = <&phy1>;
442-
phy-mode = "rgmii";
442+
phy-mode = "rgmii-rxid";
443443
dual_emac_res_vlan = <2>;
444444
};
445445

arch/arm/boot/dts/am57xx-idk-common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,13 @@
408408

409409
&cpsw_emac0 {
410410
phy-handle = <&ethphy0>;
411-
phy-mode = "rgmii";
411+
phy-mode = "rgmii-rxid";
412412
dual_emac_res_vlan = <1>;
413413
};
414414

415415
&cpsw_emac1 {
416416
phy-handle = <&ethphy1>;
417-
phy-mode = "rgmii";
417+
phy-mode = "rgmii-rxid";
418418
dual_emac_res_vlan = <2>;
419419
};
420420

arch/arm/boot/dts/bcm-hr2.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,23 @@
7575
timer@20200 {
7676
compatible = "arm,cortex-a9-global-timer";
7777
reg = <0x20200 0x100>;
78-
interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
78+
interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
7979
clocks = <&periph_clk>;
8080
};
8181

8282
twd-timer@20600 {
8383
compatible = "arm,cortex-a9-twd-timer";
8484
reg = <0x20600 0x20>;
8585
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) |
86-
IRQ_TYPE_LEVEL_HIGH)>;
86+
IRQ_TYPE_EDGE_RISING)>;
8787
clocks = <&periph_clk>;
8888
};
8989

9090
twd-watchdog@20620 {
9191
compatible = "arm,cortex-a9-twd-wdt";
9292
reg = <0x20620 0x20>;
9393
interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) |
94-
IRQ_TYPE_LEVEL_HIGH)>;
94+
IRQ_TYPE_EDGE_RISING)>;
9595
clocks = <&periph_clk>;
9696
};
9797

arch/arm/boot/dts/bcm2835-rpi-zero-w.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
leds {
2626
act {
27-
gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
27+
gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
2828
};
2929
};
3030

arch/arm/boot/dts/dm814x.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@
693693

694694
davinci_mdio: mdio@800 {
695695
compatible = "ti,cpsw-mdio", "ti,davinci_mdio";
696-
clocks = <&alwon_ethernet_clkctrl DM814_ETHERNET_CPGMAC0_CLKCTRL 0>;
696+
clocks = <&cpsw_125mhz_gclk>;
697697
clock-names = "fck";
698698
#address-cells = <1>;
699699
#size-cells = <0>;

arch/arm/boot/dts/imx6q-b450v3.dts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@
6565
};
6666
};
6767

68-
&clks {
69-
assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
70-
<&clks IMX6QDL_CLK_LDB_DI1_SEL>;
71-
assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
72-
<&clks IMX6QDL_CLK_PLL3_USB_OTG>;
73-
};
74-
7568
&ldb {
7669
status = "okay";
7770

arch/arm/boot/dts/imx6q-b650v3.dts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@
6565
};
6666
};
6767

68-
&clks {
69-
assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
70-
<&clks IMX6QDL_CLK_LDB_DI1_SEL>;
71-
assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
72-
<&clks IMX6QDL_CLK_PLL3_USB_OTG>;
73-
};
74-
7568
&ldb {
7669
status = "okay";
7770

arch/arm/boot/dts/imx6q-b850v3.dts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@
5353
};
5454
};
5555

56-
&clks {
57-
assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
58-
<&clks IMX6QDL_CLK_LDB_DI1_SEL>,
59-
<&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
60-
<&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>;
61-
assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
62-
<&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
63-
<&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
64-
<&clks IMX6QDL_CLK_PLL2_PFD2_396M>;
65-
};
66-
6756
&ldb {
6857
fsl,dual-channel;
6958
status = "okay";

arch/arm/boot/dts/imx6q-bx50v3.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,3 +377,18 @@
377377
#interrupt-cells = <1>;
378378
};
379379
};
380+
381+
&clks {
382+
assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
383+
<&clks IMX6QDL_CLK_LDB_DI1_SEL>,
384+
<&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
385+
<&clks IMX6QDL_CLK_IPU1_DI1_PRE_SEL>,
386+
<&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>,
387+
<&clks IMX6QDL_CLK_IPU2_DI1_PRE_SEL>;
388+
assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
389+
<&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
390+
<&clks IMX6QDL_CLK_PLL2_PFD0_352M>,
391+
<&clks IMX6QDL_CLK_PLL2_PFD0_352M>,
392+
<&clks IMX6QDL_CLK_PLL2_PFD0_352M>,
393+
<&clks IMX6QDL_CLK_PLL2_PFD0_352M>;
394+
};

arch/arm/boot/dts/mmp3-dell-ariel.dts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@
9898
status = "okay";
9999
};
100100

101-
&ssp3 {
101+
&ssp1 {
102102
status = "okay";
103-
cs-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
103+
cs-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
104104

105105
firmware-flash@0 {
106-
compatible = "st,m25p80", "jedec,spi-nor";
106+
compatible = "winbond,w25q32", "jedec,spi-nor";
107107
reg = <0>;
108-
spi-max-frequency = <40000000>;
108+
spi-max-frequency = <104000000>;
109109
m25p,fast-read;
110110
};
111111
};
112112

113-
&ssp4 {
114-
cs-gpios = <&gpio 56 GPIO_ACTIVE_HIGH>;
113+
&ssp2 {
114+
cs-gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
115115
status = "okay";
116116
};

arch/arm/boot/dts/mmp3.dtsi

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@
202202
};
203203

204204
hsic_phy0: hsic-phy@f0001800 {
205-
compatible = "marvell,mmp3-hsic-phy",
206-
"usb-nop-xceiv";
205+
compatible = "marvell,mmp3-hsic-phy";
207206
reg = <0xf0001800 0x40>;
208207
#phy-cells = <0>;
209208
status = "disabled";
@@ -224,8 +223,7 @@
224223
};
225224

226225
hsic_phy1: hsic-phy@f0002800 {
227-
compatible = "marvell,mmp3-hsic-phy",
228-
"usb-nop-xceiv";
226+
compatible = "marvell,mmp3-hsic-phy";
229227
reg = <0xf0002800 0x40>;
230228
#phy-cells = <0>;
231229
status = "disabled";
@@ -531,7 +529,7 @@
531529
};
532530

533531
soc_clocks: clocks@d4050000 {
534-
compatible = "marvell,mmp2-clock";
532+
compatible = "marvell,mmp3-clock";
535533
reg = <0xd4050000 0x1000>,
536534
<0xd4282800 0x400>,
537535
<0xd4015000 0x1000>;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,8 +1402,8 @@
14021402
"venc_lt_sel";
14031403
assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>,
14041404
<&topckgen CLK_TOP_VENC_LT_SEL>;
1405-
assigned-clock-parents = <&topckgen CLK_TOP_VENCPLL_D2>,
1406-
<&topckgen CLK_TOP_UNIVPLL1_D2>;
1405+
assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>,
1406+
<&topckgen CLK_TOP_VCODECPLL_370P5>;
14071407
};
14081408

14091409
jpegdec: jpegdec@18004000 {

drivers/soc/mediatek/mtk-cmdq-helper.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ int cmdq_pkt_flush_async(struct cmdq_pkt *pkt, cmdq_async_flush_cb cb,
351351
spin_unlock_irqrestore(&client->lock, flags);
352352
}
353353

354-
mbox_send_message(client->chan, pkt);
354+
err = mbox_send_message(client->chan, pkt);
355+
if (err < 0)
356+
return err;
355357
/* We can send next packet immediately, so just call txdone. */
356358
mbox_client_txdone(client->chan, 0);
357359

0 commit comments

Comments
 (0)