Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp156956iob; Mon, 2 May 2022 15:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAySzuxjwJzfj9/6xhvuwqSPzb2vFgZ85ckpVjfyfnWTj9WceAQM7ZpL9QhjW6PlvXEUi4 X-Received: by 2002:a05:6512:1389:b0:471:a7fa:d5d3 with SMTP id p9-20020a056512138900b00471a7fad5d3mr9904542lfa.667.1651531760043; Mon, 02 May 2022 15:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651531760; cv=none; d=google.com; s=arc-20160816; b=0oFvRDZU2abFMdtWsn6Z4bd2K1a+LY8kBYojVQhkK5faD6rwzY0oh2/yTgOoE9XorE MtWcRjMRowjcQ2l59+Orm0GE/oUzKUNlGQzAWw812GvImkJfpYZFosGDUdBwAEy7w6pA 50mhR3xLDl86agkkhjdZZt8PcQG7YunGaZqVCCZGfSr2khtrBAE7zYcfPlnmu1KO7GKS FSZwzDyethVDn6SCy3aX0DbLElKGxZHXqwYIKqkanmeYSIN3lebPN0SYxPiSQ5HA2QHK 53zjidl8fJXqnZJaFxhUYK113EAYHwWdvtVkJT72pwLdz/lap2Dy1eAFpAa2ZBX0FTOc LNVw== 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=5IvyXxtKR+xlL08USfg9mK2J++R3Ob61Vdh1snI5Wnc=; b=CbDk8YzRaMR5LiL9cXB7/T6tr7e/4HFoI0zcNFCBkHPOhUEfzbuwA1a/d9V4sLy7Yv nhFrEEClNe4I3FUUGmHpgpm4PzPrsQsW0OUY0nCrjPT9jnPQJ2KWefqEAdE7y1Cj+YgM 1dpjc8i9DcRFBqXiB6NmBI5MKdybRZ1iW1E6Ix/gyipYGF4JWZFLPfwlPnd1IHUPUr+I nqg1gYlTVcz7If30GUqluR9oGM/Zhr7M2NSD5gDQvO0093F6bKVNjLJHnoK8WXYMim5R BkhSzl9DtbkDHcGs6Hp6Mcq4M4JlpQ2IPL5TMIkBofPLxmAanNsUTmMyVW0O1deRzDBd duEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HVld1a7w; 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=NONE 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 p12-20020a2e804c000000b0024f0001f987si15408722ljg.502.2022.05.02.15.48.53; Mon, 02 May 2022 15:49:20 -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=HVld1a7w; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376969AbiD2N6z (ORCPT + 99 others); Fri, 29 Apr 2022 09:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376744AbiD2N4n (ORCPT ); Fri, 29 Apr 2022 09:56:43 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42430CE4B5; Fri, 29 Apr 2022 06:51:54 -0700 (PDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23TBqiSs027102; Fri, 29 Apr 2022 13:51:50 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=5IvyXxtKR+xlL08USfg9mK2J++R3Ob61Vdh1snI5Wnc=; b=HVld1a7wFyEMLwLzb4PKvmNG6xmmh9LN0ZIB2EdN2a4y85wArW83MofRvkdGhuldrTp1 B8q5PX149HJs9kvTXYwmMWBiLyyjOSrjmV2tJUWEsTUlvXYEKhL2Y0TxwGG61a0now+K icBd0HTSU3M0cbgBDytlYi8/1k4PS7nzE4U+vkkhJs6LHZszEuCXYapKG6jg3ilaDCLj h1XoZn8jFECgnt1gKOKJQy0QmKNPBC0UGHV4auvN25q+jrVBcirltlOr5Opj07pKa4e/ hqaltjT5h/pkGo50vMEIAL/6ppJ9+dB7NvQDe8Bbcx3SOQ2O/xlaZeWLAdv9A5PDHA7b 2Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fqundujvn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:49 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 23TDfe8e014772; Fri, 29 Apr 2022 13:51:49 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 3fqundujuq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:49 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23TDRu3N004596; Fri, 29 Apr 2022 13:51:46 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma06ams.nl.ibm.com with ESMTP id 3fm8qj989a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:46 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23TDpiXJ46203226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Apr 2022 13:51:44 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 297294C044; Fri, 29 Apr 2022 13:51:44 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D467E4C046; Fri, 29 Apr 2022 13:51:43 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 29 Apr 2022 13:51:43 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Bjorn Helgaas Subject: [PATCH 33/37] PCI: make quirk using inw() depend on HAS_IOPORT Date: Fri, 29 Apr 2022 15:50:57 +0200 Message-Id: <20220429135108.2781579-60-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220429135108.2781579-1-schnelle@linux.ibm.com> References: <20220429135108.2781579-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: -lESLlLa3VE2IXzG3UDUF4XITQi2kOHZ X-Proofpoint-GUID: YtG0Pd-3KI2ITcYzFM9Nhj8UddHcBTJn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_06,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 adultscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 impostorscore=0 phishscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204290078 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 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. Co-developed-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index da829274fc66..27db2810f034 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -265,6 +265,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_1, quirk_isa_d DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_2, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_3, quirk_isa_dma_hangs); +#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. @@ -284,6 +285,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.32.0