From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YFP+PyKi" 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-Google-Smtp-Source: AGHT+IHH8OsExZMIlURZDq/TmQnHeLrzwE5Tgu4BThsGQRIhPvZFnUOtT+RHiYmgFIJomzgYt3dfXA== 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(-) >