Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2907108lqz; Wed, 3 Apr 2024 11:59:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYsFE0YRxCi4I1/9QxMlf6TB/o2pKx6hrsIFFduj6jt+ZNn22oHDrpRO5Elf/QeAA7/DMVUTyqXdClD3ahkoNTUsArzDdukZniYguT2A== X-Google-Smtp-Source: AGHT+IE/9DiMkBQT2pJDGqJk0+fArvC6VrTe7ClokrTQdIz6GnzwQXd2UwZbigUH/vYPAH723t7D X-Received: by 2002:a05:6a20:c891:b0:1a5:699f:290e with SMTP id hb17-20020a056a20c89100b001a5699f290emr651100pzb.52.1712170761847; Wed, 03 Apr 2024 11:59:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712170761; cv=pass; d=google.com; s=arc-20160816; b=HbTH1J6HOkPBaLESiexVAuJyikk26kboGNWDw1UyfyyJcCEmR5jRiWMaZ/98dMZe1n aXjdCc6KHAJ23J6pEkBXD7uI3FaZ3+PFf4ftBK+wQcH9sCasXaby0WqQbweYzrt/142c SUlJgO/ro3nJF89LDb+WSe5gMk0YSBYC3ijYb4A9Ny3cAfz5AgKT7LW8mEMepLVX3/qg 11r8h15thNpD2l1BL2HKPmHQ2s9oejxsAj13EotPrwGDq6mXPgBCxtYmvjXznbBQelhU laDucQ9rJ+KosC9+HJqupqU1TfMRLhaGrudUrO9Iaxa80diYJxxRPaDa81E6OWZCW8a+ /ceA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9wNqoKw8FaZxTWz4HMAlSRjVC+URzh8zm927c6ywQr4=; fh=ls37Ey2cre04bYVgsjGc8bKErv5/m/F8PbyfH6uI6/M=; b=CKr2/nkzvticAzevMlMQJLBgPir/JJFcgGWJsbd8pY3lXCt2QXt3ZxhQMwUe4on3id ph795HuM5z2mp2g8qSANnjyrd2mLItgdJJgOp+mdRAxwo4D8eMaxZFpmzx8WDRYIR+tM XMi8XMNKcH1M40HcSIveOhsM6P11Cxii6j+Abc0WWWQrAp0uoGw2BjXDAgfHXW5ouZDV Xm+mVR3x3g5K8auLpjA0GxBlfzqwzAouwLdqqG0c4jkRLYYvAgq1cYrc3X2X6s6Ojz+7 9wFoCTFuO6NNNK5O8QUfchhii2gEs+poZZFzLeQppDcgl3E0D0FdjbEPsvZPD+Im/w42 6oag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YFP+PyKi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-130424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j7-20020a170903024700b001e230696df5si11472474plh.61.2024.04.03.11.59.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:59:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YFP+PyKi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-130424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 87B97B31D4A for ; Wed, 3 Apr 2024 18:11:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62A00153501; Wed, 3 Apr 2024 18:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YFP+PyKi" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40CBF17C98 for ; Wed, 3 Apr 2024 18:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712167907; cv=none; b=sVCj0hGPWDFA+UyhWCbCNhPt6CFUHFocU4HWVEeKVrWMxbXZXafQaROfH3taits06IOMHTUTqBWYPq3dapVL4uoYLZKIlDGvWqvuc86gAUlLj2I+5aDzEny+maztZy5XZ7XwPciYOnchqhXl0FLOxYDbvzid76YrDcGrH2rFZsM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712167907; c=relaxed/simple; bh=aZ5mAysNCnvwmuu/IMWuw+Al5q2n+CRYz1OcIPZ+NAA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jLIuB2FSM9z7+MAaKcR2c5HKreFy2To6sKfaRLmcchcnsqlXH8pcSHJr8jLmKdLKUayyvnqS59rZiFcAItyo0yYRgPL87MfSc3yfnNtgQOnq3LHOQcLX+1zV8Z/ajxnhzHiCXVKqYBD+8PeffEXH9b4AyR7wR6cV5+u1s/HNF08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YFP+PyKi; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e74aa08d15so70503b3a.1 for ; Wed, 03 Apr 2024 11:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712167905; x=1712772705; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9wNqoKw8FaZxTWz4HMAlSRjVC+URzh8zm927c6ywQr4=; b=YFP+PyKiWVRO/F6yd76pt4qHWWcLVQwd3JykoJHfomvSeW1ZL6+KKTeYlC2s19NQfm wmS9SenQ2uvWBaDq2MMoO8glTNYn1IAYuZueiFq0tSt37c9AS2lEjt9lz/f2tfvtcWJV 7eRdehT998v/WdfXBLBK5zb5HJOGK0Weod0gMy8ov51/tNa8yTjNrffBFUsr86aeSbMo G31vfYPDqiO+NJUMufw1VN72JWnpzPfxpBCuj8J1f5ZPqgadu6otiPO/L8f3DQGNakMB euRyYeu/4nwnoaW5LzCGyCaLLoNj3p679ad2KX+xeOAvFA+VdvUjmE8GlXDQ47L4ykTz J/qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712167905; x=1712772705; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9wNqoKw8FaZxTWz4HMAlSRjVC+URzh8zm927c6ywQr4=; b=pXxPSWO2dvjHy4GicvVDHsHb1wX91+JmHUGKyc6XKgBlGi59zjE2RuQsvVgRSFCfpv 33nn8IVnuaEv8dxT7oduRzn0Qu/OsoZ4NC7n1pBKEzlkc4U7FdSJEWWzDQ+DuLJN8MkY QZZzCq+BFTgwXFQvvzmC3HmvgSupvOCAxxFtgWPim2DjfYvTzF1Yho3XCsZNDr91XrZT RwdgkUcT84ocnN9H3Cd96wdg9KnQYKEQBtGGMItVvZwM4EnNiW0T1Xr+kdW3mtn678ze L7EQTOvq4EKiFaAwyF1/E1QCWfAWECo2JcH/0REGgoGwoU88gTEpSQ2S5sTALZZtNCFM xbSQ== X-Forwarded-Encrypted: i=1; AJvYcCUiFLXPf3np2qTTHeAHxB1tkOZb2ocu6o34Ro0qIYikpUQ+lLw9Sb3ekhM8PhOzo/UjhZpU9A/MUbOFuUXs7VFDi1A8XkrdrC6me9fb X-Gm-Message-State: AOJu0YxO5fPDGdHt3OyzTo8V5NPjPPXbQmap4+zoRDp6PbLyM7I0twK4 mEMozx4F5zs1/bFHLMnl74IK33q199bGfJlFtlOxIsJ1maHiYdRe X-Received: by 2002:a05:6a20:a123:b0:1a7:186:bec3 with SMTP id q35-20020a056a20a12300b001a70186bec3mr521873pzk.57.1712167905539; Wed, 03 Apr 2024 11:11:45 -0700 (PDT) Received: from ?IPV6:2001:df0:0:200c:cce2:5e6b:f484:1b3f? ([2001:df0:0:200c:cce2:5e6b:f484:1b3f]) by smtp.gmail.com with ESMTPSA id b14-20020a170902650e00b001e2936705b4sm1914313plk.243.2024.04.03.11.11.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 11:11:44 -0700 (PDT) Message-ID: Date: Thu, 4 Apr 2024 07:11:41 +1300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/1] m68k: Handle HAS_IOPORT dependencies Content-Language: en-US To: Niklas Schnelle , Geert Uytterhoeven Cc: linux-m68k@lists.linux-m68k.org, Arnd Bergmann , Heiko Carstens , linux-kernel@vger.kernel.org References: <20240403122851.38808-1-schnelle@linux.ibm.com> From: Michael Schmitz In-Reply-To: <20240403122851.38808-1-schnelle@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Niklas, how do you propose we handle legacy drivers that do depend on inb()/outb() functions (_not_ actual ISA I/O) on architectures that map inb()/outb() to MMIO functions? (In my case, that's at least ne.c - Geert ought to have a better overview what else does use inb()/outb() on m68k) Cheers,     Michael On 4/04/24 01:28, Niklas Schnelle wrote: > Hi Geert, > > This is a follow up in my ongoing effort of making inb()/outb() and > similar I/O port accessors compile-time optional. Previously I sent this > as a treewide series titled "treewide: Remove I/O port accessors for > HAS_IOPORT=n" with the latest being its 5th version[0]. With a significant > subset of patches merged I've changed over to per-subsystem series. These > series are stand alone and should be merged via the relevant tree such > that with all subsystems complete we can follow this up with the final > patch that will make the I/O port accessors compile-time optional. > > The current state of the full series with changes to the remaining > subsystems and the aforementioned final patch can be found for your > convenience on my git.kernel.org tree in the has_ioport_v6 branch[1] with > signed tags. As for compile-time vs runtime see Linus' reply to my first > attempt[2]. > > Thanks, > Niklas > > [0] https://lore.kernel.org/all/20230522105049.1467313-1-schnelle@linux.ibm.com/ > [1] https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/log/?h=has_ioport_v6 > [2] https://lore.kernel.org/lkml/CAHk-=wg80je=K7madF4e7WrRNp37e3qh6y10Svhdc7O8SZ_-8g@mail.gmail.com/ > > Niklas Schnelle (1): > m68k: Let GENERIC_IOMAP depend on HAS_IOPORT > > arch/m68k/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >