Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp458434rwb; Sat, 17 Sep 2022 08:13:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cRYKifD2onIQ0XdQwKQX2WGZuxkXr3BD8f6dlPBQ1aYDslpB+YYiUJj1twLapir9t8DHq X-Received: by 2002:a17:902:ef45:b0:170:8b19:4e0f with SMTP id e5-20020a170902ef4500b001708b194e0fmr5044730plx.120.1663427590277; Sat, 17 Sep 2022 08:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663427590; cv=none; d=google.com; s=arc-20160816; b=As3/xO+0xOC1rA/hwVjzcqxKn4zUDAklK43HNEDrXxS/bnkn6iQzpWjcv2wIxPz9sO dZG3vkRJ7JA72iPqbLcEjcHXahgBBwoCR3XWGClBZcj2STYYF/Fwn3/PT7mroa//2+3V bAJ7qfccqqHZdz6RYt5HEGOdi8do9GyUg6MoJDeZ7cm+S3JdIShipH3bKHDK+vJT7L/z Lu4KfSqqiceF6WAAcK4p75JnkugoEJ25clw5rZ8yXzcQumBvJfM2gRaFFysoPpUAqGub 9FQKZeYstXvqc9p6VjBK+mvRG6FIgTkmIqe7X0PyT8ePSP/+Y5RyLl942A/+Avaj6t78 rsPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:subject:cc:to:from:date :feedback-id:dkim-signature:dkim-signature; bh=QakTsMOTOSQcuDHAp3T1zWhE/2pa8qxh1dkXdRWc93I=; b=dxhgpA+5bL/sKyvRYuQCJjCR3ym8R3RHz8YFkmCQ6ZNyWIl/HLF9fric8Y9kOFxH2u +5ZJPklsX56FPLb+Yb3hqpskUwn0bgfG0mgxYrWMrMZrCaolb6Yu8aulgdFxH2PyWUzn WfOCD0dBwEhBU9mHESuD9G3GbTWTTwkt7gn957BBpB5JjAEamTjQMdeJCqOlgqUfY1Sj 2HJEsGJYNH7Y6sTd8RmfnFy+OxHqXN/2VDvOp3fkwb/l7VdEPZuJ+imE8beHe/nn+PSJ u/M6s0J4ToHdhxRBj+7TRsGBiVkk2sgDG+BsQSof8TIsb2xW8bHC6T28SYISYdYLY164 C3jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joshtriplett.org header.s=fm1 header.b=rbIEuspp; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="uxILl/lK"; 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 c67-20020a633546000000b00434ba40afd5si3763835pga.873.2022.09.17.08.12.58; Sat, 17 Sep 2022 08:13:10 -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; dkim=pass header.i=@joshtriplett.org header.s=fm1 header.b=rbIEuspp; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="uxILl/lK"; 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 S229581AbiIQPBc (ORCPT + 99 others); Sat, 17 Sep 2022 11:01:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbiIQPB1 (ORCPT ); Sat, 17 Sep 2022 11:01:27 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E52401F61F; Sat, 17 Sep 2022 08:01:25 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8FE8632003F4; Sat, 17 Sep 2022 11:01:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 17 Sep 2022 11:01:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= joshtriplett.org; h=cc:cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1663426881; x=1663513281; bh=QakTsMOTOSQcuDHAp3T1zWhE/ 2pa8qxh1dkXdRWc93I=; b=rbIEusppIH3QrikqOfej2MeuuAH7yDYRUPaxpnL14 gHzKryLB0+DD/dcx7ypbu3qgj8kZQ+4f6kbEKpvYesO7rN3n1YKFM9fA730fUuBS F23joSD3iXwKFtQQXu7en1/8Em2NQlfijFifkMVywsr4pi0i9/VoyD2AlRY0w216 3eUVOkZ7HynHbL6UJLBovXjkU3sT1bwHbhEOePjd2JVEcOrl0zSWWXhY8BylBdAT i1L4G5b5+T4Ah3XfaGsKdlyCIB1BoM94R+7UBt6c8LLogJPBn0ggXd6HQuuCMZ69 474pXwJ/ktUUJVKVNOe/65T+u/iz9nDoab6HsfK/zLMnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1663426881; x= 1663513281; bh=QakTsMOTOSQcuDHAp3T1zWhE/2pa8qxh1dkXdRWc93I=; b=u xILl/lKvQo+b6MTM+sXIS7ox7OsH+Vdjdifl7B93X9yZmxJ+S80UXVO4R9eGNHU8 6h8+hYsWD0v+w6dQMe0CEz1dRZp7Mp2o7e3Nl9HSVPrrCXS5Y7YdASBYtslmK3Bc ncML2NRGTIQIK3ojBk/5+ISdpLbyl9agNneD/NxKhja54sENZMCGNFFeXqPMZI1+ 5nG3ZSVqqqha9bpgADUUw4ev0rhmEYVvwVtaAeCPUP/Q4QNwT653mH8MIPZTZL95 RrcrhdCM2PLf1+nrIelp8iwTFBMMTco9YmuNUXo31CjhWUU+l+GOM3YQuCMz7aAN VaayJo2xQqcFPdGipVHAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvvddgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevufgjfhfkgggtgfesthhqmhdttddtjeenucfhrhhomheplfhoshhh ucfvrhhiphhlvghtthcuoehjohhshhesjhhoshhhthhrihhplhgvthhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeegkeeggfegjedtvdehgfdtvdekueetveetfedvveetueetffek ieekledthfeivdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjohhshhesjhhoshhhthhrihhplhgvthhtrdhorhhg X-ME-Proxy: Feedback-ID: i83e94755:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 Sep 2022 11:01:18 -0400 (EDT) Date: Sat, 17 Sep 2022 16:00:59 +0100 From: Josh Triplett To: "Maciej W. Rozycki" , Greg Kroah-Hartman , Jiri Slaby CC: Anders Blomdell , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_0/2=5D_serial=3A_8250=3A_Let_driv?= =?US-ASCII?Q?ers_request_full_16550A_feature_probing?= In-Reply-To: References: Message-ID: <0B189972-4FD8-4245-BF2F-ADEAB18AAAE0@joshtriplett.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 September 17, 2022 11:07:18 AM GMT+01:00, "Maciej W=2E Rozycki" wrote: >Hi, > > A recent change has added a SERIAL_8250_16550A_VARIANTS option, which=20 >lets one request the 8250 driver not to probe for 16550A device features= =20 >so as to reduce the driver's device startup time in virtual machines=2E = =20 >This has turned out problematic to a more recent update for the OxSemi=20 >Tornado series PCIe devices, whose new baud rate generator handling code= =20 >actually requires switching hardware into the enhanced mode for correct= =20 >operation, which actually requires 16550A device features to have been=20 >probed for=2E > > This small patch series fixes the issue by letting individual device=20 >subdrivers to request full 16550A device feature probing by means of a=20 >flag regardless of the SERIAL_8250_16550A_VARIANTS setting chosen=2E > > The changes have been verified with an OXPCIe952 device, in the native= =20 >UART mode and a 64-bit RISC-V system as well as in the legacy UART mode= =20 >and a 32-bit x86 system=2E Seems reasonable to me, as long as the flag is only set by drivers that kn= ow they've found their hardware=2E