Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1222984lqm; Thu, 2 May 2024 08:27:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsruUgT6TKN0FkFmhZvvzrHybj3UkfrGUq8G6shuac8MyoKBvOvyrOwgaY11/pSfcWJIoJX3I87UIikEykJEuZd8NGuVRobcm40JJhog== X-Google-Smtp-Source: AGHT+IES0K/AhpUemtiIBs2t6KEn++X5p7Su1pdBHlrYdhQ4/z7PY311o7DXGqE6vKjaXOrbaJ13 X-Received: by 2002:a05:6214:29c3:b0:6a0:ab13:e05a with SMTP id gh3-20020a05621429c300b006a0ab13e05amr2371248qvb.25.1714663674833; Thu, 02 May 2024 08:27:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714663674; cv=pass; d=google.com; s=arc-20160816; b=QOM6mw0O3KA9c2SxnraDPYA9c7ruNCpTQ6YlfJiZOnWR/DfWEa6jq4MW3LZvD4sdZK MC5nlZ4JSN807D4Yz+9OegZI+LQQDQh6kaNUU6ftmIOOhjiXBKfPMML9fT6E7za2iOnr rMe6RzzmXWJR0JYgsz7iq2LdCqWqO5zzdWVUdTT9BXSYZ+WtdyKFDRj5yfvRY5FrAYcd wtE10tOk+H/eaNP4nB8FgEamVpyrTI2IWRC9l4h/9rhMN1wQeVwGC5EhfBsQ2jnUHACa ffaLuCC5ZjquaN+cEMP2cJEQXtXHglqbf8C9M+sIoy6+gjVGoyMpyrr06TU0kejCx632 t2kA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:organization :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Xdn6Lap92TRzjIdv/bV1bZFq6oj9fxDr1Ng84N8c8dg=; fh=nRJ9xV2ZP4PIKgc3jAEXTNKqgZhgGHToPU1l5GfyCzM=; b=N/vdB3WvCeTyQJHq0+r8pRn2kc43xI49ZcRfaB+K3dsp4brcFpMwU6rGWgw6G733u6 nfIbPZrmwPwDLM3ZvBB4WYb3Zko7Z7CWKAr1fIRDB6LBp7tD5E6Fiire/6pUAjPp6lVn 4PK9YI82XEZlvOF7BZhoYjVIHi+MlBgNRvS5AHAGA4dLOI9nmwG9WRyoBYP+GbV2a1id 0+oQE4LmjbLOcgIjlLDeovbI6XOJCSBfg6vJOD0GfomBDrRGcLxbw4cPxIczky50dXRx d4i3MgLXOjlF2dDEImVsPaN+aF9D2pkKytVwG/rVmIVA3zQ+nRzfJSpMty/fEbBbgCL2 XD/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@finest.io header.s=s1-ionos header.b=zBon1hg4; arc=pass (i=1 spf=pass spfdomain=finest.io dkim=pass dkdomain=finest.io); spf=pass (google.com: domain of linux-kernel+bounces-166638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166638-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 13-20020a0562140d0d00b0069945f437adsi1150546qvh.9.2024.05.02.08.27.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 08:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@finest.io header.s=s1-ionos header.b=zBon1hg4; arc=pass (i=1 spf=pass spfdomain=finest.io dkim=pass dkdomain=finest.io); spf=pass (google.com: domain of linux-kernel+bounces-166638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166638-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D83D1C2173C for ; Thu, 2 May 2024 15:26:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E1F315B13A; Thu, 2 May 2024 15:26:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=finest.io header.i=parker@finest.io header.b="zBon1hg4" Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07B561598E9; Thu, 2 May 2024 15:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.208.4.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714663609; cv=none; b=Phwj7PmMQaJj8yB2r2FB3/gHYNgI0+Iq14fvHuJk96pNr0ItHYj9OqMC+LrBwNSmrUpcy7ACBlVJWVc2rAvCD/RGKSzyEyLQyd8w2AqsevcscDC/8dH7s4QtSQRP5vc6rp/XwB31M3CVaQcQr7ersfsFNvzW2xeWboi0nW+GAX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714663609; c=relaxed/simple; bh=mE5/RlENTW0brlPOOMw/MSYaBxBXYrv8dh9dZKsKnCw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tdXnCFKcczVEtnwoPK0Wo8vAsgOAnnivsAa+jjCwdUcN9NQAjfHyhQjfFcW/pLWEHatMq1VTeEmGTyDfXEjEKo8O3CXtQbFGOQSQ/q04vzRptPcw6VuDZdUCF8IWoQQKm2QS5Qramw+mvcsTt92ZJ5ttIr3SIKn30M41pdskjLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=finest.io; spf=pass smtp.mailfrom=finest.io; dkim=pass (2048-bit key) header.d=finest.io header.i=parker@finest.io header.b=zBon1hg4; arc=none smtp.client-ip=74.208.4.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=finest.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=finest.io DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=finest.io; s=s1-ionos; t=1714663604; x=1715268404; i=parker@finest.io; bh=Xdn6Lap92TRzjIdv/bV1bZFq6oj9fxDr1Ng84N8c8dg=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=zBon1hg4NcQNzSRfCxpPEuY21lKJjOoYcVUkLTXtQWBfXIZ1p1yTrmPm+8Uhdo+z Xq7yJUgTUOajD7cYe2xfvzLRwqMkV3usFNbrRuKeRuLU7zbuxzmtriIQsndX801YR TtoD03zBKw9AfLNtXKgykY9AkmRI0w1t+mDv9er4YETnEsdoJabyIcQC9rlg2N12K iJ1RsP/jnl2Xi2x3abj3wJr9hEN/YZzptleRkPMwiK5VXnbCq8UVW3HlXi1oUcyIH Hi2xZHrwewoMkjhJ44UDsh8aCr1INYt4WlTX6E/zmZoW1NXewgsoDMGNLpiwy5dZR wbxv+AUzsCaGtlVulQ== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from SWDEV2.connecttech.local ([98.159.241.229]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MTAup-1sDqXz0e3L-00UWRW; Thu, 02 May 2024 17:13:16 +0200 Date: Thu, 2 May 2024 11:13:14 -0400 From: Parker Newman To: Andy Shevchenko Cc: Parker Newman , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby Subject: Re: [PATCH v1 03/13] serial: 8250_exar: Kill CTI_PCI_DEVICE() Message-ID: <20240502111314.63d66b54@SWDEV2.connecttech.local> In-Reply-To: <20240502144626.2716994-4-andriy.shevchenko@linux.intel.com> References: <20240502144626.2716994-1-andriy.shevchenko@linux.intel.com> <20240502144626.2716994-4-andriy.shevchenko@linux.intel.com> Organization: Connect Tech Inc. X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:aYTPzpuKTAky+KwX9aJTIWey6lWeDhLhNW+akQD3uatwCpcmWyN FRniZhDuLe//hy/nXndYTnXbPnqsK4JgijurtsazDWo0525+dqLD60dXZ+ZUoS3pLMiF0F1 SuzJZ55B+Y0hz0rNP+JDLNzfygc0x0m/sXNR9r4HntKLwtwWF4Jeg5aEld/ZbyF8gsINnPb 0FHL8S6Dg+p/f1KKf8ktQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:tBVLFZH2foQ=;j0Zh0tu/j0MEz628iIGs21qF6e/ 3eikaKo1QEiCGEceoviTxIaX7O38N7N9k2GpQN8LdVvJoiZJLeV28PO/LTmSYrmuLfgWJrdhg 3J7cxoFVXep4KTYexq7LW0sp/IbS1PxPYCb4LmJwU57sQb5OHiQunD6/5IeB8hegTBf4qfrMy mwtIAFpyda6Q+5pH9o7ohUC4pu3M8oNdnMFa82wHeVzprF9chRJYCxcrn/RXG64Dup4cbLefs SyHqyz1x4b3s7enIhtnStvWDJkAFnHYb5MuZeiMPKu/95eTj7laSOtzWJ6/KchB4uzwuDwt51 umj5rXmA48HPza4prbDKyMhHoCH4dJm4vYCF0AgV1zVvV1MeWyiDngLW7euiLl0wHCdMrKGC8 TybFW5XqsgQrz4JcSECaQCsAvoNTotkdZkTJ/lPvEtdp50eZz9FZ/SXiss7q41tTYBQfMYL8y 4tnrq1iSyP7myny4nKKZxFHZHjFOTmeev5HG/K3Df9s6W07jpImpGrWdBLKIxLI65E95iba78 JDdLN56LG4GyU33s1mjXSM6fL9MpZarcAg/Go1A8UgtmdwPCo7UaDIWgMKN7wknbduGu9iJAf GJicgGgUhiW12tSpxLiC+aAa+tlRISe50cwgvUy87iyFHL5yhEvXbxvXq+0wqeIEoWPeM6fc+ 1rKTXdt/oK317SJvdzpr2ChLuHnRgnUN2eaZTGJ9zEdxK54pE7L9poM7EusZ1wpawmfrlh9Uw HQhvLsqxtejMcHIPUJJu5dBBBjw1I73FnaPfgJJqzcUDRcw+FDH0zI= On Thu, 2 May 2024 17:43:57 +0300 Andy Shevchenko wrote: > The CTI_PCI_DEVICE() duplicates EXAR_DEVICE(). Kill the former. > > Signed-off-by: Andy Shevchenko > --- > drivers/tty/serial/8250/8250_exar.c | 19 +++++-------------- > 1 file changed, 5 insertions(+), 14 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/82= 50/8250_exar.c > index 150c4abd92fc..ab0abc14ecf8 100644 > --- a/drivers/tty/serial/8250/8250_exar.c > +++ b/drivers/tty/serial/8250/8250_exar.c > @@ -1737,7 +1737,6 @@ static const struct exar8250_board pbn_exar_XR17V8= 358 =3D { > .exit =3D pci_xr17v35x_exit, > }; > > -// For Connect Tech cards with Exar vendor/device PCI IDs > #define CTI_EXAR_DEVICE(devid, bd) { \ > PCI_DEVICE_SUB( \ > PCI_VENDOR_ID_EXAR, \ > @@ -1747,16 +1746,6 @@ static const struct exar8250_board pbn_exar_XR17V= 8358 =3D { > (kernel_ulong_t)&bd \ > } > > -// For Connect Tech cards with Connect Tech vendor/device PCI IDs (FPGA= based) > -#define CTI_PCI_DEVICE(devid, bd) { \ > - PCI_DEVICE_SUB( \ > - PCI_VENDOR_ID_CONNECT_TECH, \ > - PCI_DEVICE_ID_CONNECT_TECH_PCI_##devid, \ > - PCI_ANY_ID, \ > - PCI_ANY_ID), 0, 0, \ > - (kernel_ulong_t)&bd \ > - } > - > #define EXAR_DEVICE(vend, devid, bd) { PCI_DEVICE_DATA(vend, devid, &bd= ) } > This is not correct. The CTI_PCI_DEVICE() macro is for cards that have the Connect Tech PCI Vendor ID (not Sub-Vendor ID). EXAR_DEVICE() is for cards= with Exar PCI Vendor ID. Thanks, Parker > #define IBM_DEVICE(devid, sdevid, bd) { \ > @@ -1786,6 +1775,7 @@ static const struct pci_device_id exar_pci_tbl[] = =3D { > EXAR_DEVICE(ACCESSIO, COM_4SM, pbn_exar_XR17C15x), > EXAR_DEVICE(ACCESSIO, COM_8SM, pbn_exar_XR17C15x), > > + /* Connect Tech cards with Exar vendor/device PCI IDs */ > CTI_EXAR_DEVICE(XR17C152, pbn_cti_xr17c15x), > CTI_EXAR_DEVICE(XR17C154, pbn_cti_xr17c15x), > CTI_EXAR_DEVICE(XR17C158, pbn_cti_xr17c15x), > @@ -1798,9 +1788,10 @@ static const struct pci_device_id exar_pci_tbl[] = =3D { > CTI_EXAR_DEVICE(XR17V354, pbn_cti_xr17v35x), > CTI_EXAR_DEVICE(XR17V358, pbn_cti_xr17v35x), > > - CTI_PCI_DEVICE(XR79X_12_XIG00X, pbn_cti_fpga), > - CTI_PCI_DEVICE(XR79X_12_XIG01X, pbn_cti_fpga), > - CTI_PCI_DEVICE(XR79X_16, pbn_cti_fpga), > + /* Connect Tech cards with Connect Tech vendor/device PCI IDs (FPGA ba= sed) */ > + EXAR_DEVICE(CONNECT_TECH, PCI_XR79X_12_XIG00X, pbn_cti_fpga), > + EXAR_DEVICE(CONNECT_TECH, PCI_XR79X_12_XIG01X, pbn_cti_fpga), > + EXAR_DEVICE(CONNECT_TECH, PCI_XR79X_16, pbn_cti_fpga), > > IBM_DEVICE(XR17C152, SATURN_SERIAL_ONE_PORT, pbn_exar_ibm_saturn), >