Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3361649rdb; Wed, 13 Sep 2023 09:40:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZS0BiT/RxDtSp4Am06rg0UjQM1SPIKowahHxw6Kt89Yz5IBd4IDpD/AiHt1m9EWHkY5/Q X-Received: by 2002:a17:902:7892:b0:1c0:e6e1:4a11 with SMTP id q18-20020a170902789200b001c0e6e14a11mr2779380pll.54.1694623248737; Wed, 13 Sep 2023 09:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694623248; cv=none; d=google.com; s=arc-20160816; b=kpLFvZaWa7yQmLGANqRgaWXIbzFrlnWXhur+8+2cLUKDvqygQmj1ARpNNly5fwG8Aa wbOOzncqz3OfJJiHugJya6xTL0P2VuHas8fCy/d/wToLGXd6zsHuCvieNExIbVFz9u6W dtCgPV4/SBLZoFh3xzFFpnS/ni7llPJ1Si2iaaAJ6lJsjim+SeukW2iDX2Xvp/mIggwI Gb/Fa8CLhsRYuPVNFLvzGl3H7AXbHjNuHF+zDe3IfWWrKPFj8xYw85mIYJQyLXRh+vhk 8MVrQHZr1qfkLrUn0bZvs8UlcqtRii1Ymhe7sjOE9H+nMkmkoD3QaqivkC050rYAazJ/ mj0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=D5O7vl8jnr3TbC8pAcG/9qnx7WkVEXNXVnn0FKA0Gu4=; fh=x79AH5v2oUou70Nv1pke+6Sgta/v/4hrWPDSDgJXY1k=; b=U3SB4ZO8VJ9rj8Vdohs+zjqPZRXRgTjuoZvff+6J3igOM5a6DbRCQtStYse6/kZeqj q+GEo3uk01KNvYUivz5RYQkG/+h4/3NMBmamDO7NHKUozCIgqVLMKo63/LXW/mPf4PBj kVEEPHW3xYYH6HC4WbKBVBajemJXMSS3p3/Fo8JMbGwq6t16EuOG0cxn+Z71LBbZ0c4A sUkSsgeeq/8AcjDm3cJ+s/wpJiXzvA49++7c2n4Qc26eC54Wkv/+kbHj68LNgWp8P8Lp /C2Gn1cX43q0Z+lB1raStWMvNfS7ww+VFpCcv4lV8dSXvk7Y/BFKCeOA93qWSBn9R6pp af6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mev.co.uk header.s=20221208-6x11dpa4 header.b=lbK6aMRh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mev.co.uk Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d13-20020a170902f14d00b001bdc664cd69si9640258plb.153.2023.09.13.09.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:40:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@mev.co.uk header.s=20221208-6x11dpa4 header.b=lbK6aMRh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mev.co.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DE50780239C6; Wed, 13 Sep 2023 08:04:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237004AbjIMPEw (ORCPT + 99 others); Wed, 13 Sep 2023 11:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbjIMPEv (ORCPT ); Wed, 13 Sep 2023 11:04:51 -0400 Received: from smtp78.ord1d.emailsrvr.com (smtp78.ord1d.emailsrvr.com [184.106.54.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5ADAB7 for ; Wed, 13 Sep 2023 08:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1694617487; bh=4bwdRlYwViOI0nBRI454Bo6S2CTQzWufr4IawC2v0a8=; h=Date:Subject:To:From:From; b=lbK6aMRhFyQJ7xok5tNcARHqwdjOZZnmKcwnhLupVNFgn1KpMgrvI46e+aJACM0rs hHGkFMf5aJ8DaPSxFYCCL5sjaI67I8b42RJ0ozurRxQKLW3wTQsEmqGm2CuQmfml6z X0C2fbXN4tLjxjBghqV6rcbMZH9iRztHvKyRtLgs= X-Auth-ID: abbotti@mev.co.uk Received: by smtp10.relay.ord1d.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 9E2D3A010E; Wed, 13 Sep 2023 11:04:46 -0400 (EDT) Message-ID: Date: Wed, 13 Sep 2023 16:04:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 05/13] comedi: 8255_pci: Conditionally remove devices that use port I/O Content-Language: en-GB To: Arnd Bergmann , linux-kernel@vger.kernel.org Cc: Niklas Schnelle References: <20230913112032.90618-1-abbotti@mev.co.uk> <20230913112032.90618-6-abbotti@mev.co.uk> <51a9af18-a5e4-4cb1-9f95-491bf73d35f1@app.fastmail.com> From: Ian Abbott Organization: MEV Ltd. In-Reply-To: <51a9af18-a5e4-4cb1-9f95-491bf73d35f1@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Classification-ID: 59f652d5-e892-4e72-a71f-9fb9465481f5-1-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:04:54 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On 13/09/2023 13:03, Arnd Bergmann wrote: > On Wed, Sep 13, 2023, at 13:20, Ian Abbott wrote: >> In a future patch, the port I/O functions (`inb()`, `outb()`, and >> friends will only be declared in the `HAS_IOPORT` configuration option >> is enabled. >> >> The 8255_pci module supports PCI digital I/O devices from various >> manufacturers that consist of one or more 8255 Programmable Peripheral >> Interface chips (or equivalent hardware) to provide their digital I/O >> ports. Some of the devices use port I/O and some only use memory-mapped >> I/O. >> >> Conditionally compile in support for the devices that need port I/O if >> and only if the `CONFIG_HAS_PORTIO` macro is defined. Change >> `pci_8255_auto_attach()` to return an error if the device actually >> requires port I/O (based on the PCI BAR resource flags) but the >> `HAS_IOPORT` configuration is not enabled. >> >> Cc: Arnd Bergmann >> Cc: Niklas Schnelle >> Signed-off-by: Ian Abbott >> --- >> drivers/comedi/drivers/8255_pci.c | 11 ++++++++++- >> 1 file changed, 10 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/comedi/drivers/8255_pci.c >> b/drivers/comedi/drivers/8255_pci.c >> index 0fec048e3a53..4c4c0ef1db05 100644 >> --- a/drivers/comedi/drivers/8255_pci.c >> +++ b/drivers/comedi/drivers/8255_pci.c >> @@ -57,6 +57,7 @@ >> #include >> >> enum pci_8255_boardid { >> +#ifdef CONFIG_HAS_PORTIO > > I think this is a typo: HAS_IOPORT vs HAS_PORTIO? > > Arnd Oops! Well-spotted. Actually, this affects several of the patches! -- -=( Ian Abbott || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-