Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1192974lqm; Thu, 2 May 2024 07:47:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIHGCxHQcQHq25RMuVx4hLiIRiivujdXNpAh2IxQ7/bC7dvvi33i+2NCP7jnWT4Gi+qYsmEEV1prv/7OiFnYHYEkocwZ+FrWOUZRMxHQ== X-Google-Smtp-Source: AGHT+IHKChAEHPW+FKfSKu78XfxeB0N8Ya+/Kf/nMgGbIKo7BV3krT4EXjyr9yli4QlK8uIzRF8U X-Received: by 2002:a05:6808:279a:b0:3c8:3019:c32e with SMTP id es26-20020a056808279a00b003c83019c32emr44332oib.17.1714661246442; Thu, 02 May 2024 07:47:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714661246; cv=pass; d=google.com; s=arc-20160816; b=G3h+uO+Qnh1N73NcKUCJX0PfsvS+7aisUjjqtkLZ/1w07lfbMmyBtQLqHmRV2mE+lm nNjpePquP8dhesNUz8CkthJnlKlTSAlCRDp91llP7HoHjyRoSqWLZYVy0ugf2FTO2im9 XnqW4HgrIHZ6e/GtbrFIm9uQdyq5V0qF6e735q/QAbDaviIXRSakSBKo0STzq6YOTvE0 XwDmS55NcvCp2Lv3LdRUl5k0uWvED6CuAHkDN9VTWagOxKVDjIhNSMX49ER5EZ1uDTdG +aT3OIgiOFhSuJKJOkks0uGOc3eAimMZ6d4zT2zy2/Oe1RzPXg4/YJS7+b5vNd1i2c2p JtXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=H7hxF/KywqIWNtMPqXjafH/2KqTA5AF2rHP/DHBylbA=; fh=iJf5csy0r5ybD7NaLRHWR20RoYCcjF+JTLc5MGZ+RdE=; b=lOp0rZD021ETbqZU3LLGoNFqOOMtoiVF9JNJTsgia2dUU7tvCe/P4AWEXBXVY4S6gO 4CxlzOWEF64/lcDXuSZ4ouw7kT/jD7KS122L+kk3wRWLetBxPvYLK6t+rKO2JBw2uBlc THyLkpbJ/TFXxjMdJKOLZJmT7YKg/6fJaQdpwNhq1toUhj08LpGQ3Fs6IAnVZH4ycULq GcoRqWTSIdOFzCBY5xM3yyLnNgi+AtVHKGTHzq5SQ0mK1gr6SV1ECWdichW1B8QkUIB+ /zAr15i6Y0Lp1zn8EjB1KFLZEnwgnt0jROciRZnfbFiV+NyJhxO7z5zmNcJH7sEucJyQ qw1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A0YExunH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b3-20020a05622a020300b0043aed664488si1121471qtx.54.2024.05.02.07.47.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 07:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A0YExunH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 1FD931C21E5E for ; Thu, 2 May 2024 14:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9417B1552FD; Thu, 2 May 2024 14:46:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="A0YExunH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 D599915380F; Thu, 2 May 2024 14:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714661199; cv=none; b=a5GMkyezCWwCLi7rdRWOFrFAgSV6ddn7nNrSXq4Q0Q+jFrAsCfLw83RMVCMqYh3Q2JqLkGgtwhXUfLWrXqT179GZg2e2bQQC185iO9rTrxMDEd89S5crP0VfyE/uunmK9oTNScF1SFgFo6Hsd1gqNxS1frmQuxtP0fXGoSJlCC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714661199; c=relaxed/simple; bh=MNevgiHkmuCG//FLCxCfm2v7RKLaRbqWb2DHuURYI4c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K2K2LL1vetQtbl0oRZqOgsVIEriYhYCBaUND0y2jHYykMRrbBAbWtnkGqAU97W75BChLkm2uSxaU3EYQKZ9J2kn/AlEkgOm7GYRG+NRjJgivO0XnJ4aXPONWR4Y3J6EImBQELQeymh/ApKJoqhf7iY+EBvZSEPI/OqhgQRUeidM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=A0YExunH; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714661197; x=1746197197; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MNevgiHkmuCG//FLCxCfm2v7RKLaRbqWb2DHuURYI4c=; b=A0YExunHNrfAX9vW+fEn9kWNL/UHKSxBMz3Wk6uIrTY+ELm7cBszWYck 2j+lDfBsjN2Zkwb+4S74R1Ltu/rK6+RMZOlj2UwqfWo9zaUQBNOqUd1d/ wXuKeuDS57fmI7XEs7hiq+aqbO/6YnGX0xKrU+CiEOx2PigKvLEOKC90f fSlLRSsbiPxIJWEVxMwhhBASxqDmin3D0T+nmh3Myhki3HOrgDhNkeVNF l1rT/V2Sv5Ll6ZyLMHHmvMSbTmA6QMUmd2XyrlVoLiiEX9P/Y3+FuWAJ/ ZyMwBUFij3VyeYdmc3RAgfFtojp/rs75CQyff+rGPzgqgMKxuAEMWTyso A==; X-CSE-ConnectionGUID: KdfRmQtuRxiFDvQIeZBLbA== X-CSE-MsgGUID: 3oUMpcGERiWhTzFEldt5uw== X-IronPort-AV: E=McAfee;i="6600,9927,11062"; a="10306073" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="10306073" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 07:46:34 -0700 X-CSE-ConnectionGUID: LOXpM/xoTNS3EhxQvU/jNA== X-CSE-MsgGUID: 5k9v+jPRTbOPJDH7ZomXuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="31632825" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa003.fm.intel.com with ESMTP; 02 May 2024 07:46:32 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id E089B21A; Thu, 2 May 2024 17:46:30 +0300 (EEST) From: Andy Shevchenko To: Parker Newman , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH v1 03/13] serial: 8250_exar: Kill CTI_PCI_DEVICE() Date: Thu, 2 May 2024 17:43:57 +0300 Message-ID: <20240502144626.2716994-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240502144626.2716994-1-andriy.shevchenko@linux.intel.com> References: <20240502144626.2716994-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/8250/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_XR17V8358 = { .exit = 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_XR17V8358 = { (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) } #define IBM_DEVICE(devid, sdevid, bd) { \ @@ -1786,6 +1775,7 @@ static const struct pci_device_id exar_pci_tbl[] = { 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[] = { 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 based) */ + 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), -- 2.43.0.rc1.1336.g36b5255a03ac