Re: [PATCH v8 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-14 Thread Maciej W. Rozycki
On Tue, 8 Oct 2024, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at > compile time. We thus need to add HAS_IOPORT as dependency for those > drivers using them unconditionally. Some 8250 serial drivers support > MMIO only use, so fence only the part

Re: [PATCH v6 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-14 Thread Maciej W. Rozycki
On Tue, 8 Oct 2024, Niklas Schnelle wrote: > > > +static __always_inline bool is_upf_fourport(struct uart_port *port) > > > +{ > > > + if (!IS_ENABLED(CONFIG_HAS_IOPORT)) > > > + return false; > > > + > > > + return port->flags & UPF_FOURPORT; > > > +} > > > > Can we perhaps avoid adding