Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp509112rwd; Tue, 16 May 2023 04:23:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6h4n0Bix5B0FXi7eGcjT1sR5afS1ZmjRJ+2Ah+Q/KQy7mfwM16fyw/2vw4x4fPdzgYN13h X-Received: by 2002:a17:90a:8004:b0:24e:5245:6383 with SMTP id b4-20020a17090a800400b0024e52456383mr36230379pjn.23.1684236198220; Tue, 16 May 2023 04:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684236198; cv=none; d=google.com; s=arc-20160816; b=Z82oagJx61RtyiiFEgP/AJLebXOCpX4mIGvRTyq8ou89ivr1bgyWOYSsazDKqaZlxB ln2rSAshJbbToRM8F91sJBWc81AyK/dC//uh1VF90h3sbWPC83Wr0kpBFmIY990ecvNz 9kB+WFZH6et5ok4VjXBJDReKdqCQXZPfW4j8skgUg1YDUH+GvaJoxWbKiXBLFmlASbmj aPSIaTMiYK/1V8MfCh1L3/FrZBIedDleIK6R4VscjJ9yB60Sqxw3MFWC4RqB5P3hY2qA iCmpf83pAEYtJ5aR20H5z2d8vAcCueUOiEWOO8Pce4vS6M0MK9UpYoQnoDKc9es4+ydA NXvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cRwDyTs23RrwIKduskipf0l0ugXNo9AE6MIoy0cvmdE=; b=bs7vG21xywkDMbGRm0rWONtMbU5X/HTfDARr0aQG3rBQNT7S90TXrxg1BhEqU5BGVw VSsXJzCOK2etss+fAekxkzrQFL18J+dbfOy04Pc6r7/qZ6wbEwwUIzW9DFUxon1uDcSJ uoj0+0BB7LQ4eHN9f/tgeISS4AarkXK/T/pdFxE/NuWx7RhVoGc8mxuj6F4yVEv+dPOc XD0PZ18lZUMWYSnTX+srlIxLv4ZmezULE5Ex4ohh754EkmH2zL9n6k0GtGQT7z17FpLA NlDy0mMupEZkAIeY25zXyDCfKv+AeG3/To50waaS6/K2+o/GVR3/Bs0gDuaXl2PYN0UP Dvlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=joFtr7+2; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl18-20020a17090b121200b0024df69fdff6si1484796pjb.168.2023.05.16.04.23.05; Tue, 16 May 2023 04:23: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=@ibm.com header.s=pp1 header.b=joFtr7+2; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232626AbjEPLCx (ORCPT + 99 others); Tue, 16 May 2023 07:02:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232592AbjEPLCE (ORCPT ); Tue, 16 May 2023 07:02:04 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E570D5269; Tue, 16 May 2023 04:01:16 -0700 (PDT) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GAr4FL008868; Tue, 16 May 2023 11:01:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=cRwDyTs23RrwIKduskipf0l0ugXNo9AE6MIoy0cvmdE=; b=joFtr7+2TXv+4X1mvNEDyroDAHKypvhykG9LM33dZVisWkpl0fBv2UaZAzPntb/1qyf8 E220eCLL2m95P5EB/5xRM132MYmS2z67691v6oclG8RW2dH7eXURZnCrFQicuKFyepZe eDO5EyD4fl1SggOlKE9ALgG7XD4ivq049vswULTi5u9ABmXpe8JNGgHUU2jVainT0gyg GFURYDCQpkTpx6XC8DkLy7XT6i5WszDINL/BPOGx3nFGrRj0L8fDfpX19fj0EfITAPh2 SKoIM3F6q7jcPDX36v3zJkF5PztuRBNgSnDGyZfrUdDIiDY+YHY3K/BPqfOHxjr87qGc tw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm8fbg6sa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:04 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34GAt3DT018992; Tue, 16 May 2023 11:01:03 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm8fbg6ra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:03 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34G2wIsi009276; Tue, 16 May 2023 11:01:01 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3qj1tdsjrc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:01 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34GB0x7L8782368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 May 2023 11:00:59 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 64B1A20043; Tue, 16 May 2023 11:00:59 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE6CA20040; Tue, 16 May 2023 11:00:58 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 16 May 2023 11:00:58 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Bjorn Helgaas Cc: Greg Kroah-Hartman , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann Subject: [PATCH v4 22/41] PCI: Make quirk using inw() depend on HAS_IOPORT Date: Tue, 16 May 2023 13:00:18 +0200 Message-Id: <20230516110038.2413224-23-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516110038.2413224-1-schnelle@linux.ibm.com> References: <20230516110038.2413224-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Ibrn0fY5XHIre5foHQysxvgTrYaQDP4w X-Proofpoint-GUID: FqYuV50yRnP9H7X0WXioxSD-QIy0Io6L X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-16_04,2023-05-16_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxscore=0 clxscore=1015 adultscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305160089 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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 In the future inw() and friends will not be compiled on architectures without I/O port support. Acked-by: Bjorn Helgaas Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so per-subsystem patches may be applied independently drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f4e2a88729fd..81fb75f128f7 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -268,6 +268,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_2, quirk_isa_d DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_3, quirk_isa_dma_hangs); #endif +#ifdef CONFIG_HAS_IOPORT /* * Intel NM10 "TigerPoint" LPC PM1a_STS.BM_STS must be clear * for some HT machines to use C4 w/o hanging. @@ -287,6 +288,7 @@ static void quirk_tigerpoint_bm_sts(struct pci_dev *dev) } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGP_LPC, quirk_tigerpoint_bm_sts); +#endif /* Chipsets where PCI->PCI transfers vanish or hang */ static void quirk_nopcipci(struct pci_dev *dev) -- 2.39.2