Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2344481pxb; Thu, 28 Oct 2021 22:37:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl98pN5NPeC4Pub3rA78Yqa03UCr1bIcuZinOYEfIyGX4SYotBJbDfQz2q3EL4fknquhBa X-Received: by 2002:a17:907:7656:: with SMTP id kj22mr10938503ejc.191.1635485834888; Thu, 28 Oct 2021 22:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635485834; cv=none; d=google.com; s=arc-20160816; b=PMRotZV6ysKL5kkD24Ten/qH2Xq1AhZQg8EUcX2PbKBUiN3T1jxLhM8WXaUUF/uaw7 5NnHPWdlgKICo9WzxxQz5L+QZxWqt3tWM9P607JLCguQ7UMTVhB7XKhiPUZ+Nb0zbbPI Jg8Tkg6TI+RshD9PRX7Ls4Cs1KRJsCGNAGsCJDlK+eC2ULoqiHrsfW6A7qlu6lPCbk2y P4H0LkJZwWmPPEIy0JUYlqkgxKy927qJX3MghbxTbki2HB1UQTjxMo7OCJceLwJnc34X xt5I2usMB4H8J7R3suEaKO/Qsfz0wK+aM8VbF9+2JK/SXpznJJZRtQilr4W3X9UzYg3N j9qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rthgzlYszn+lDeAor1sPnZbXBFL5cTk73JTwHz8bd8Y=; b=gGY/YTKj7NEky4C2JUA51OdeiilyLF8ww9NZS/mCrKA07M7FyT9AnfVxoNkiuIjvJq F6+fA5RFNzMUdYIT0QjvqBfcSEkTMg7mc2UaMfjQcidD8kky17ObZp7DMWpB0gt86d2o pkOiZwlSRTQ8y/QC615/GvXHonwVHyekOnu1xHwzeqdyXqZ+paLX7RFcvyFtw8YXyxQ8 u5kuDw0hZsBLx96pyPGr61SwGg7vYwTB4hk5h3LAmpN2TSXNNqELNrw25noEhiHPNugM VIKNRN4npinzxT89Oaa+H4aF8ITB8pD/mk6yuDDYGAwxeQuhKNeTpyk0Rc6lt9OKdRrZ yytA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S/5FHeCr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si8842361edz.148.2021.10.28.22.36.51; Thu, 28 Oct 2021 22:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="S/5FHeCr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231837AbhJ2FhW (ORCPT + 99 others); Fri, 29 Oct 2021 01:37:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbhJ2FhV (ORCPT ); Fri, 29 Oct 2021 01:37:21 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20C71C061570; Thu, 28 Oct 2021 22:34:53 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id y3so10340206ybf.2; Thu, 28 Oct 2021 22:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rthgzlYszn+lDeAor1sPnZbXBFL5cTk73JTwHz8bd8Y=; b=S/5FHeCrdXq/o9LjX8fO0ZGJAXH9/zGNGkz/Xbr2/FOQUSbEbC60u/3D5GbSBLjo9e nyKAq9Wm192ONlUiqRDklZGmaFMmBpNX8W3WWPxtCm14rjBbscJFuyUMsgQxCuK+OlXp QtFORAzlqIvVNkK3z8jmL/fnDdxR4/Wd1FFAl7+7M48LreCIJIrlx56/HhAIR/oH67/C unkVkS7trJPpZ+vCosZ1pQMFXnlKgJtFE2tuYp+V2ax1B+YQX8nIfS2FTc86va9xydGQ Q8y5fm8g5pRkdubjt67j4u/DuLC1zdP1CO1Dd0OG0hfg4QJ9MuWV51h9gtLDCrnM0m2p cYVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rthgzlYszn+lDeAor1sPnZbXBFL5cTk73JTwHz8bd8Y=; b=pCfO6i9SlMP0KQbcbQKhrKX/jFkUx6RNk0oSPHJXMiF+Do57iDg3vWClnBxC2JXGQd Efn/NBVWTNaIskSgmvM4L4+RHMFws81y+2jBED1F83Jpnn0uqTQ4TD3YHYjqjQ/bMRFB V0OgIPPMrZ/7DmtM8zQXWdT3ybe/MlE8LE+kwrzqgMfJ9B7VdyFKxo1r/tyd89e7LsQg 6Pgf+imwYvaRqZQ1TxkFYJAEI9kbWVtKxM/JC2YiboB6XFQJAZHv388vpwr8JfiLp0TL RhuarNWck1f5ZN0eC7tNRQIak9O6DWHFpzitcXskSqU0OZy5IR6giEX0MppUaGB8+lR/ 9F/g== X-Gm-Message-State: AOAM530Hs1wDwkj7EStsVb1I3yoLMxmJI1g9zWZWku++1Qwp85nBgPl5 pTB4J7tIn+VZitgUZUSn/3A7UISp9+2hXhU5bg8= X-Received: by 2002:a25:2304:: with SMTP id j4mr8576263ybj.359.1635485692227; Thu, 28 Oct 2021 22:34:52 -0700 (PDT) MIME-Version: 1.0 References: <20211028141938.3530-1-lukas.bulwahn@gmail.com> <20211028141938.3530-2-lukas.bulwahn@gmail.com> In-Reply-To: From: Lukas Bulwahn Date: Fri, 29 Oct 2021 07:34:40 +0200 Message-ID: Subject: Re: [PATCH 01/13] arm: debug: remove obsolete debug code for DEBUG_ZTE_ZX To: Arnd Bergmann Cc: Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sekhar Nori , Bartosz Golaszewski , Linus Walleij , Imre Kaloz , Krzysztof Halasa , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Dinh Nguyen , Linux ARM , OpenBMC Maillist , kernel-janitors , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 28, 2021 at 4:38 PM Arnd Bergmann wrote: > > On Thu, Oct 28, 2021 at 4:19 PM Lukas Bulwahn wrote: > > > > Commit 89d4f98ae90d ("ARM: remove zte zx platform") removes the config > > DEBUG_ZTE_ZX. Hence, since then, the "ifdef CONFIG_DEBUG_ZTE_ZX" in > > ./arch/arm/include/debug/pl01x.S is dead code. > > > > Fortunately, ./scripts/checkkconfigsymbols.py detects this and warns: > > > > DEBUG_ZTE_ZX > > Referencing files: arch/arm/include/debug/pl01x.S > > > > So, remove the obsolete ifdef CONFIG_DEBUG_ZTE_ZX. > > > > Signed-off-by: Lukas Bulwahn > > Reviewed-by: Arnd Bergmann > > I see another copy of these constants in drivers/tty/serial/amba-pl011.c, > which we should probably clean up as well. > Arnd, did you have something like this---see below---for serial amba-pl011 in mind? Then, I would adjust the patch to remove all the zte_zx serial left-over in one commit. Lukas diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index d361cd84ff8c..c9534e229166 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -188,38 +188,6 @@ static struct vendor_data vendor_st = { .get_fifosize = get_fifosize_st, }; -static const u16 pl011_zte_offsets[REG_ARRAY_SIZE] = { - [REG_DR] = ZX_UART011_DR, - [REG_FR] = ZX_UART011_FR, - [REG_LCRH_RX] = ZX_UART011_LCRH, - [REG_LCRH_TX] = ZX_UART011_LCRH, - [REG_IBRD] = ZX_UART011_IBRD, - [REG_FBRD] = ZX_UART011_FBRD, - [REG_CR] = ZX_UART011_CR, - [REG_IFLS] = ZX_UART011_IFLS, - [REG_IMSC] = ZX_UART011_IMSC, - [REG_RIS] = ZX_UART011_RIS, - [REG_MIS] = ZX_UART011_MIS, - [REG_ICR] = ZX_UART011_ICR, - [REG_DMACR] = ZX_UART011_DMACR, -}; - -static unsigned int get_fifosize_zte(struct amba_device *dev) -{ - return 16; -} - -static struct vendor_data vendor_zte = { - .reg_offset = pl011_zte_offsets, - .access_32b = true, - .ifls = UART011_IFLS_RX4_8|UART011_IFLS_TX4_8, - .fr_busy = ZX_UART01x_FR_BUSY, - .fr_dsr = ZX_UART01x_FR_DSR, - .fr_cts = ZX_UART01x_FR_CTS, - .fr_ri = ZX_UART011_FR_RI, - .get_fifosize = get_fifosize_zte, -}; - /* Deals with DMA transactions */ struct pl011_sgbuf { @@ -2974,11 +2942,6 @@ static const struct amba_id pl011_ids[] = { .mask = 0x00ffffff, .data = &vendor_st, }, - { - .id = AMBA_LINUX_ID(0x00, 0x1, 0xffe), - .mask = 0x00ffffff, - .data = &vendor_zte, - }, { 0, 0 }, }; diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index edfcf7a14dcd..6c7f47846971 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -90,14 +90,8 @@ enum amba_vendor { AMBA_VENDOR_ST = 0x80, AMBA_VENDOR_QCOM = 0x51, AMBA_VENDOR_LSI = 0xb6, - AMBA_VENDOR_LINUX = 0xfe, /* This value is not official */ }; -/* This is used to generate pseudo-ID for AMBA device */ -#define AMBA_LINUX_ID(conf, rev, part) \ - (((conf) & 0xff) << 24 | ((rev) & 0xf) << 20 | \ - AMBA_VENDOR_LINUX << 12 | ((part) & 0xfff)) - extern struct bus_type amba_bustype; #define to_amba_device(d) container_of(d, struct amba_device, dev)