7de3cbbda0758c12dc1d192a6ba2cab92d1059b8
[openwrt/staging/xback.git] /
1 From 0dc0da881b4574d1e04a079ab2ea75da61f5ad2e Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 11 Mar 2022 10:32:33 +0100
4 Subject: [PATCH] tty: serial: bcm63xx: use more precise Kconfig symbol
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Patches lowering SERIAL_BCM63XX dependencies led to a discussion and
10 documentation change regarding "depends" usage. Adjust Kconfig entry to
11 match current guidelines. Make this symbol available for relevant
12 architectures only.
13
14 Cc: Geert Uytterhoeven <geert@linux-m68k.org>
15 Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
16 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
17 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 Ref: f35a07f92616 ("tty: serial: bcm63xx: lower driver dependencies")
19 Ref: 18084e435ff6 ("Documentation/kbuild: Document platform dependency practises")
20 Link: https://lore.kernel.org/r/20220311093233.10012-1-zajec5@gmail.com
21 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 ---
23 drivers/tty/serial/Kconfig | 3 ++-
24 1 file changed, 2 insertions(+), 1 deletion(-)
25
26 --- a/drivers/tty/serial/Kconfig
27 +++ b/drivers/tty/serial/Kconfig
28 @@ -1098,7 +1098,8 @@ config SERIAL_TIMBERDALE
29 config SERIAL_BCM63XX
30 tristate "Broadcom BCM63xx/BCM33xx UART support"
31 select SERIAL_CORE
32 - depends on COMMON_CLK
33 + depends on ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC || COMPILE_TEST
34 + default ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC
35 help
36 This enables the driver for the onchip UART core found on
37 the following chipsets: