Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp242040iob; Mon, 2 May 2022 18:15:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhv6oD6FvWdOT+f45euKX/pOwTpJiipT3V96WrQPDibVOnyX3rwREbDxlwB4w/nR1iuwDo X-Received: by 2002:a17:902:834c:b0:158:ae65:b935 with SMTP id z12-20020a170902834c00b00158ae65b935mr14426453pln.145.1651540547778; Mon, 02 May 2022 18:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540547; cv=none; d=google.com; s=arc-20160816; b=JtI/C0DFlFsMfBL3HJpnlBUtrf1Ti5FnfoYwsAUX4PrkfrHgX2dX8MO0mhQLm/VED7 OnDoyqodf3KB6Mo8EWVnCwe9N9uLrOdb0FDPwXs6TKQsahROrgHi6eTxDOQ0tvIEOLkD puRVJ0EuqOuwJqsOJESEghTfwETdXRpBL9RyCwPYtKzivU+0SY4hhbogtFXOtuDaFIFA KVkI+wxfeGUc0eK2ahnGr+tIrn92T0Abgi55qDVmFvejLk2nMu5RfqmOVcNbiV3tls3H SlTs1iKo7NnLhvF3wIUSyS10qF6GWzHqGNC++arRDe3K4VoWCUqGSDbRxYwZayQeSVxa R/vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=b9VYnPcTeXDDS8ycUhQR/DOVplzdzXTh6v/y1ar+7FM=; b=P9QlMx9TMt3Dsj43FZqXTh3VQ8X73LgWov2HvPLhYedRdY3kayup4mRAnIf3DMA5Af fhvk2poEavHDsrbS4Z5WWWgVTpJ7BXPpMhUFlYLMntt+dBty6+oLw4UeMgp8Bd4KI/ou uL8mvDSN70nDFjykzYcZO/Z79O9fa6TqFiWt3DhLqZYm5z8DiggKst9NUfmBM/YGY4n+ a7MyJksLNYL3s9qu4+HOjuQ5T6xszsGhKkeceUoUXyP/RWDuVz/HD4D8xlDwyzqaaly6 hw/JSVzlwt9ZoB+ytDsijglUtTzyih6iUG5J/q82jv6tfvceiMl3nKqZutoaQAbu8kqb SPRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y21-20020a056a00181500b0050df172cd76si3412073pfa.11.2022.05.02.18.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:15:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 471AF5F8F7; Mon, 2 May 2022 17:55:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384123AbiEBJSd (ORCPT + 99 others); Mon, 2 May 2022 05:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbiEBJSa (ORCPT ); Mon, 2 May 2022 05:18:30 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 50E8036B50; Mon, 2 May 2022 02:15:01 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 776CE92009C; Mon, 2 May 2022 11:15:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 712B392009B; Mon, 2 May 2022 10:15:00 +0100 (BST) Date: Mon, 2 May 2022 10:15:00 +0100 (BST) From: "Maciej W. Rozycki" To: Niklas Schnelle cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Jiri Slaby , "open list:SERIAL DRIVERS" Subject: Re: [RFC v2 34/39] tty: serial: add HAS_IOPORT dependencies In-Reply-To: <20220429135108.2781579-63-schnelle@linux.ibm.com> Message-ID: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-63-schnelle@linux.ibm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 Fri, 29 Apr 2022, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them. [...] > diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig > index cd93ea6eed65..e216bf745e78 100644 > --- a/drivers/tty/serial/8250/Kconfig > +++ b/drivers/tty/serial/8250/Kconfig > @@ -6,7 +6,7 @@ > > config SERIAL_8250 > tristate "8250/16550 and compatible serial support" > - depends on !S390 > + depends on HAS_IOPORT > select SERIAL_CORE > select SERIAL_MCTRL_GPIO if GPIOLIB > help Similarly here some 8250-compatible platform or PCI/e serial port devices use MMIO, e.g.: serial8250.0: ttyS2 at MMIO 0x1f000900 (irq = 20, base_baud = 230400) is a 16550A or: 0001:01:00.0: ttyS0 at MMIO 0x600c080401000 (irq = 40, base_baud = 15625000) is a 16C950/954 so this has to be sorted out within the driver rather than by disabling it altogether. Possibly with a suitable conditional wired to HAS_IOPORT in `set_io_from_upio' in drivers/tty/serial/8250/8250_port.c. Maciej