Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1384545ybs; Mon, 25 May 2020 14:50:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBox9WJXfXqXsb1Xn1bMdXXVrtOz4n8UXDAFDU0+hx7w4LOEsDnDJBdHEh/0zHOO8MoaOx X-Received: by 2002:a17:906:6bc5:: with SMTP id t5mr20065418ejs.459.1590443446556; Mon, 25 May 2020 14:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590443446; cv=none; d=google.com; s=arc-20160816; b=yJzhvfs1ge9DkF6zb9sAOiv4UCzZ9c2o2XRDzLRf+eqIdUZUIc/6z/1FyA/wlVDSwa /SqxZX+UMNRRjAwBa92UOE+2B1IdRj04RdyLEYsRAD0okMTZT8zZsyKwqeWDunMoPkcc jIc8zbumXYzk0w6P1/OOfHuk76wCc+0cGTiH/OureX4Nk8OsOoegIZ1ek4huAQrEwpdM M5kqho2njPI6ERFpMihnPeHZv5B9/Bb1fxhp9p4YaypLqKzHrR21dvwC4GcVCgTfvPTN eHxd4i1xXD6G6QHZgOZncLfL1ILJwbiVf6dzcp4gPEzc8FyKx+wnkvNCmlcsSdWO2Ove YmLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ncUxfDYRX16GOzzRv69z4prU2S2az3SJa3b1si08BEc=; b=vhQuwyeGN6IwsmCgDqQpY8lb0lvTHrCAXKDQnSG8+9BFnZOgg4nPk6Gv+Y4aQCKF0j B5j5FDGrKPdOVYHigR1+EI6kOsMQj9Z7rQHBG08c+vg9o0WnPJ9xQUqoqglK1T0wkDmv tg2l5zamy0CESrJHuZdZs6NvvckACzBW/fY2wdYDdU7g9B3H+fvxlkqWpbVSvDt7vA5I AQNRb38uxskzOVnLpQ7e7inCDUbF+YAinqYaE87OHJeqRpFD2308ZUbUidkVi/N+PciK 7O01zRo/cpJ8ijBeSsuoihr1g/x7qQXsFKXhg53q5Et3VYmFdavPdwh/4G+htkBYOGwr vCdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bemiXuae; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g29si5451092edf.582.2020.05.25.14.50.24; Mon, 25 May 2020 14:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bemiXuae; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389905AbgEYSxI (ORCPT + 99 others); Mon, 25 May 2020 14:53:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389242AbgEYSxH (ORCPT ); Mon, 25 May 2020 14:53:07 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F923C061A0E; Mon, 25 May 2020 11:53:07 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id e10so15775132edq.0; Mon, 25 May 2020 11:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ncUxfDYRX16GOzzRv69z4prU2S2az3SJa3b1si08BEc=; b=bemiXuaeSfnsoFfUy2f06eTaYYLD9ai6qByVhKk4ZkCbtxNcZi7ToVguhrNrKxoSRl mB/azpw4ugHYkcT2A/U0+QUWEWnrUPQMcnCF6Qdit+lPKrpBj/HZzyUZx4OGXjGUhSgt 11QWKLbWXxxGXUO0ZWoi5TEw/j7YS8+MvtqpzjZgLD9ab+cN1wg5yTr0yJ1RbNaFuy0B 9UYkgUb9oK/5Imq1jBG56cr7z7HtKcXmlIc0/BrvZ5+6Vf6ww4n8OO7LA1vU/9owcJyA QkNs1SQYygbYPPfRBBq78aEJm6VhPkSzTEl9jsPXgONeWAPckXGvg5aUyQ5h6kkUJYRa RHoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ncUxfDYRX16GOzzRv69z4prU2S2az3SJa3b1si08BEc=; b=R1ph7i+nWBBLnXGmtbgnJyGZuyCdFs+2XA0TQfphSXi7q9JlT0TLFxME9a1IxBJuJ+ t+IazpbEWXeRoqTHnQii0bZja9MPqmQF2jfJV5x1Ap1fubW7N0Hbaqwafg15rxcXGGCW cMo3/BfkS8RIzkAFKZKs4nmHdLQhl6QuK5DqZxpHDzJB7K3e8fnYIzBElAGlLnRGamx5 1Rywc1DCrtTK1L7e/TjMNS4JsLoB41KjYPFukz5tF3/LGiWosbHuyDA7kkAyRdvu+POH HqjGaVskWP9dfb3rOSA8W/j6y6UFtrCIhLLmH+09T+a/FDSC4DH8i5YEptJkF0Ab0VnU glqw== X-Gm-Message-State: AOAM530zMN5Y/RPTewVGB+gMrt2/xDcqDe0jZPcNaGYRJtjLfQ0z2UDY tbrTsDt8GIMYWKkmeEWcwjN07zXlPseTemW9b4gkoP1Z X-Received: by 2002:a50:bf03:: with SMTP id f3mr17152009edk.368.1590432785574; Mon, 25 May 2020 11:53:05 -0700 (PDT) MIME-Version: 1.0 References: <20200525130238.3614179-1-olteanv@gmail.com> <20200525172815.GA445190@localhost> In-Reply-To: <20200525172815.GA445190@localhost> From: Vladimir Oltean Date: Mon, 25 May 2020 21:52:54 +0300 Message-ID: Subject: Re: [PATCH] serial: 8250: probe all 16550A variants by default To: Josh Triplett Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, jslaby@suse.com, andriy.shevchenko@linux.intel.com, lukas@wunner.de, heikki.krogerus@linux.intel.com, vigneshr@ti.com, lkml , fido_max@inbox.ru, radu-andrei.bulie@nxp.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Josh, On Mon, 25 May 2020 at 20:28, Josh Triplett wrote: > > On Mon, May 25, 2020 at 04:02:38PM +0300, Vladimir Oltean wrote: > > On NXP T1040, the UART is typically detected as 16550A_FSL64. After said > > patch, it gets detected as plain 16550A and the Linux console is > > completely garbled and missing characters. > > Interesting that there's *new* powerpc hardware that needs these > variants. I based the patch on the fact that, on x86 at least, hardware > using these variants hasn't been made for a long time. > > In the hopes of preserving at least part of the benefit of the patch, > could you please change it to `default y if !X86_64`? > Why don't you add CONFIG_SERIAL_8250_16550A_VARIANTS=n in x86_64_defconfig? > > drivers/tty/serial/8250/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig > > index af0688156dd0..89c7ecb55619 100644 > > --- a/drivers/tty/serial/8250/Kconfig > > +++ b/drivers/tty/serial/8250/Kconfig > > @@ -63,6 +63,7 @@ config SERIAL_8250_PNP > > config SERIAL_8250_16550A_VARIANTS > > bool "Support for variants of the 16550A serial port" > > depends on SERIAL_8250 > > + default y > > help > > The 8250 driver can probe for many variants of the venerable 16550A > > serial port. Doing so takes additional time at boot. > > -- > > 2.25.1 > > Thanks, -Vladimir