From patchwork Fri Jan 26 02:50:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunwu Chan X-Patchwork-Id: 192357 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp409635dyb; Thu, 25 Jan 2024 18:51:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1s0Atd54JueaSoNxRnC/9VF8sJ3x3gV9C0LBMLxjnzOw+dWD9vT3SVyUhRGCcm8S182NH X-Received: by 2002:a05:620a:28c2:b0:783:3e1f:dc92 with SMTP id l2-20020a05620a28c200b007833e1fdc92mr706838qkp.156.1706237477020; Thu, 25 Jan 2024 18:51:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706237477; cv=pass; d=google.com; s=arc-20160816; b=xK5XZeKPokkVwUm0vualfV2hlb4nZvqUDWITptHKmAqEBS8oWOKPOvQ+sF02fQsYOB wQnLN4UfknwqaG/56me0araFfFEbiLpJLheC8fw30voXBrusfTlHi5xfT1weelEpyH/L HMqtZt/BOwwq+82hevWFyQdWpzKb1eeq+rBwpMTlO11q5oA88wH3DMfD+Uph50M5mGzR 10WMY6jOVnIVGrliFnL9wRVvzsdxuEE00GgEITWFJUCvvvlu/F0h6OLiABYWWbwoA2ZJ JWiUvPug+6DZ6OJSbFl39YFSf5vtkUkNInq435mNi8c1izuwocCJTmL1J66tsOT4QxqG Rojw== 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:message-id:date:subject:cc:to :from; bh=I4vuq13/2cfo72w+4sG6Zdh27iUPEU1BQs0ZOaYd6f4=; fh=vRbHvZ+tnxC90vVJcmBHnHrvglW9FXV+QTVyG5rDtlc=; b=a4MFRinnFjMycdR8xYT/uUDM/tp80aIVLIXJexuKwSJJLcEzb0ykjx+pXwxdryp6o5 dFal3CZPYGtMsNMc1aAWlC37ZWw7YbCgDIfhUb/QZf6tM9FrDRAbyT3vBP7nD8xR5Kke 1V977aPMIqkiEKLpyFoo8O0hQRl9neQeuwEpEJnhHzxUSEvvcyo43FliRffEUuAXaBdE /mdxX7h5/CVXM8StUG04fJRLkvMhPQGbSucctcavdCNEQEP5Ja8glgOZZCQDs8OePAY8 BJ9WX0w2WajsVsGLJgfzqBDyoUS3yYKcP6MGMraBcoaQQreGZrT8SjXpRah7M6/b5LKn 6A0w== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-39553-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39553-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x10-20020a05620a14aa00b00781bd7ade5dsi359731qkj.578.2024.01.25.18.51.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 18:51:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39553-ouuuleilei=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; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-39553-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39553-ouuuleilei=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 CBDB31C20950 for ; Fri, 26 Jan 2024 02:51:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF784AD31; Fri, 26 Jan 2024 02:51:02 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 7C9788831 for ; Fri, 26 Jan 2024 02:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706237461; cv=none; b=tT/7f5ximOAsb/x68HhYynbZnn9mXVjcg6cpeZJOOqV7l9zirA00EwI3WOQWiyRt46w6YzTfK38MdYHZFxUhexOLpgN3OvUKujuO2s4jDAcv2+/+Qnl6p0MDGfdYYoWZOHSke1LzQPHv1Bpa8IAdmzudnA5tYR8q6zl8MQ7ulaA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706237461; c=relaxed/simple; bh=KQUvtX0ZfbnWVOk035tgQ4o7IIlk8MtUyOtRZNgyZ6U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=S0jvAfJTy0qfJ2ojHm87AI47T3pqUj24OZLht09JSgAk/9qbxuO8/UOcX+ryq3+Drt3dTksAJFeKEdiJ+iZFgr/fbKojaV0KG3odSlVwMKzi5OBhmDedRGjeZ6Kl2iw7pX7Ol0SCz5u+DI/Bx86e68/81xozf9xHx0KA69zQVBw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: ee05abc1be3c471f93bd095ad4e0dd41-20240126 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:cb6c19f0-5fdb-4c53-8deb-7b37278edca6,IP:10, URL:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-5 X-CID-INFO: VERSION:1.1.35,REQID:cb6c19f0-5fdb-4c53-8deb-7b37278edca6,IP:10,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:5d391d7,CLOUDID:21564583-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240126105054IZJ80SSG,BulkQuantity:0,Recheck:0,SF:66|38|24|17|19|44|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil ,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_FSI,TF_CID_SPAM_ULN,TF_CID_SPAM_SNR,TF_CID_SPAM_FAS, TF_CID_SPAM_FSD X-UUID: ee05abc1be3c471f93bd095ad4e0dd41-20240126 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 466960604; Fri, 26 Jan 2024 10:50:53 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 92B07E000EB9; Fri, 26 Jan 2024 10:50:53 +0800 (CST) X-ns-mid: postfix-65B31E0D-372088737 Received: from kernel.. (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id DF9CBE000EB9; Fri, 26 Jan 2024 10:50:52 +0800 (CST) From: Kunwu Chan To: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] powerpc/pseries/pci: Code cleanup Date: Fri, 26 Jan 2024 10:50:30 +0800 Message-Id: <20240126025030.577795-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789119668715018118 X-GMAIL-MSGID: 1789119668715018118 This part was commented in about 19 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- arch/powerpc/platforms/pseries/pci.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c index 1772ae3d193d..6dbc73eb2ca2 100644 --- a/arch/powerpc/platforms/pseries/pci.c +++ b/arch/powerpc/platforms/pseries/pci.c @@ -18,33 +18,6 @@ #include #include "pseries.h" -#if 0 -void pcibios_name_device(struct pci_dev *dev) -{ - struct device_node *dn; - - /* - * Add IBM loc code (slot) as a prefix to the device names for service - */ - dn = pci_device_to_OF_node(dev); - if (dn) { - const char *loc_code = of_get_property(dn, "ibm,loc-code", - NULL); - if (loc_code) { - int loc_len = strlen(loc_code); - if (loc_len < sizeof(dev->dev.name)) { - memmove(dev->dev.name+loc_len+1, dev->dev.name, - sizeof(dev->dev.name)-loc_len-1); - memcpy(dev->dev.name, loc_code, loc_len); - dev->dev.name[loc_len] = ' '; - dev->dev.name[sizeof(dev->dev.name)-1] = '\0'; - } - } - } -} -DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pcibios_name_device); -#endif - #ifdef CONFIG_PCI_IOV #define MAX_VFS_FOR_MAP_PE 256 struct pe_map_bar_entry {