Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp561055lfg; Fri, 11 Mar 2022 13:18:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwF3GO2HJag2hCJA2CP3oO0dPhm/OEd90BRXjfTjmB4Q4B+t+wgKACmHCKtD7fIJTDkhNN4 X-Received: by 2002:a17:90b:4c41:b0:1be:f5d3:78eb with SMTP id np1-20020a17090b4c4100b001bef5d378ebmr23741141pjb.187.1647033520844; Fri, 11 Mar 2022 13:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647033520; cv=none; d=google.com; s=arc-20160816; b=sbRThRUd+bzq1ko0JRo/nIFgcizB6PDa0c13wm3c//ZJaJQ8ARkxY4BaXSMIkfMdVd ncHdJtFJNwApA+wkupUm+ttZz7GOo3+DKBy4zSWYOR/0Vq/vh1wYLUGjteyetjwG2mE6 EcBv8qRQ28P8Mq5kTYXTMu8zzCq77cUk78AfxsCbIh+R9Q3gbJ2Ubq+oQ1WYuHyPXu+s zX4NvXa/qiZJP1oSI65SPp7xiPfUZCXWq38qFX7RnayNaKAzlzd5A+BAyNOvl36Qs6Kg thJGkTp1D1D98O950NAHYZtukctsQ7g8DGIQJ3W6DqDhyKCKeu6iSeNlwN48dwO4cpRA qo8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KCfOxllSA7l93UmzB1yv+vpAiUm9dySLpad7xZoiNto=; b=mf5pudw1Ca7vJfinkYK6MdQ5t4vTf1yAhNaP4jeHosBxxk/fNvbQbjlaAznoDI4rlp rAD7H9oL2ednDCY/PpzqbjVFFQ6b4cKjREoKbzacVTLQMtqY+7UMSzdHNKJrVYSsaX9j lSKaQQvOuIlSwA7YSb1YvIunt3HqPwFirXUkToDWj1uGRV+hMwXqcaI90CS5F/NtHTdp X8mGwA5G2XVm2vwCSY89q9Ghq/coC0bugPh5gIeOJnPq+xwiACiNFOxLlMpVpvAHv+0A GQ//LCZN4jXkPkLhkeksORwQcFzVQseJGySkMy+gRvdAbpJEmbZG16dLfvjt4gGKK1x6 c+3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M9PLowjL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w18-20020a1709027b9200b001516b8bdb16si8315172pll.365.2022.03.11.13.18.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:18:40 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M9PLowjL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B8EA20B15C; Fri, 11 Mar 2022 12:57:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349389AbiCKOfj (ORCPT + 99 others); Fri, 11 Mar 2022 09:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237079AbiCKOfh (ORCPT ); Fri, 11 Mar 2022 09:35:37 -0500 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB6901C8D80; Fri, 11 Mar 2022 06:34:34 -0800 (PST) Received: by mail-qk1-x732.google.com with SMTP id v15so7068786qkg.8; Fri, 11 Mar 2022 06:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KCfOxllSA7l93UmzB1yv+vpAiUm9dySLpad7xZoiNto=; b=M9PLowjLzy/DJ8Nkeohqr1x+5EPPYhY17Vk0h8gES5lYD7lQk9WimboHcEHljtGVCt hGLc6ptIKb4DpYDxKWxlRtgUzSSoEu1OB0jkG6OY24SM3uNcuVad54K9v7xsYJPzELrA A8j2YHazES574D86dryMXaOhdZttmTzzKBlf94nK/EJ73i8IJhycxc3CxWjL/+pgvOrT fDVeCLYVCDhOI4evfMlmaiNZ9OqhkghYsHlazuSRQmeoU6D6rntCLCkByRxhn2pGVuaT ag0Zo/V45F+YfbDRGeyHTKMQfqCHqKgFCNkkezkmcqMVTu72/jVkcmZLjhYsHPXCPqnd jQ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KCfOxllSA7l93UmzB1yv+vpAiUm9dySLpad7xZoiNto=; b=sYooxeZ+kWPt3DxeDwaQOuuZlXtFuazkjS4YR8aLTpauj1ZpW0F2bCuGkaaB5hWCNO U9/s2kHJFa/lbnS4UywVGRpO7KhZf3NWy6SLQfHe2wXl47cHeVEVUw1XiKl2q6vuyae6 q2u/L4pKEPEeiVrEestrEhMKG2Ew5H82m8UyF0xEzPeOwWHTH5xTg2cPSlfcZzfoziR6 aJYoyxQfC/udQjiBcaNauIChNGWzz4Z7hV0rSb/4i+46MaB4pAsGGTMcBObSDXCTbur9 Ibiu8yAhfbdaj/mBStl8ZGhJJoJZ/Aic6GpCbviHffOPwqScRWhkmyCv7LsHv4JdrLZW dICA== X-Gm-Message-State: AOAM533TBQhUdEA+EMy85WN5hx+1O9HqZazK276LpecfGaw8QYXoBUof 32mBRhJ2HEXweC2bSSk5rLLEKVuLOls= X-Received: by 2002:a37:ab11:0:b0:67d:6742:2988 with SMTP id u17-20020a37ab11000000b0067d67422988mr4294770qke.51.1647009273873; Fri, 11 Mar 2022 06:34:33 -0800 (PST) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id l8-20020a05622a174800b002e1a30533e2sm5196918qtk.8.2022.03.11.06.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 06:34:33 -0800 (PST) Date: Fri, 11 Mar 2022 09:34:31 -0500 From: Trevor Woerner To: Jiri Slaby Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-serial@vger.kernel.org Subject: Re: [PATCH 3/3] serial: 8250_fintek.c: Clean up set_termios() message Message-ID: <20220311143431.GB38527@localhost> References: <20220311070203.18159-3-twoerner@gmail.com> <7bf43ee7-549e-c98c-1ca9-b5060124c94b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7bf43ee7-549e-c98c-1ca9-b5060124c94b@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On Fri 2022-03-11 @ 10:23:22 AM, Jiri Slaby wrote: > On 11. 03. 22, 8:02, Trevor Woerner wrote: > > Clean up the status message that is given in the case where a custom > > termios() is not installed. > > > > Signed-off-by: Trevor Woerner > > --- > > drivers/tty/serial/8250/8250_fintek.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/tty/serial/8250/8250_fintek.c b/drivers/tty/serial/8250/8250_fintek.c > > index 03ad2354d808..dcab23d1965e 100644 > > --- a/drivers/tty/serial/8250/8250_fintek.c > > +++ b/drivers/tty/serial/8250/8250_fintek.c > > @@ -333,7 +333,7 @@ static void fintek_8250_set_termios(struct uart_port *port, > > default: > > /* Don't change clocksource with unknown PID */ > > dev_warn(port->dev, > > - "%s: pid: %x Not support. use default set_termios.\n", > > + "%s: chipID: %x not supported; using default set_termios.\n", > > __func__, pdata->pid); > > So the variable calls it PID, the comment calls it PID and you change the > report to chipID. Why? The datasheet doesn't contain the string/identifier PID anywhere. The hex value stored in pdata->pid is the contents of what the datasheet refers to as the Chip ID Register in the Global Control Registers. Identifying this value as the chipID would probably make more sense to a person who is trying to understand what this value is, provided they're also reading through the datasheet at the same time. I was considering a patch that would change "pid" to "chipID" in 8250_fintek.c, would that be a better way to go? I guess pid stands for "part ID" or "product ID", but neither of those appear in the datasheet either. > thanks, > -- > js > suse labs