Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1689061pxb; Fri, 25 Mar 2022 03:49:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbBWwvxgPMydvilzhv0lNpLlfHoPE9Lcslxr6RthZW6UsouRXu3PWIV7o9nYq24e1wsmgb X-Received: by 2002:a65:43c8:0:b0:378:7add:ec4c with SMTP id n8-20020a6543c8000000b003787addec4cmr7323719pgp.570.1648205359012; Fri, 25 Mar 2022 03:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648205359; cv=none; d=google.com; s=arc-20160816; b=Z8mSwGeYdaIHyJb6DbjqCCrzdrRiQ2k3fMvRUGPnAhkIeClU150w3xxyvCWmOhxqc0 Sq5Wne2eoIaRXd9jCJRTWlZSh6bV1PJJQKqrBsiZGCgwYP1Huxe7ZRuxUGdxRFcQAyjH cCM5cmOk0njdbiF99whYW4kQb2qZxHuPZLHhPd1hBx1MrrJsL04JZo7+nc9Ib/Q46nJr aNK/1muRz7TJKP5Hb99ya2f3FykyNSzw2V761WWfqT7vr2pTtm4WfmSbbKoUaS3BptXo l5bMKo3+sX2D2qwZVei7eQKPQljziZHdLZJG/4IHuaAtWtbCS5Szkb6c9dM5N1jx3+Hy Lfqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=q59i4/nf/UYOS4a6PO+Gtm8NBuHSVYjxTsJF4kgBZXU=; b=TCYM4sQtwzMi7gH3H/DfgUIUE0OqhaswnCMt0RtvO+uVVTxCY3B6Tu/bK9WfHKNzwM HH8jJDA7zue5eK0zzS94uEnbnbLgcaJ5eTVIq+Cs6F1iOaSOiSsZhd1QdgJprQRnxfIF JiEjMQkTg1HT1jqTMwqxVIzpdIZ8E7kZzu3H1TlG847mtnv2SuuhQiBdK/V7p9pniIoI h2Z7a5y5F89qoU84PP8UaKDYZZq/CVl9Ix8lz3QeqPle7q77acIUzgS4mC8mKF6lNR6D HL3s6s6fV/EIzIAVZqK32yPRxn6/nVBxQnifSVpN6Z02vGmRC+cZyBJbZbwkjXElqqB7 sYbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Ph2ByEYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a170902d88800b00153b2d164a0si259233plz.168.2022.03.25.03.49.06; Fri, 25 Mar 2022 03:49:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Ph2ByEYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350500AbiCXNk0 (ORCPT + 99 others); Thu, 24 Mar 2022 09:40:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238788AbiCXNkZ (ORCPT ); Thu, 24 Mar 2022 09:40:25 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9799043AD3 for ; Thu, 24 Mar 2022 06:38:53 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 4B1302222E; Thu, 24 Mar 2022 14:38:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648129131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q59i4/nf/UYOS4a6PO+Gtm8NBuHSVYjxTsJF4kgBZXU=; b=Ph2ByEYOCoIlOLlZFI2XbmvYjaNWotm0EbiPne9WntVvWUJp0Htt9pGzILZ/DbGngJ8jDZ w7A708l88quKzaoogokqou+fiLH9f9aK8ipo16gTLLvQLpHiJ5Ih3ksLkaBhkysNi5PfZ2 RqHnkuep9+BZRcDqhY4wMLeUc0Tjq/w= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 24 Mar 2022 14:38:51 +0100 From: Michael Walle To: Kavyasree Kotagiri Cc: alexandre.belloni@bootlin.com, linux@armlinux.org.uk, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Manohar.Puri@microchip.com Subject: Re: [PATCH v2] ARM: at91: debug: add lan966 support In-Reply-To: <20220324131031.32430-1-kavyasree.kotagiri@microchip.com> References: <20220324131031.32430-1-kavyasree.kotagiri@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <14e896d59fa48e51a777324d5813d17a@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kavyasree, Am 2022-03-24 14:10, schrieb Kavyasree Kotagiri: > Add support for low-level debugging on FLEXCOM3 USART of > LAN966 SoC. > > Signed-off-by: Kavyasree Kotagiri > --- > v1 -> v2: > - Corrected flexcom3 base address - 0xe0064200. Unfortunately, you didn't respond to my previous remarks. Not everyone has the debug console on FLEXCOM3. Therefore, I suggested to use DEBUG_AT91_LAN966_FLEXCOM (please note the missing '3' at the end) and add a table with all the offsets to the help text. I'm fine with having the flexcom3 base address by default. But that should also be noted in the help text. -michael > arch/arm/Kconfig.debug | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug > index 0c9497d549e3..04501ddc7ab4 100644 > --- a/arch/arm/Kconfig.debug > +++ b/arch/arm/Kconfig.debug > @@ -210,6 +210,14 @@ choice > Say Y here if you want kernel low-level debugging support > on the FLEXCOM3 port of SAMA7G5. > > + config DEBUG_AT91_LAN966_FLEXCOM3 > + bool "Kernel low-level debugging on LAN966 FLEXCOM3 > USART" > + select DEBUG_AT91_UART > + depends on SOC_LAN966 > + help > + Say Y here if you want kernel low-level debugging > support > + on the FLEXCOM3 port of LAN966. > + > config DEBUG_BCM2835 > bool "Kernel low-level debugging on BCM2835 PL011 UART" > depends on ARCH_BCM2835 && ARCH_MULTI_V6 > @@ -1685,6 +1693,7 @@ config DEBUG_UART_PHYS > default 0xd4017000 if DEBUG_MMP_UART2 > default 0xd4018000 if DEBUG_MMP_UART3 > default 0xe0000000 if DEBUG_SPEAR13XX > + default 0xe0064200 if DEBUG_AT91_LAN966_FLEXCOM3 > default 0xe1824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3 > default 0xe4007000 if DEBUG_HIP04_UART > default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0 > @@ -1805,6 +1814,7 @@ config DEBUG_UART_VIRT > default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT > default 0xfcfe8600 if DEBUG_BCM63XX_UART > default 0xfd000000 if DEBUG_SPEAR3XX || DEBUG_SPEAR13XX > + default 0xfd064200 if DEBUG_AT91_LAN966_FLEXCOM3 > default 0xfd531000 if DEBUG_STIH41X_SBC_ASC1 > default 0xfd883000 if DEBUG_ALPINE_UART0 > default 0xfdd32000 if DEBUG_STIH41X_ASC2