Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1852211iob; Fri, 29 Apr 2022 14:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJDsRnhu5yVFIcC+95ibysORYhOgO8TdiP2Knk2rK0cCZw5l1fyFRBq1xXbkBjlzdUiaRk X-Received: by 2002:a05:6a02:289:b0:3c1:9514:1320 with SMTP id bk9-20020a056a02028900b003c195141320mr978127pgb.446.1651267989620; Fri, 29 Apr 2022 14:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651267989; cv=none; d=google.com; s=arc-20160816; b=h4CjWYUyHBRbrsQ6Cvyt1KzDUp+oMW7Ihl512z0PGtxmK181FD1RGEeachua+1iwHL +RWQXM9i4Sp977kpdcM8QD8gL86+J4u8A9w/O+yilfsjQfUfQGGM2wZAiWBwYp2oSNc1 U7f1thz1nD4PuPqlaR/QBbSoJ0kqdZcg+imLYTLn+FpiIizOmJNaWdVQAHHOWMeEGCKx VGyezJdax6Tp+xTSnpbvaUtLgp5vYWWq1c2wz/dsVh9ky3LJtn8YMyejZwWgLFOUIDgg lazshy+8jmxrSaEiUBSx497ou3HfbMGNhwrOQ02JEL9cnxqMVOYXMchzvs/EQKAMQ9or 5eog== 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=hGcFIVzKosWhkgnw5irhIGGP6+NnFgy0NK5MJ3ZwzUIbGGz9ec8ffgB04Z0/TRaA7t nmbdpbSNpsRxcw8TQoQcrXmYgDNdecR5SZWSAQID1JxLJptr6qvuwYDQTRfeXxihOehE VhRWoZRD3YzdLlYf2d84RxpLWlBecHrmVZZWq66lHbSya2AeMD1oyJ3yItKKyUU42eR/ XszdDCgjqOJFTayAW/kJTiOH4djCa3DrB0mkB10CdZ7Z7CsYoUT23XQasq409juZwPRk MZ8SfFyv9XT5z5GdjE3cOrF2UpO6dJA7mFK6XJ33JkxHd2f0Gai5H8I0N0EOmjPSOo6Y GGbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dRCrv6Yg; 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 l2-20020a63ea42000000b003aa4269d196si7812271pgk.815.2022.04.29.14.32.53; Fri, 29 Apr 2022 14:33:09 -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=dRCrv6Yg; 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 S1346050AbiD2N4y (ORCPT + 99 others); Fri, 29 Apr 2022 09:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376613AbiD2Nzv (ORCPT ); Fri, 29 Apr 2022 09:55:51 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53246D850; Fri, 29 Apr 2022 06:51:42 -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 23TBh1r6027268; Fri, 29 Apr 2022 13:51:38 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=dRCrv6Yg3EYUKJaTMKjV1MnDYXJrD2IC9y9NDqsT5Ru++1sy5uyIut4xX8uCVManVnqT GMeUy5rWw6oTPOxRZ7w6Br2KWK/4H66JDOzvUgEbgC/PYJwvqewUddgvcy/IVxwrHKIr qjX3Z9bS9IfOjweJTgWAPUhWNwzBtvJSoTvRLrTk4UGWCnr1frMuHDl5iPU6n4rvVD7X 4bpJKZF6HOVudNrFxohAjv2i0UiQNLxg6TZuef8ucka2iZ3xkksGLmXVptLOJMBgsSSR gTaLXtRG/0Yt9AfnNvCqNyG4RsmYi6AKCLagJd4pLJtsy5LEJs4RkzytfSzC7y8xBSUi cw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fqundujr4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:38 +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 23TDYV0b012908; Fri, 29 Apr 2022 13:51:37 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fqundujq5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:37 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23TDQwEU016021; Fri, 29 Apr 2022 13:51:35 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma02fra.de.ibm.com with ESMTP id 3fpuygb96w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:34 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23TDcOlE50594238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Apr 2022 13:38:24 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C38D54C04A; Fri, 29 Apr 2022 13:51:32 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 79BE04C040; Fri, 29 Apr 2022 13:51:32 +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:32 +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: [RFC v2 23/39] PCI: make quirk using inw() depend on HAS_IOPORT Date: Fri, 29 Apr 2022 15:50:37 +0200 Message-Id: <20220429135108.2781579-40-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: Wkxm8eTbPwH5Gr9LcRQlpiMyRxghJw0a X-Proofpoint-GUID: YL_CS8ZYqBjyVKGPZH06IAywHY1fPJ2E 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