Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp221630lql; Fri, 12 Apr 2024 08:28:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE0Hy4/HWWsi8XYTlxUBlxF5iwJ/9IS7hw5KH9gK0W49CstZ2yzrQYCQDLC7cfw+JITfq/WmK85R5pGMVH0lUaySLAUkAnZH8I5N1Law== X-Google-Smtp-Source: AGHT+IEsM9DCRdWmSqmp9BI1CE2Q+caMpmz+UxNeKI6CWYVKAkMoEXI+Fw5bFCxqdXS4PRQuCSmg X-Received: by 2002:a05:6214:3007:b0:691:4f29:b5d5 with SMTP id ke7-20020a056214300700b006914f29b5d5mr3605761qvb.60.1712935711906; Fri, 12 Apr 2024 08:28:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712935711; cv=pass; d=google.com; s=arc-20160816; b=X1663BkK9uM7vIaoGOrI+0hsUxIupUREf5uofStTgx1tub1FrhLQtIFlZPrsfEi9AG qwb12xkegR5RDPgLbPy9qzPAaqHzdhnK8DztbJnJG8hdul6IB6Hp2VbbXAmHm9m2g2Yv d/pXEpNIOQsxNhJywVGpFVfTAwcUK1LdXBLHI0HHLwmtUQNFg0flMOZaFNwk9fOz2Gqc 1OcswJGaHWJpDwfC26/NE+ANGaznLaM7bLJkkObPlWUAT7pV+deeEFH/W2IED1FelZfu fbYzBKQIFUTpP4xgQoVsbmari0qVofj87fRaRRBxGvYyxDGfsVmNQP1u6RK9DeH+QVP+ +hMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OwpT/zbdpgsYv+EjJPwTXLw6I1gzGgcDVVleuffWHBw=; fh=dtXPhkD5sclnuhu3RNMFBLQaHvTz3mu6eqxMpEN8voU=; b=fhFl0lu5Ud7zLqU+48Nj7biM584jom4Wdyh6mPglENoCYBMCIvhEqepQah562q+kIL ZmivpT/xPKp1LMBkhXtuhH+KoCjsTFW3X9eY16Ibdb32xkQZD815h5s+An7X7aTjfwOd FccGcDVUdiw+UXwLjm+B2ReG99oxc9bGnxIdDsKuplLCM0rszclOQvjmJttXXPmCMs1R RJYOISxC9ust2EBkEXsc92MU3Yv8mdYgHlLmw6iux+reKIReY8zX6AYMy+E1YSVaTYEN bSzGROpnJEiNcnU09FY0JWdg8S/c8/vQl+Oj/oCGc+uKCl+A251EropXGmaQGvI7dL28 6qWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Brtp5Tzl; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-142951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c15-20020a0ce7cf000000b006993eecb98fsi3890645qvo.304.2024.04.12.08.28.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:28:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Brtp5Tzl; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-142951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A04251C2456E for ; Fri, 12 Apr 2024 15:28:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89B981474D2; Fri, 12 Apr 2024 15:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Brtp5Tzl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8319B144D34; Fri, 12 Apr 2024 15:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712935706; cv=none; b=V5tBrGthsBtIELZWozhu9ipPMxlh+Y7a4RLWwJvAhVFjpGvo18PB4/0h57eYRvx7Xh5aywEUbK5rxhX5ENRNrwJUkMcphlU0180yuCkZjiSVZLFuWwkLiokDwilwM4z3XQbiBg0PpJeqEx48mH0baBrs6YlQyYWF8aY4h7/ppus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712935706; c=relaxed/simple; bh=0GPAx3B+uC1u8pMMt3HI7wNGi3jM/KEZtOQcPni5jHg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l2P7jtH380wr7AD0Em1azfGRrpmFcI325Q1bvYdRI9bhI+yYbu5FLrXlDMMv50uPC2VrD/15jeoeN/G4CeIANvBW+M7fngqMUXGOygI90Yjarrs8kLF0FrB7ZyFnx5VXjtvE1WsWNxX/Po2wJ8fPe5kTNOEsVxfcHv3r5PXxdVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Brtp5Tzl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73541C113CC; Fri, 12 Apr 2024 15:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712935706; bh=0GPAx3B+uC1u8pMMt3HI7wNGi3jM/KEZtOQcPni5jHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Brtp5TzlhQO8e0+0nt8tDnuEtZn99kmCrkGK4SNeQPwAJzYxKEJXxbVkzvO2RVdYd 3HsUkNo7VmZTutSu7I0feRtP7KJwpOjAZN5FPbDCrGz7nCnLzdCXkp25w0CpKEhzeM PqQb97nVIYnvwxUSWprJoFJiHNomoYl/4WtWw7RA= Date: Fri, 12 Apr 2024 17:28:20 +0200 From: Greg Kroah-Hartman To: Parker Newman Cc: Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Jiri Slaby , LKML , linux-serial , Parker Newman Subject: Re: [PATCH v2 6/7] serial: exar: add CTI board and port setup functions Message-ID: <2024041248-enjoyable-barterer-4f01@gregkh> References: <20240412111926.5b4c9953@SWDEV2.connecttech.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240412111926.5b4c9953@SWDEV2.connecttech.local> On Fri, Apr 12, 2024 at 11:19:26AM -0400, Parker Newman wrote: > On Fri, 12 Apr 2024 13:57:01 +0300 (EEST) > Ilpo J?rvinen wrote: > > > On Thu, 11 Apr 2024, parker@finest.io wrote: > > > > > From: Parker Newman > > > > > > - Removed old port setup function and replaced with UART specific ones > > > - Added board setup functions for CTI boards > > > - Replaced CONNECT_DEVICE macro with CTI_EXAR_DEVICE and CTI_PCI_DEVICE > > > > In general, you should try to do refactoring in a preparatory patch (one > > refactoring thing at a time) and add new stuff in another patch in > > the series. I didn't go to figure out how much it applies to those three > > items because you likely know the answer immediately. > > > > > - Moved "generic rs485" support up in the file > > > > Please do this in a separate patch. > > > > Will do. > > > > > Another general level problem with your series is that it adds functions > > x, y, etc. without users, whereas the expected way of doing things would > > be to add the functions in the change they are getting used so it's easier > > to follow what's going on. > > > > I believe if you separate the refactoring & moving code around into own > > changes (no functional change type patches), the new stuff is much > > smaller so there is no need to split that illogically into incomplete > > fragments in some patches. > > > > -- > > i. > > > > Thanks for the feedback, I am new to the mailing lists and am trying to balance > what you mention above with not having giant patches. It's a fine line, and takes a while to learn, but as a first cut, this was pretty good, I didn't have any major problems with the structure of it, so nice work. thanks, greg k-h