Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4595363rwb; Tue, 20 Sep 2022 16:54:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fHaF0F2eaygsN4Wdk69xIGEv2BIUdzhheZYmj2OA08tEMJjh49iNbtIQNBvskX0PhylTc X-Received: by 2002:a17:902:6549:b0:178:12e9:8d7b with SMTP id d9-20020a170902654900b0017812e98d7bmr2006230pln.14.1663718071175; Tue, 20 Sep 2022 16:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663718071; cv=none; d=google.com; s=arc-20160816; b=j0Z7TCJXPYyF6C+YoZ6uHmmCHavtpePZ/ronjP/q+mzo+hI5YMdYzRV06S/vY3TpDZ oIcV3eAFTv97GwLQ4b/pDlUBROPZthkbzO91TB4U3tF75X7ffLdGOMgvxFuj6dmBvhQu +bObddeFoIbvG+MjyBGM++5XYk+mhSBCNEQks1+84sGDpIt22hr7vVsrY+HJRXopgxRp VskA/Q6Q3kADi9xtWpNf3SgnVmu7YH7rXhZtRHqTbNVeu/3Mk1z60WkEOi/w/08qvnTO vt//xQ939qXDx3m2O0Z8c1pVKqVoIOlbInZj+dUq+jz144Rp0CHqHgR9we11BNLe2XIB AEUQ== 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=0S5Vw1UD5qfb5hYXDrHMgGynS4sjP+NLFDf9/VI89b0=; b=wgDJEMRS02CdyMNveLuOJKQF+/s2AoZKarn+fRfofdNCHQCc0NT92mGLXmvOSUtkK6 ZMPswUsG4xWFX9r8JVhQUAx+Im+UShM8TVsu/gtYnooIN7Yi2SeBQMlb50kuAfd7caTD tuWsrLuk9/To0rBWL6dFhP2H6Y+8Kvogd1U9BIdCnCyTKcf+8nV1CcI/N7FcvBMqNG42 gDbBcm2NXpaP1FOoYm67mlT7gIDvcm1o8SaZMTQQzSAvTaT9cZ9k+9uCgR2RusD18+h9 P9oaxLof4bYQPyYewUhb8QrtnGo65WypXa78rmi8e2JHX8yzJIQ2l0f7lv7+VPT6/U7k +86Q== 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 x4-20020a1709027c0400b001786f5de8f2si1110670pll.95.2022.09.20.16.54.19; Tue, 20 Sep 2022 16:54:31 -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 S231297AbiITXln (ORCPT + 99 others); Tue, 20 Sep 2022 19:41:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbiITXlO (ORCPT ); Tue, 20 Sep 2022 19:41:14 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9CFB4796BD; Tue, 20 Sep 2022 16:38:43 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id C26219200BB; Wed, 21 Sep 2022 01:35:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id BB53792009B; Wed, 21 Sep 2022 00:35:52 +0100 (BST) Date: Wed, 21 Sep 2022 00:35:52 +0100 (BST) From: "Maciej W. Rozycki" To: Jiri Slaby cc: Greg Kroah-Hartman , Josh Triplett , Anders Blomdell , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/2] serial: 8250: Request full 16550A feature probing for OxSemi PCIe devices In-Reply-To: Message-ID: References: <7785ca40-2f4d-a0a8-2ada-ca5fb941b6a2@kernel.org> 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,SPF_HELO_NONE, SPF_NONE 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 Mon, 19 Sep 2022, Maciej W. Rozycki wrote: > > > linux-serial-8250-oxsemi-efr.diff > > > Index: linux-macro/drivers/tty/serial/8250/8250_pci.c > > > =================================================================== > > > --- linux-macro.orig/drivers/tty/serial/8250/8250_pci.c > > > +++ linux-macro/drivers/tty/serial/8250/8250_pci.c > > > @@ -1232,6 +1232,10 @@ static void pci_oxsemi_tornado_set_mctrl > > > serial8250_do_set_mctrl(port, mctrl); > > > } > > > +/* > > > + * We require EFR features for clock programming, so set UPF_FULL_PROBE > > > + * for full probing regardless of CONFIG_SERIAL_8250_16550A_VARIANTS > > > setting. > > > + */ > > > > It'd make more sense to me to move this comment right before the line you add > > below. > > I favour the style where what a function does is documented above it, but > I won't insist on it if having a comment within is what we prefer here. Having looked at it again I changed my mind and decided it'll be more consistent with the rest of the code if this comment remains above the function after all. My rationale is it is the only function for OxSemi Tornado devices still without an introductory comment, the other functions have their internals documented solely within their leading comments, and last but not least it is obvious what the comment refers to, especially as the function is so small (as to fit even in an 80x24 character glass TTY device). I have posted v2 with your other suggestions applied. Thank you for your review. Maciej