Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2993197rwd; Mon, 22 May 2023 07:15:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iOqXz9tpgyyDiN/iXXEmOkzgVV0XdjTyw3aZnCDll+vL3SM+aCzPd8FLJsOWKm2hEraCF X-Received: by 2002:a05:6a21:33a9:b0:10b:bf3d:bc5d with SMTP id yy41-20020a056a2133a900b0010bbf3dbc5dmr2766849pzb.47.1684764909838; Mon, 22 May 2023 07:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684764909; cv=none; d=google.com; s=arc-20160816; b=VaqJIBGXn38Yp1YPyPWq9yKzn5HSyPWyIfrKCvl/KcprcoPE/2MBiU+av+1vwulT0K tWd36/x443GnHmJbHaRO3C4e8sqIQuezMANqw3/I+eYD0mxuDlYO9/svpOcfZvJmP5aw HwvktefbXTqs4kh/rWb696DNcT2LMk4jd15xAc194M+S9VcggLY5bgtgOPCWScrLNYQ0 4vts7t/aoHbrYHsIivUyD3yONUi7XPh7WHpJWVuv10d3UXRoWOMtBWXSO1XkyDsXmxel w6nI/aKupaCVyvDWIsYV3zDO5Rpo1gZ1fHZ/NQ/CyDMUZM0DG5fGnHJbGGDtDD1AQUGY Raxg== 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 :references:message-id:subject:cc:to:from:date; bh=wwzKxyC2BT47zho36ef3EuUNZv83DddfAIMPw4W3HqQ=; b=plHmInJwlI+yFzeDTj0ByWfZ5/yXn14Kgi55KIOkiVoFews1kkm4Qa1bMijNMwrHtB UFG7sY8PdDZK7ZPAmKhbQDo3Uh0g/9uZXVMW/lV+RB2GTCvdm5HE7l3q2dDbeSYl9VwO EabEgNrbWKGnksU83iI0xzwfwST6ASLjq99soWD+99nIvw0kFVKy9pkGKvVxOClNi+48 iEjSNMm4GVKOHcS7yWZGHgTOPZUCqBNDRwrqILfxbKGTVfI5uLxwNw3DdRkIS3q+H91L 5LwhEIACBCcwNslHXq7OxL5NXYXSNtT2v0mWEDO2/Y+g9VyHyEOJQUMHsIlZ5htOUOGw ekIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iq23-20020a17090afb5700b0024e2afd72a3si4655830pjb.182.2023.05.22.07.14.53; Mon, 22 May 2023 07:15: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234355AbjEVOBa (ORCPT + 99 others); Mon, 22 May 2023 10:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234360AbjEVOBL (ORCPT ); Mon, 22 May 2023 10:01:11 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id BB5272D79 for ; Mon, 22 May 2023 06:58:47 -0700 (PDT) Received: (qmail 135521 invoked by uid 1000); 22 May 2023 09:57:36 -0400 Date: Mon, 22 May 2023 09:57:36 -0400 From: Alan Stern To: Niklas Schnelle Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Arnd Bergmann , linux-usb@vger.kernel.org Subject: Re: [PATCH v5 37/44] usb: uhci: handle HAS_IOPORT dependencies Message-ID: References: <20230522105049.1467313-1-schnelle@linux.ibm.com> <20230522105049.1467313-38-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230522105049.1467313-38-schnelle@linux.ibm.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 22, 2023 at 12:50:42PM +0200, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to guard sections of code calling them > as alternative access methods with CONFIG_HAS_IOPORT checks. For > uhci-hcd there are a lot of I/O port uses that do have MMIO alternatives > all selected by uhci_has_pci_registers() so this can be handled by > UHCI_IN/OUT macros and making uhci_has_pci_registers() constant 0 if > CONFIG_HAS_IOPORT is unset. > > Co-developed-by: Arnd Bergmann > Signed-off-by: Arnd Bergmann > Signed-off-by: Niklas Schnelle > --- Reviewed-by: Alan Stern