Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1751174rdb; Wed, 31 Jan 2024 08:03:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1j4qI7Yv8LPEJMlWll/3/a4XppwjOBxHszMmi/RC/KmSRrBBSJLJq74rRcuPLbzxsL9tT X-Received: by 2002:a05:6358:7e4c:b0:176:3457:c380 with SMTP id p12-20020a0563587e4c00b001763457c380mr1905537rwm.6.1706717020948; Wed, 31 Jan 2024 08:03:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706717020; cv=pass; d=google.com; s=arc-20160816; b=tLR9JUjq5khlath4VY79NcRbpXpuHL40g/bQqP3RKcGMWr20LgMj/DCuS9OBIAS8b5 WeWhWU/2QnIPHRr4UrzOM/1uPoW2U1JUPeA8/PEc2LYXjjkR+s4iQ2Q3rFcLt74RCl92 4S3ri4Msez4Xcq/FEbXMglDR0XQFTDD6wLYkvw+rodXI2vQg1rPi+sQQAZwdgZ711zHS +QzkDx0kGGqh71A169lSxxVh88e6DQt5kkPhbb3/zeBDdU66Im2olXv+HeuztdFkB2Gx EHq0BrlXcdkLxhPT4bQeiQ3ktA8zyncqnCOSRHCYXYhxZK88EG+vG14TAyJhrhSIoOdw 8/bA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=xBKU3bejAum0YxwljyhV/JcpQY+IzH2rCV33bqtavac=; fh=HjA2YVW8JR/pqGCN1dBLigbSGPVW0wafwVIjPeuXuj8=; b=YD+wLrhj827eeVO3mMarJ1MyJf0sosh39QOp7kf4xr9tvlw8JdS9l6vj2TZv4wrQUI xqCTRQ+o5O78FCI/KatbcekXYIXSRyjf0bqRwAlo4detPQma4Z99Tt6n97YSLBU8n8Jr Uo/8w3F0dqWniHBq5u0MBrsZnT7r/1o/niL+t2+9Xt7ZY2Ly6DV7uijywTtkVFQddPEF 5AmSzJzoBrTqm8IYib+AoyYclC6h99oGZCjtAvCOlKNkngnZ5HDv3JZv5SqP2vsHWffz iCjaWr6HHI+Bwc6Y6qjuqeReoA1rGb4icd3ozO0apaH9+pHO/WP0+w4YOLCRAl7LxjKI uo4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bC8LMuwL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVDfwL3W4RghfwbfwyoKGsR5obcePBdhQoYYfnZKWy1TJsgNJuPIlaZNg+z4O5muoQ0Glc7KMfi/YE0THe9S33ymfzjsPjG8iTQ9jpctA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k62-20020a632441000000b005d8e25b1873si3765588pgk.872.2024.01.31.08.03.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:03:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bC8LMuwL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46727-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1B24FB24DD5 for ; Wed, 31 Jan 2024 15:41:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61F9984A5B; Wed, 31 Jan 2024 15:41:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bC8LMuwL" 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 7BF9112A14C; Wed, 31 Jan 2024 15:41:17 +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=1706715677; cv=none; b=Xjv3KDg12W7I4bE6n9075Ma92mjaf9jaR/yN66uKc3uofLCww/PIjUfIx+ECgQvTvDtHX8ZJWAukM7BxhCDrO3rvXiWdQXqF1TDc4pqe/SmuLxQKgIxr57IKIrLXUw9caG9x5KLbpBYVVi+/8eEbz7rXqo4dRdTn3Zmj4w9ZiI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706715677; c=relaxed/simple; bh=xBevo8mgTcKneYq4Bd2WfRYMb/BeHd84UNbx55O+OPc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=oKtKxTBr/fpBaDt2ZOBHQFUjHNdrJHCo1Y3V7Sz1ja2CqXStQtYwCO1PNwehLEAO7OCNwAHG0ganXfxaIG/hdgVoakwPfwFae8SxKPQzKSZFMdERmdDX6domNmxP6bjgBiMctiU5LMzRANDQ7DcvZOsIa5v2Ou8F04Bic/m6MSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bC8LMuwL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DC4DC43394; Wed, 31 Jan 2024 15:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706715676; bh=xBevo8mgTcKneYq4Bd2WfRYMb/BeHd84UNbx55O+OPc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=bC8LMuwLQcG3kBf7jr+fzDJveqKSXqqszKUZXkDsPTDoeatLr8itGi7U6joJxN7W5 aCE/V1bAQVb1PH+MJCe29yr2GiyEIehWERR9I6F62BNqSTKzbdrQK7nqcsS9kcqOAC J5oLHWSlr2QmEPnVJG4m9Vk+nNnHpi+laCcstq+oIHHYMOoEzCu74pQmBhIcaxaGSz 06fxD2N3XX9A3ntG3gGqpMcoPjRIRBdvyiavNbUiIDP/7elaGmlDr9aaurTpYJx0Bf 1msuPCPLcSMHXMo4UDjSxCQMjnCORw7OPO/xkxszV/m7x1fxuoEkZK7S/6HX80gTcQ wTXHNvjj7QQSw== Date: Wed, 31 Jan 2024 09:41:15 -0600 From: Bjorn Helgaas To: Frank Li Cc: Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda , Serge Semin Subject: Re: [PATCH 2/6] PCI: dwc: Change arguments of dw_pcie_prog_outbound_atu() Message-ID: <20240131154115.GA587326@bhelgaas> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240130-pme_msg-v1-2-d52b0add5c7c@nxp.com> Nit: could the subject line be more specific than "change arguments"? E.g., something about collecting dw_pcie_prog_outbound_atu() arguments in a struct? If you know that's the fundamental change, it's a lot easier to read the commit log and the patch because you know the goal. On Tue, Jan 30, 2024 at 07:45:27PM -0500, Frank Li wrote: > From: Yoshihiro Shimoda > > This is a preparation before adding the Msg-type outbound iATU > mapping. The respective update will require two more arguments added > to __dw_pcie_prog_outbound_atu(). That will make the already > complicated function prototype even more hard to comprehend accepting > _eight_ arguments. In order to prevent that and keep the code > more-or-less readable all the outbound iATU-related arguments are > moved to the new config-structure: struct dw_pcie_ob_atu_cfg pointer > to which shall be passed to dw_pcie_prog_outbound_atu(). The structure > is supposed to be locally defined and populated with the outbound iATU > settings implied by the caller context. > > As a result of the denoted change there is no longer need in having > the two distinctive methods for the Host and End-point outbound iATU > setups since the corresponding code can directly call the > dw_pcie_prog_outbound_atu() method with the config-structure > populated. Thus dw_pcie_prog_ep_outbound_atu() is dropped. > > Signed-off-by: Yoshihiro Shimoda > Reviewed-by: Serge Semin > Reviewed-by: Manivannan Sadhasivam > Signed-off-by: Frank Li > ...