Skip to content

Commit e494548

Browse files
committed
Merge tag 'mvebu-arm-6.12-1' of https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/arm
mvebu arm for 6.12 (part 1) Fix a few warning error with W=1 Switch orion5x to new sys-off handler API * tag 'mvebu-arm-6.12-1' of https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu: ARM: dove: Drop a write-only variable ARM: orion5x: Switch to new sys-off handler API ARM: mvebu: Warn about memory chunks too small for DDR training Signed-off-by: Arnd Bergmann <[email protected]>
2 parents f166da5 + dea56c7 commit e494548

File tree

10 files changed

+15
-12
lines changed

10 files changed

+15
-12
lines changed

arch/arm/mach-dove/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void __init dove_clk_init(void)
8282
{
8383
struct clk *usb0, *usb1, *sata, *pex0, *pex1, *sdio0, *sdio1;
8484
struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *ac97, *pdma;
85-
struct clk *xor0, *xor1, *ge, *gephy;
85+
struct clk *xor0, *xor1, *ge;
8686

8787
tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk);
8888

@@ -102,7 +102,7 @@ static void __init dove_clk_init(void)
102102
pdma = dove_register_gate("pdma", "tclk", CLOCK_GATING_BIT_PDMA);
103103
xor0 = dove_register_gate("xor0", "tclk", CLOCK_GATING_BIT_XOR0);
104104
xor1 = dove_register_gate("xor1", "tclk", CLOCK_GATING_BIT_XOR1);
105-
gephy = dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY);
105+
dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY);
106106
ge = dove_register_gate("ge", "gephy", CLOCK_GATING_BIT_GBE);
107107

108108
orion_clkdev_add(NULL, "orion_spi.0", tclk);

arch/arm/mach-mvebu/board-v7.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ static int __init mvebu_scan_mem(unsigned long node, const char *uname,
8686
base = dt_mem_next_cell(dt_root_addr_cells, &reg);
8787
size = dt_mem_next_cell(dt_root_size_cells, &reg);
8888

89+
if (size < MVEBU_DDR_TRAINING_AREA_SZ)
90+
pr_warn("Too little memory to reserve for DDR training\n");
91+
8992
memblock_reserve(base, MVEBU_DDR_TRAINING_AREA_SZ);
9093
}
9194

arch/arm/mach-orion5x/board-mss2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ static void mss2_power_off(void)
8282
void __init mss2_init(void)
8383
{
8484
/* register mss2 specific power-off method */
85-
pm_power_off = mss2_power_off;
85+
register_platform_power_off(mss2_power_off);
8686
}

arch/arm/mach-orion5x/dns323-setup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static void __init dns323_init(void)
700700
if (gpio_request(DNS323_GPIO_POWER_OFF, "POWEROFF") != 0 ||
701701
gpio_direction_output(DNS323_GPIO_POWER_OFF, 0) != 0)
702702
pr_err("DNS-323: failed to setup power-off GPIO\n");
703-
pm_power_off = dns323a_power_off;
703+
register_platform_power_off(dns323a_power_off);
704704
break;
705705
case DNS323_REV_B1:
706706
/* 5182 built-in SATA init */
@@ -717,7 +717,7 @@ static void __init dns323_init(void)
717717
if (gpio_request(DNS323_GPIO_POWER_OFF, "POWEROFF") != 0 ||
718718
gpio_direction_output(DNS323_GPIO_POWER_OFF, 0) != 0)
719719
pr_err("DNS-323: failed to setup power-off GPIO\n");
720-
pm_power_off = dns323b_power_off;
720+
register_platform_power_off(dns323b_power_off);
721721
break;
722722
case DNS323_REV_C1:
723723
/* 5182 built-in SATA init */
@@ -727,7 +727,7 @@ static void __init dns323_init(void)
727727
if (gpio_request(DNS323C_GPIO_POWER_OFF, "POWEROFF") != 0 ||
728728
gpio_direction_output(DNS323C_GPIO_POWER_OFF, 0) != 0)
729729
pr_err("DNS-323: failed to setup power-off GPIO\n");
730-
pm_power_off = dns323c_power_off;
730+
register_platform_power_off(dns323c_power_off);
731731

732732
/* Now, -this- should theoretically be done by the sata_mv driver
733733
* once I figure out what's going on there. Maybe the behaviour

arch/arm/mach-orion5x/kurobox_pro-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static void __init kurobox_pro_init(void)
373373
i2c_register_board_info(0, &kurobox_pro_i2c_rtc, 1);
374374

375375
/* register Kurobox Pro specific power-off method */
376-
pm_power_off = kurobox_pro_power_off;
376+
register_platform_power_off(kurobox_pro_power_off);
377377
}
378378

379379
#ifdef CONFIG_MACH_KUROBOX_PRO

arch/arm/mach-orion5x/mv2120-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static void __init mv2120_init(void)
238238
if (gpio_request(MV2120_GPIO_POWER_OFF, "POWEROFF") != 0 ||
239239
gpio_direction_output(MV2120_GPIO_POWER_OFF, 1) != 0)
240240
pr_err("mv2120: failed to setup power-off GPIO\n");
241-
pm_power_off = mv2120_power_off;
241+
register_platform_power_off(mv2120_power_off);
242242
}
243243

244244
/* Warning: HP uses a wrong mach-type (=526) in their bootloader */

arch/arm/mach-orion5x/net2big-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static void __init net2big_init(void)
423423

424424
if (gpio_request(NET2BIG_GPIO_POWER_OFF, "power-off") == 0 &&
425425
gpio_direction_output(NET2BIG_GPIO_POWER_OFF, 0) == 0)
426-
pm_power_off = net2big_power_off;
426+
register_platform_power_off(net2big_power_off);
427427
else
428428
pr_err("net2big: failed to configure power-off GPIO\n");
429429

arch/arm/mach-orion5x/terastation_pro2-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static void __init tsp2_init(void)
349349
i2c_register_board_info(0, &tsp2_i2c_rtc, 1);
350350

351351
/* register Terastation Pro II specific power-off method */
352-
pm_power_off = tsp2_power_off;
352+
register_platform_power_off(tsp2_power_off);
353353
}
354354

355355
MACHINE_START(TERASTATION_PRO2, "Buffalo Terastation Pro II/Live")

arch/arm/mach-orion5x/ts209-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static void __init qnap_ts209_init(void)
314314
i2c_register_board_info(0, &qnap_ts209_i2c_rtc, 1);
315315

316316
/* register tsx09 specific power-off method */
317-
pm_power_off = qnap_tsx09_power_off;
317+
register_platform_power_off(qnap_tsx09_power_off);
318318
}
319319

320320
MACHINE_START(TS209, "QNAP TS-109/TS-209")

arch/arm/mach-orion5x/ts409-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static void __init qnap_ts409_init(void)
312312
platform_device_register(&ts409_leds);
313313

314314
/* register tsx09 specific power-off method */
315-
pm_power_off = qnap_tsx09_power_off;
315+
register_platform_power_off(qnap_tsx09_power_off);
316316
}
317317

318318
MACHINE_START(TS409, "QNAP TS-409")

0 commit comments

Comments
 (0)