Message ID | 20230703135255.2202721-2-schnelle@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp555336vqx; Mon, 3 Jul 2023 07:13:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78qrdXajTf3+XWbnrHp02yHkeqgyb+zNZKeUYQUKrSz5Y3VHLPS+ldwGBG5sFbWipJzRn9 X-Received: by 2002:a6b:1494:0:b0:780:cde6:3e22 with SMTP id 142-20020a6b1494000000b00780cde63e22mr10687465iou.0.1688393630206; Mon, 03 Jul 2023 07:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688393630; cv=none; d=google.com; s=arc-20160816; b=QUEmcK4XULtz5egMBI3qYFvFuApHIbpgW3u6cUNRNYFpfoZKT87yNwtGaaNChhOszu t67nJ54RoTKeP3CI3CVUznC9qReYaR2yen+YFpW36fm5HbFnp/VZ/SDmYeke7kURmgzV S4iGFiIZ96BT3kXmAbvUqzPKeVojMF3MuEacKZQX8vfARif8swco/nnjczHmb4d8B5Ub hmldIGS49fl0dKcPtm4C5tO/XRqhqv4+RNanWk9ri2DX0+l1u+7B99arQVRuOHmtVYOh 8IxAO2oFa2pRTnrdCLtrWL6puFkWdrnUhV0IAT/lERkIdViYgPK3LBdrPXjVcKF0HDyq eOUw== 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=18j0m/ynOHQa4pbhGiId88z2r+xMr5jNzJOlwfD4qhU=; fh=MF1qQLg0laKClmXe/aTx7xuDCb6JvNmW1GVHxaYRWxA=; b=npEM5uCnO0NxxqQriQpCCkZv23TfRcN1J7xETegrqnz6bcX+o7oulGEf1X0fwpkuES CRydTfAauGuZkmZ+xq2GdEhWYQou+w1hJWs3SObn+iGoj49a/QPMQv8Iy/ucGoYUMvWK NiCk6f6XzRfmI1GcOupsX4Q4VTabQRwuRgFKC0aqNq/bVFVDaD0WXxbJTZ66LbevXKW+ jVQeU5gm72eFGihd0lwQq0Z7S+ixYK1EoF7zxv4IJ80ZCqif4rBQNLRDX+sn6yNND5nL Yych1hzJHLwRKqGrWjn9DQ563Q4ivddb9Scacyx4iTtsiIAwomJMgN0sWTwAotiIU+LS oBxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=rwU80ok2; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x63-20020a638642000000b0053fc9f253basi1157890pgd.403.2023.07.03.07.13.37; Mon, 03 Jul 2023 07:13:50 -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=rwU80ok2; 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 S230197AbjGCNxh (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 09:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjGCNxe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 09:53:34 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42825173C; Mon, 3 Jul 2023 06:53:03 -0700 (PDT) Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 363DlVXx010963; Mon, 3 Jul 2023 13:53:01 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=18j0m/ynOHQa4pbhGiId88z2r+xMr5jNzJOlwfD4qhU=; b=rwU80ok2f423X+tGCRGQmytAgbKZh4I28NFX7xqWGCHO1qCwxtppEzEYvNXzMoOJ4dJ1 zkmx0zAJhKLtTHt7TyXEQZU1h5wE2r3IXTYefhDD4YTN30J9y+e9T73HKprfzdROumQm HyLUjrxkjslfC/GTwKOBpeSPcSreCE2mFlCaBMvkxZX36vTggYlEp3K1zbnUYCYT5sSz sHYjK/k5j64guAKIQMl2/b2jzWOH4ryl0Mx01LQRJzbiknV+CG8lOV7ZQj1A1QsZmvHz BjGtXk785weyU4wJk7UUFldA9+Y2WfF882Giya7bDNeyCZd3NyYwFZj7lwbeBrxFWnhw Jg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rkyhc039s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 13:53:00 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 363Dn0GK015531; Mon, 3 Jul 2023 13:53:00 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 3rkyhc0396-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 13:53:00 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3630bvPV021475; Mon, 3 Jul 2023 13:52:58 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3rjbs4s08u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 13:52:58 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 363DqufJ20775466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 3 Jul 2023 13:52:56 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0988A20043; Mon, 3 Jul 2023 13:52:56 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C4ACD2004D; Mon, 3 Jul 2023 13:52:55 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 3 Jul 2023 13:52:55 +0000 (GMT) From: Niklas Schnelle <schnelle@linux.ibm.com> To: Bjorn Helgaas <bhelgaas@google.com> Cc: Arnd Bergmann <arnd@arndb.de>, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] PCI: Make quirk using inw() depend on HAS_IOPORT Date: Mon, 3 Jul 2023 15:52:54 +0200 Message-Id: <20230703135255.2202721-2-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230703135255.2202721-1-schnelle@linux.ibm.com> References: <20230703135255.2202721-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: EnYWAN0rm930nPBhxVZAtmQGjC_kRE0U X-Proofpoint-ORIG-GUID: i1IwCSEoaiPLoDOUAfNLGujB_s5hdf5n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-03_11,2023-06-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 bulkscore=0 spamscore=0 clxscore=1015 impostorscore=0 adultscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307030122 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770409039146687541?= X-GMAIL-MSGID: =?utf-8?q?1770409039146687541?= |
Series |
PCI: Handle HAS_IOPORT dependencies
|
|
Commit Message
Niklas Schnelle
July 3, 2023, 1:52 p.m. UTC
In the future inw() and friends will not be compiled on architectures without I/O port support. Acked-by: Bjorn Helgaas <bhelgaas@google.com> Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 321156ca273d..ef193661c3d1 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -361,6 +361,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. @@ -380,6 +381,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)