Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp719913lqp; Wed, 22 May 2024 19:11:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIAhZR84MV3IYlv/0lQ3LDdTMtpeCMevk+1qTO8jnWFDtMrJ4rsn/xnKqGzUzWxTkqj0lSQJKsk35tEic1oisGK9AY/Gb7RhgIIVX94Q== X-Google-Smtp-Source: AGHT+IGainUaitZLy6KiJO9luvHSmx31+9IUcGwt7rUCdnuP+hpj4LXWfBXC6SyG8WdVh66gE8o2 X-Received: by 2002:a05:6830:2693:b0:6ed:c79f:e877 with SMTP id 46e09a7af769-6f665f0caf7mr4622978a34.12.1716430294179; Wed, 22 May 2024 19:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716430294; cv=pass; d=google.com; s=arc-20160816; b=C51j7mPGKcZ3Nv/NhMN/JDcIj3jj87D8eroJ83LrTy/ttNcwptfoNcQ9q0stLLRHzX zM0pLcCY48htVqRX7gxavfj726PxTK0fAoV9bDVGRNdFxyWoLJ0MMWWMkPQbQBQQzhqm 3/4OPPuSXdl8PiyIaeHdIiIShTykP81BtT4Wn4Fr2y9Qc2fkDqIzJgc4RcyBz8BIqF2s G/9xkr8sJdPMe6FWO4YYbfpWHw1DkIqPUOculOLxbgQ5Dq5aqPtrEPjwTQrfB2lK7oIA jweN7V3AcNr7H0tD8alyFZ5wrJNw31jDG8fZv4O3a3m0huS9OZSng15+8SJUWSviVs7/ FuMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=WI6BSY3KDbr/pWLTt4SNGNB6wQefhqmV0iOe3a0A8pg=; fh=1ZUvKAfKFnPzQkjje6AzbOAmV1xRRqkNQj9Rtq24U1I=; b=gNDzW0XrG0zlrz+KehPKv4cIxK0U5QevrHrfIvaFJO8aDfBwtER4L7x/LOr7/u6nwr oMJFuWHN+v067RYwbQqo6/weHjJ8D+z7Fxk7z5+7DYef8oQBkwLiz2gV4h2t99Rt036Z PTa28QdzRoZCYGNmHdEPZmqpoABNR3AlqzrmHXpAWdDLE2XRAiDsGC2nSJKKCZCT3mUS VHBLz7gr7eWLouwi2wgOYrjsFgVZ63h2g1UeaXB4nleIQrhctPQTQcpgmyic7OMTlmts s4cKp7aP+JFIAi9GOfsSiJnHtU0AXRIQkxidXAQ9sqFUSJmlz4gnXrZtUu3S8W2aXAyx 7okw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-186901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186901-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a724eesi7997686b3a.36.2024.05.22.19.11.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 19:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-186901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186901-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BE6342824DF for ; Thu, 23 May 2024 02:11:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DE1046B8; Thu, 23 May 2024 02:11:27 +0000 (UTC) Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EE55EC7; Thu, 23 May 2024 02:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716430287; cv=none; b=faMU8aNDhfMnAyfQjyuKiaiWDpjVI5bzLepqdyZZ9H/C2+FmUJIL5wMOpWIYvJRuCBbYAV1dfqcFgss0lq5KiiLOdyVrp0A48zpL/Ra6mKBmu2gfW/cPrwzbpA01j+iwwfCRkf7a19g7ldw1xf3PUrCSHXmr0xaONW2RpkWltU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716430287; c=relaxed/simple; bh=TGRqQ/gBYwVifINfQhz4oRdkJ1y9DO83Qzc6NF7fdg8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=mIBiFpNBOtJ5WIrDyoeBC6ZUo7a1UUyf/sMGJp9mhsEdc4PEv68fysHfCd1yZ9OoXvYVWTZdiC5e4pBtrubJSG9LOnE5GVc+vuHBI4T90IjYC/oVpofIA/shuKl1/kxARAxRmfTmNqFhpkmRcTHtckK7p0L0e9hnrilSeCy6zgA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id D2C2992009C; Thu, 23 May 2024 04:11:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id C191192009B; Thu, 23 May 2024 03:11:16 +0100 (BST) Date: Thu, 23 May 2024 03:11:16 +0100 (BST) From: "Maciej W. Rozycki" To: Niklas Schnelle cc: Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , linux-serial@vger.kernel.org, Arnd Bergmann , Heiko Carstens , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] tty: serial: handle HAS_IOPORT dependencies In-Reply-To: <20240405152924.252598-2-schnelle@linux.ibm.com> Message-ID: References: <20240405152924.252598-1-schnelle@linux.ibm.com> <20240405152924.252598-2-schnelle@linux.ibm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Fri, 5 Apr 2024, Niklas Schnelle wrote: > diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c > index 0d35c77fad9e..38ac5236d2ea 100644 > --- a/drivers/tty/serial/8250/8250_pci.c > +++ b/drivers/tty/serial/8250/8250_pci.c > @@ -928,6 +928,7 @@ static int pci_netmos_init(struct pci_dev *dev) > return num_serial; > } > > +#ifdef CONFIG_HAS_IOPORT > /* > * These chips are available with optionally one parallel port and up to > * two serial ports. Unfortunately they all have the same product id. [...] > diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig > index 47ff50763c04..54bf98869abf 100644 > --- a/drivers/tty/serial/8250/Kconfig > +++ b/drivers/tty/serial/8250/Kconfig > @@ -136,7 +135,7 @@ config SERIAL_8250_PCILIB > > config SERIAL_8250_PCI > tristate "8250/16550 PCI device support" > - depends on SERIAL_8250 && PCI > + depends on SERIAL_8250 && PCI && HAS_IOPORT > select SERIAL_8250_PCILIB > default SERIAL_8250 > help This is clearly wrong, there is PCIe 8250 serial hardware that does MMIO only, so the option has to stay possible to enable. I have such hardware as shown in this log: Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled serial 0001:01:00.0: enabling device (0140 -> 0142) serial 0001:01:00.0: detected caps 00000700 should be 00000500 0001:01:00.0: ttyS0 at MMIO 0x600c080401000 (irq = 40, base_baud = 15625000) is a 16C950/954 serial 0001:01:00.0: detected caps 00000700 should be 00000500 0001:01:00.0: ttyS1 at MMIO 0x600c080401200 (irq = 40, base_baud = 15625000) is a 16C950/954 which is from a POWER9 system. Which as you may know has no PCI port I/O support in hardware, so it is quite relevant here. I'd like to keep this PCIe serial option functional with my system. Also your change itself modifies 8250_pci.c (cited above for reference), which would make no sense if SERIAL_8250_PCI was permanently disabled for !HAS_IOPORT. Shall I take it than that the Kconfig change I question has been made merely by mistake? Maciej