Skip to content

Commit 5d82ca7

Browse files
committed
Merge tag 'sh-for-v6.14-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux
Pull sh updates from John Paul Adrian Glaubitz: "Fixes and improvements for sh: - replace seq_printf() with the more efficient seq_put_decimal_ull_width() to increase performance when stress reading /proc/interrupts (David Wang) - migrate sh to the generic rule for built-in DTB to help avoid race conditions during parallel builds which can occur because Kbuild decends into arch/*/boot/dts twice (Masahiro Yamada) - replace select with imply in the board Kconfig for enabling hardware with complex dependencies. This addresses warnings which were reported by the kernel test robot (Geert Uytterhoeven)" * tag 'sh-for-v6.14-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux: sh: boards: Use imply to enable hardware with complex dependencies sh: Migrate to the generic rule for built-in DTB sh: irq: Use seq_put_decimal_ull_width() for decimal values
2 parents a86bf22 + 909f3c5 commit 5d82ca7

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

arch/sh/Kbuild

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-y += kernel/ mm/ boards/
33
obj-$(CONFIG_SH_FPU_EMU) += math-emu/
4-
obj-$(CONFIG_USE_BUILTIN_DTB) += boot/dts/
54

65
obj-$(CONFIG_HD6446X_SERIES) += cchips/hd6446x/
76

arch/sh/Kconfig

+4-3
Original file line numberDiff line numberDiff line change
@@ -648,21 +648,22 @@ endmenu
648648

649649
menu "Boot options"
650650

651-
config USE_BUILTIN_DTB
651+
config BUILTIN_DTB
652652
bool "Use builtin DTB"
653653
default n
654654
depends on SH_DEVICE_TREE
655+
select GENERIC_BUILTIN_DTB
655656
help
656657
Link a device tree blob for particular hardware into the kernel,
657658
suppressing use of the DTB pointer provided by the bootloader.
658659
This option should only be used with legacy bootloaders that are
659660
not capable of providing a DTB to the kernel, or for experimental
660661
hardware without stable device tree bindings.
661662

662-
config BUILTIN_DTB_SOURCE
663+
config BUILTIN_DTB_NAME
663664
string "Source file for builtin DTB"
664665
default ""
665-
depends on USE_BUILTIN_DTB
666+
depends on BUILTIN_DTB
666667
help
667668
Base name (without suffix, relative to arch/sh/boot/dts) for the
668669
a DTS file that will be used to produce the DTB linked into the

arch/sh/boards/Kconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ config SH_7724_SOLUTION_ENGINE
8080
select SOLUTION_ENGINE
8181
depends on CPU_SUBTYPE_SH7724
8282
select GPIOLIB
83-
select SND_SOC_AK4642 if SND_SIMPLE_CARD
8483
select REGULATOR_FIXED_VOLTAGE if REGULATOR
84+
imply SND_SOC_AK4642 if SND_SIMPLE_CARD
8585
help
8686
Select 7724 SolutionEngine if configuring for a Hitachi SH7724
8787
evaluation board.
@@ -259,8 +259,8 @@ config SH_ECOVEC
259259
bool "EcoVec"
260260
depends on CPU_SUBTYPE_SH7724
261261
select GPIOLIB
262-
select SND_SOC_DA7210 if SND_SIMPLE_CARD
263262
select REGULATOR_FIXED_VOLTAGE if REGULATOR
263+
imply SND_SOC_DA7210 if SND_SIMPLE_CARD
264264
help
265265
Renesas "R0P7724LC0011/21RL (EcoVec)" support.
266266

arch/sh/boot/dts/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-$(CONFIG_USE_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_SOURCE))
2+
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))

arch/sh/kernel/irq.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ int arch_show_interrupts(struct seq_file *p, int prec)
4343
{
4444
int j;
4545

46-
seq_printf(p, "%*s: ", prec, "NMI");
46+
seq_printf(p, "%*s:", prec, "NMI");
4747
for_each_online_cpu(j)
48-
seq_printf(p, "%10u ", per_cpu(irq_stat.__nmi_count, j));
48+
seq_put_decimal_ull_width(p, " ", per_cpu(irq_stat.__nmi_count, j), 10);
4949
seq_printf(p, " Non-maskable interrupts\n");
5050

5151
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));

arch/sh/kernel/setup.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void __ref sh_fdt_init(phys_addr_t dt_phys)
249249
/* Avoid calling an __init function on secondary cpus. */
250250
if (done) return;
251251

252-
#ifdef CONFIG_USE_BUILTIN_DTB
252+
#ifdef CONFIG_BUILTIN_DTB
253253
dt_virt = __dtb_start;
254254
#else
255255
dt_virt = phys_to_virt(dt_phys);
@@ -323,7 +323,7 @@ void __init setup_arch(char **cmdline_p)
323323
sh_early_platform_driver_probe("earlyprintk", 1, 1);
324324

325325
#ifdef CONFIG_OF_EARLY_FLATTREE
326-
#ifdef CONFIG_USE_BUILTIN_DTB
326+
#ifdef CONFIG_BUILTIN_DTB
327327
unflatten_and_copy_device_tree();
328328
#else
329329
unflatten_device_tree();

0 commit comments

Comments
 (0)