From patchwork Fri Mar 11 09:32:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12777703 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77B07C433F5 for ; Fri, 11 Mar 2022 09:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+w2juVyCJmzkHvnKu5IY7g1JFrsvtqMHzYc2+chqDyg=; b=RvI24KxK6xTXRj edorAdUl9OE6Av82pfIaskqwsux3A9bU01G2J4v0OeXkD/xj6qcKHnFB7SkW5cLQGnYFqHmpPR5oS VvmaON+ajXbuv2QxXty6yTBsG6Q4ZTfNViUP9Q2i8luWMUKSv1pZ06fpHKKPa9joKKKnTFIeH+CoQ pvGOoiIGSHEf1QyVJqs7uCkdIzpkzsPEejMgyUAbP41XKLscY+L4WItjeSNVeFMqBDVj1BpVTtX5/ oAQzYFA1B2aAs1MNXOPfxv1X1nFT/KcoX1rhLHQDN/+hr+rzNVium8iwo3JtF55yiAC7XBxOdX7ey +hGZZMR+dRvu7RCnodaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSbdj-00Foff-EN; Fri, 11 Mar 2022 09:32:51 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSbdg-00Foe5-Uq for linux-arm-kernel@lists.infradead.org; Fri, 11 Mar 2022 09:32:50 +0000 Received: by mail-lj1-x22f.google.com with SMTP id s25so11305393lji.5 for ; Fri, 11 Mar 2022 01:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=22OynrwRfUmM6HyLJLZTgW4CgzT5GjNvtS3ZAyzd8ks=; b=bl/7bM6eRjZ70uLFQ3B96n/Nip1gGazFbixDvAvHOk76JxUxhxUu08bl+wsnwANU60 TQop/jQmB0spSHG1caccnJiBa5iiLa76qRy26zhj9WpGM2uARcwU/HqB+Njt67wo9AZJ fTiz6Uy4W/lCrVbCIHqLuzP8NiI2ekn7zZe7zIg4ekJLJv7AcahFsd5SWQYlwXsJExaN /boti6xqRPRjzLIRJgpfEqbITfEOGJ4SRNkjpC9aPSfLmSWQoB66d6po3+2Or6C0M95L KlXkLTmo/IZMk5qqsAUMDzqfli9Qn9rDp5d5kMBJMbJQhjNnOnX2v4Kdo/PfDaTvC7Sj ldxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=22OynrwRfUmM6HyLJLZTgW4CgzT5GjNvtS3ZAyzd8ks=; b=aV6Xe8wwNXT0b0dQ3qhLyv4eMHCFBfsP9SYvEZFupE7unkS1K39lP332WB00A/pIpR y3WbkrRrpuldk/qLt9hYsWvQkToTATlhB89rD8lit8hylKXL4fMvW8lvhB2Fz/YKsCfp YEgPkEEgNvZtzxwn8++U403LE/un5ddSVGIbVvfy3qq7KZoOaFzERuh/173utoUjTcGh u0tO4V6psLPzJBPlctR0YACHWkAbeEhz8Ds6lLVsFnNXEsljH0YR+Zsij3WyB0E8U2qb EShh42MjwHNWLcizi+4c10+rD0gJQQ1eLvHuESa7CV6QZS0IyMP0FOlf3Sm5EgJE5m4q cX/w== X-Gm-Message-State: AOAM531/YcQyjpDZem9ya4/wKU2mAfkLKPxeGdhqHEE1+tWM78ldGWM/ NGKIGjr21tQpPmCEfUwbNmU= X-Google-Smtp-Source: ABdhPJwd+CjY/Pi0ZOurKwWT7pB19cIeDyTOOH7yYWDN8VeY0LbziJLcsRiP52SI00Bk4AtNlyrV5g== X-Received: by 2002:a2e:871a:0:b0:246:ee2:1109 with SMTP id m26-20020a2e871a000000b002460ee21109mr5459122lji.165.1646991166086; Fri, 11 Mar 2022 01:32:46 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id r7-20020ac25f87000000b004484fed8a9esm1506940lfe.268.2022.03.11.01.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 01:32:45 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-serial@vger.kernel.org, Florian Fainelli , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Geert Uytterhoeven Subject: [PATCH V3] tty: serial: bcm63xx: use more precise Kconfig symbol Date: Fri, 11 Mar 2022 10:32:33 +0100 Message-Id: <20220311093233.10012-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220311_013249_026968_6A7827A0 X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki Patches lowering SERIAL_BCM63XX dependencies led to a discussion and documentation change regarding "depends" usage. Adjust Kconfig entry to match current guidelines. Make this symbol available for relevant architectures only. Cc: Geert Uytterhoeven Ref: f35a07f92616 ("tty: serial: bcm63xx: lower driver dependencies") Ref: 18084e435ff6 ("Documentation/kbuild: Document platform dependency practises") Signed-off-by: Rafał Miłecki Reviewed-by: Geert Uytterhoeven Acked-by: Florian Fainelli --- V2: Use precise "depends" (exact platforms) V3: Don't default y for COMPILE_TEST --- drivers/tty/serial/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index e952ec5c7a7c..b51341678b8a 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -1100,7 +1100,8 @@ config SERIAL_TIMBERDALE config SERIAL_BCM63XX tristate "Broadcom BCM63xx/BCM33xx UART support" select SERIAL_CORE - depends on COMMON_CLK + depends on ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC || COMPILE_TEST + default ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC help This enables the driver for the onchip UART core found on the following chipsets: