Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp183314rwb; Sat, 17 Sep 2022 03:21:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4taDm9OPiJ0tK+jdKQO3MYOs0TDtyb1eqclx4pqy7o1b1bZr5Is93xECmPJ9AvLOvbEyh8 X-Received: by 2002:a05:6402:2793:b0:452:5e81:c624 with SMTP id b19-20020a056402279300b004525e81c624mr7543283ede.36.1663410098451; Sat, 17 Sep 2022 03:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663410098; cv=none; d=google.com; s=arc-20160816; b=N6DeDXZ/JlpnKHpA7afSzA0cG7skcoXQ+gzAAHGL4R8RE25CcLGgJdGeeDtS/4/5wN epUIlrSWdmU5GE9bRnTXZs1jZsPH/f4q/+EGUQ64Rk+Udbd2Ssvc5PcsIdDfbtYD4vCA AVhOSm/+EcGPSDI+llCRuiCYmu4lVf1jFzNjUVDZgek4Cwy+xxi4a1JHia41ibGgVgFz twUiRciHNuFFKfiN7fF+01CXvsCccMB82CGiqVUCoEDVra49EpP7DhLlTA5Ul8A9d06a OlsWtRK8AyPWTVGd7nkEg/SW5FhflPa/dEzdSoOCp4KwrPEtlZPT7TIYkAQMYYuk4trE x8jg== 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:message-id:subject:cc:to :from:date; bh=VjQlpMsHMj2kxakI8+vA/Mj/I5J8iwm12d14Ylsz4R8=; b=NGjznPzCf88o7wO6zLUQ1SUBk+88Ny6Cc1aVgmL5P6N28SgkXfj3qGoowBZ6T3MHNU J0KpFOt/CnDX+HLrllRyszplD066l2C1ZW6WsQywyh0wZHPyNpJkqOAHHqIFO48NtKMA wzF3NNFLJV4Jb3c7n2gjuWadIu4IngT9RW6QT2327eIwHZzeIk7q5+dzUuKwHLYQqGce 7OrSAK9fCgvWWPY1AvuJ/ea1r41h5O5JNQsklivTb32oAnRaP9RVviH5EdnTUmgpppmy 3q4efFdp3mjiZSdZCzTae5ZtbASavWWisqw886txRiyE15rPQ66/DqikRAYnrVgxRGe0 g4cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw10-20020a1709066a0a00b00779a3220c5asi20331417ejc.343.2022.09.17.03.21.12; Sat, 17 Sep 2022 03:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbiIQKH1 (ORCPT + 99 others); Sat, 17 Sep 2022 06:07:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiIQKHX (ORCPT ); Sat, 17 Sep 2022 06:07:23 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93031186E7; Sat, 17 Sep 2022 03:07:22 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 9379592009C; Sat, 17 Sep 2022 12:07:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 843B192009B; Sat, 17 Sep 2022 11:07:18 +0100 (BST) Date: Sat, 17 Sep 2022 11:07:18 +0100 (BST) From: "Maciej W. Rozycki" To: Greg Kroah-Hartman , Jiri Slaby cc: Josh Triplett , Anders Blomdell , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 0/2] serial: 8250: Let drivers request full 16550A feature probing Message-ID: 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.8 required=5.0 tests=BAYES_00,HDRS_LCASE, SPF_HELO_NONE,SPF_NONE 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 Hi, A recent change has added a SERIAL_8250_16550A_VARIANTS option, which lets one request the 8250 driver not to probe for 16550A device features so as to reduce the driver's device startup time in virtual machines. This has turned out problematic to a more recent update for the OxSemi Tornado series PCIe devices, whose new baud rate generator handling code actually requires switching hardware into the enhanced mode for correct operation, which actually requires 16550A device features to have been probed for. This small patch series fixes the issue by letting individual device subdrivers to request full 16550A device feature probing by means of a flag regardless of the SERIAL_8250_16550A_VARIANTS setting chosen. The changes have been verified with an OXPCIe952 device, in the native UART mode and a 64-bit RISC-V system as well as in the legacy UART mode and a 32-bit x86 system. Credit to Anders for reporting this issue and then working through the resolution. Maciej