Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4664590iob; Sun, 8 May 2022 21:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLPkdgDGRbtN8jN7+AAxJsvv5oLatAXcGUJNk/NYp/sDdbm9i/nLwSUcjd4rACHQmNLKYK X-Received: by 2002:a17:902:ed82:b0:158:fef8:b501 with SMTP id e2-20020a170902ed8200b00158fef8b501mr14027892plj.47.1652069305170; Sun, 08 May 2022 21:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652069305; cv=none; d=google.com; s=arc-20160816; b=RDtnx87G6cGwgwC1/ORBcEz8NrSLYAiVAqCEz0qIBJQougDsxcdAr8Aab4W7wtSVCM 3pU/hRrGIzF6OYn6k4UBo9J4OZLxY5V3jT9v2Qzr7psaGVQa5sx8GIeUdm/dvitYLnFF FNCM5w9V+xdm+FT7o4ok72aVOeevFCyvkwEqHjOUPDLAYCcEjngDaiROaOPTJNX4ciZc WIMj2dUkfYCYKKjcXf7Bt+BxLdLat5UpG4KOyYwlNHZBNkrZlP64E3nhU+PmYgtMqo93 E6N/js8gxv5nxLD6xyuyBVoBZpndJ9uiWG4SirNhe4dQmAnZbH6xzVR+OQcpHuqcJJyN 4c3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=B05fQmighDBhM9j3ta0EffNXgXsWZWeIfwpEZpctKPE=; b=0B8mmI33mwkitozTNO9K5Zf0rryB4xs3Nmz/B5Ecd9DB1fDwVNiHI1ru87fZqsF6Ie 5SLXYbID5vFHhgf0z/1+/Mj2Xjl3ujHBPOuKivFaq1aRrI4CtrgkgrR4GNuYX/3+3fzI bAeKI2+r2Iqr9nj7IS3v9P7tfvbM6EQYKN7tvGeqxBlxfPOfTxfGRkP8xn+FlssIWNJM QcKp9G4SvuDaoYyE0TxjMC6Njhq00Nxf72/rTAc9F5X17peEMnoWFu0QX4gPLuw9TxMa /79LdoamaMKWxjweSdGK5MDGz1Zp43yEglYIONv/w26dogqnpNJGBRSxoC/64maPZ+rU 0fTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YdViTLUM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h7-20020a170902f54700b00153b2d16403si12152496plf.11.2022.05.08.21.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YdViTLUM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 57BCB4FC63; Sun, 8 May 2022 21:06:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386087AbiEEVrw (ORCPT + 99 others); Thu, 5 May 2022 17:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386089AbiEEVrs (ORCPT ); Thu, 5 May 2022 17:47:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A6A05EDC2; Thu, 5 May 2022 14:44:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7CB2C61F0F; Thu, 5 May 2022 21:44:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 358E1C385A8; Thu, 5 May 2022 21:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651787046; bh=epemp84j4xj21AKIY1Y6/uEGtGWjrK9bsJzhHmU8nk4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=YdViTLUMWWNFhptNqUPe/CDvcg3vJPSAhcTKuwkx6pGLKcQFoYIUujs5zIPtxeVPz fiMoQgcUqHqa6NogLYfdihJti1NmWbx9CEk6LAr34SJ3Skkqz1Qa8iXagSjg3XGTTJ ZdsVnmc9OMjPsNnmf3+SS/AV8vhLxS0+MTqjAcuxBALQx2F4eXkCARE6L/A7ASQeWo cADc0aj0Tc/0rwOklZ4R/XpNmNIvyUwQlKC5QmQgimQEYjMvdiDh+zY/kh4rdSiwjR 09OW5+b+NGJC9Ucj2KuLNRSx/jKdpAOgoiIxG2H5yhXSQ5nCcv/ARPEzKT5oksMTrF NCpl59yv+xf2A== Date: Thu, 5 May 2022 16:44:03 -0500 From: Bjorn Helgaas To: Niklas Schnelle Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Bjorn Helgaas Subject: Re: [PATCH 33/37] PCI: make quirk using inw() depend on HAS_IOPORT Message-ID: <20220505214403.GA517655@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429135108.2781579-60-schnelle@linux.ibm.com> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Fri, Apr 29, 2022 at 03:50:57PM +0200, Niklas Schnelle wrote: > 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 After capitalizing "Make" in the subject, Acked-by: Bjorn Helgaas > --- > 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 >