Skip to content

Commit fbaff05

Browse files
committed
Merge tag 'imx-fixes-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into fixes
The i.MX fixes for 4.9: - A couple of patches from Fabio to fix the GPC power domain regression which is caused by PM Domain core change 0159ec6 ("PM / Domains: Verify the PM domain is present when adding a provider"), and a related kernel crash seen with multi_v7_defconfig build. - Correct the PHY ID mask for AR8031 to match phy driver code. - Apply new added timer erratum A008585 for LS1043A and LS2080A SoC. - Correct vf610 global timer IRQ flag to avoid warning from gic driver after commit 992345a ("irqchip/gic: WARN if setting the interrupt type for a PPI fails"). * tag 'imx-fixes-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: ARM: imx: mach-imx6q: Fix the PHY ID mask for AR8031 ARM: dts: vf610: fix IRQ flag of global timer ARM: imx: gpc: Fix the imx_gpc_genpd_init() error path ARM: imx: gpc: Initialize all power domains arm64: dts: Add timer erratum property for LS2080A and LS1043A Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents 10e15a6 + 4edd601 commit fbaff05

5 files changed

Lines changed: 16 additions & 5 deletions

File tree

arch/arm/boot/dts/vf500.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
global_timer: timer@40002200 {
7171
compatible = "arm,cortex-a9-global-timer";
7272
reg = <0x40002200 0x20>;
73-
interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
73+
interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
7474
interrupt-parent = <&intc>;
7575
clocks = <&clks VF610_CLK_PLATFORM_BUS>;
7676
};

arch/arm/mach-imx/gpc.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static struct genpd_onecell_data imx_gpc_onecell_data = {
408408
static int imx_gpc_genpd_init(struct device *dev, struct regulator *pu_reg)
409409
{
410410
struct clk *clk;
411-
int i;
411+
int i, ret;
412412

413413
imx6q_pu_domain.reg = pu_reg;
414414

@@ -430,13 +430,22 @@ static int imx_gpc_genpd_init(struct device *dev, struct regulator *pu_reg)
430430
if (!IS_ENABLED(CONFIG_PM_GENERIC_DOMAINS))
431431
return 0;
432432

433-
pm_genpd_init(&imx6q_pu_domain.base, NULL, false);
434-
return of_genpd_add_provider_onecell(dev->of_node,
433+
for (i = 0; i < ARRAY_SIZE(imx_gpc_domains); i++)
434+
pm_genpd_init(imx_gpc_domains[i], NULL, false);
435+
436+
ret = of_genpd_add_provider_onecell(dev->of_node,
435437
&imx_gpc_onecell_data);
438+
if (ret)
439+
goto power_off;
440+
441+
return 0;
436442

443+
power_off:
444+
imx6q_pm_pu_power_off(&imx6q_pu_domain.base);
437445
clk_err:
438446
while (i--)
439447
clk_put(imx6q_pu_domain.clk[i]);
448+
imx6q_pu_domain.reg = NULL;
440449
return -EINVAL;
441450
}
442451

arch/arm/mach-imx/mach-imx6q.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static void __init imx6q_enet_phy_init(void)
173173
ksz9021rn_phy_fixup);
174174
phy_register_fixup_for_uid(PHY_ID_KSZ9031, MICREL_PHY_ID_MASK,
175175
ksz9031rn_phy_fixup);
176-
phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffff,
176+
phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffef,
177177
ar8031_phy_fixup);
178178
phy_register_fixup_for_uid(PHY_ID_AR8035, 0xffffffef,
179179
ar8035_phy_fixup);

arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
<1 14 0xf08>, /* Physical Non-Secure PPI */
124124
<1 11 0xf08>, /* Virtual PPI */
125125
<1 10 0xf08>; /* Hypervisor PPI */
126+
fsl,erratum-a008585;
126127
};
127128

128129
pmu {

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
<1 14 4>, /* Physical Non-Secure PPI, active-low */
196196
<1 11 4>, /* Virtual PPI, active-low */
197197
<1 10 4>; /* Hypervisor PPI, active-low */
198+
fsl,erratum-a008585;
198199
};
199200

200201
pmu {

0 commit comments

Comments
 (0)