Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp989003lqh; Sat, 1 Jun 2024 05:03:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5yfGsBnOxPfaOmH2UkjcLuyZqzyk7XeYIhvXjbQNAk08NWNNPfU/PeB0xnCI1kUVjst+dHVnU6wWFz8P7qike4d1R9Ps/JGbx44u+bw== X-Google-Smtp-Source: AGHT+IERdsh+Wo7l0jVnpNw5RfMNyvadOc/uKvE3B8xW5g+J6KZaGqhFPv9bAHHjVFF/H89YsPJ6 X-Received: by 2002:a05:6a20:3946:b0:1b2:3998:404 with SMTP id adf61e73a8af0-1b26f0e6212mr5350494637.4.1717243432147; Sat, 01 Jun 2024 05:03:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717243432; cv=pass; d=google.com; s=arc-20160816; b=Ze9HiYQEfab5F6Tb4HrDuKQ5YjRaTDtEEygJ2ojWxqbOrQCcn377KR7NJj8/U5wXyF Mu8fZ0+EszAglWvNQgTBgndyp8UDp3X0goBXc6VmU1ufN0T1XuNxRkS6Y2H1hK4Yzqjq o9wGRiUOHghalgGbcNfGd/JzVa13ucfs/T1Oe23gozJj7CGgmLWwzphthB1dcEsJIU52 Tsu3usW8OLmKz5gMIOkU1+0Sqt9Djy0ss320Xni0xNce3EKx3KD8uT7JjqG7UprUXpHv dqo+MXRHzAdAwnRoHIdM/yeAURqB1oIZ9ti+LjcV/SVwCUXuYIp0a8UlkK3Tbo6Wixca YO2w== 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:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2sykJXsXRs/tgoazeglmsB2PbQRf7PejW9QpGCO723I=; fh=fmqpKijig0waiQFux3lhp/tTYApVlZ0wbcj3GY6BfPA=; b=Rd6494U34FrSawbL9OU9TPPqWAP/tVdv6HMQthDnHjEtBvCL6xWD1seV3dYpOrfrbM qFTRt7JaVwZPgV9C957rho1jh6MrCWEr1h2YTrE69ajXuoYrrNzeFPMEYY6pyV7bdykF ohYS8GF8PS6RQaPxZlLhXFjKzczJVwZvCLH30U0DiBpsFaYZ3XfbIpVTbDnhGo5IYfIA Gzmi4DSrgTBhAEczQcSrcSbVKwQlJC6oUNNx0BrYczfs2ptWzxPPQ+B19jaQgkikz91h 6WZSnwlmG4DBdlVD6a4Tatcup5/O9v8PkiBNu5ReD0cxME0rb66b4OWn9yVvKXeap40G gSVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HTWNcZGD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242d58e99si3228065b3a.349.2024.06.01.05.03.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 05:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HTWNcZGD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197821-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BD87328246C for ; Sat, 1 Jun 2024 12:03:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C54B614F9FC; Sat, 1 Jun 2024 12:03:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HTWNcZGD" 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 E5B312B9D5; Sat, 1 Jun 2024 12:03:40 +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=1717243421; cv=none; b=aHV6snt7+Qql9Nkxm2DEJJilsmPppUIPeN+rw24szP/QgYpxXtZM60Bn+GHckM7IXT6bERaO2z+zU/tcPYPZAVJldNb1J7iPzRR1n1HOWm3wSDtI4O3felfw5COPEyRo52Rex2y1nf9i9NbJdJvM9Dp3BkSnySFHycs35dKIEPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717243421; c=relaxed/simple; bh=UNsWjC/ISWYgvv61GcoYqy5Ul2KBLFUzp8qiwLD2F6Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rlZIsNhuNqAejjfZbu5S8zKoKn/afqTnqgOGaiZUs8WHfYs+JSJYXiLTGm+JYmfJGUGDo+ClUAQ+JXC11I1X8/8uks/nDtIgbnA7dTCsNoNPncDFGyE2IWIwAxlmQmSRZZRJSzKDIAn41ve+nxguTBig1nhQF6zf0e6kg/2uQEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HTWNcZGD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 561D3C116B1; Sat, 1 Jun 2024 12:03:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717243420; bh=UNsWjC/ISWYgvv61GcoYqy5Ul2KBLFUzp8qiwLD2F6Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HTWNcZGDeKaJe4TqGxS4n6zAiabGPLMCbYV/PpW0EAdHSkbbkaK14HoZ1nenMBDpN OiBg85fbOaDDNe3MizLlIdSUDXNrNrjJ53mb7FnNaRI0As/4dPIN5emm4ItHVAo0Xg rM22eCrwnoiNcvqPSMAWYRS/B9yMPvwwSNhfkkl8rvnUyzY2977dVy8WPc9Ira2TeM 8M4TWG8i9hZ8LUuVWcjfUuITk9cHutPnPAKSO1ttJsCz2ueOugNlq3go6QcK4pPZ/A GgQxGd9d913aGuwA1FmJ0ogtqAQS4QYaAM6pUCsgR7UADG2MN9mLR6ZbZG9wbgChjM r9T50TsOglwnw== Date: Sat, 1 Jun 2024 13:03:34 +0100 From: Simon Horman To: Diogo Ivo Cc: MD Danish Anwar , Roger Quadros , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jan Kiszka , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/3] net: ti: icssg-prueth: Enable PTP timestamping support for SR1.0 devices Message-ID: <20240601120334.GF491852@kernel.org> References: <20240529-iep-v1-0-7273c07592d3@siemens.com> <20240529-iep-v1-1-7273c07592d3@siemens.com> 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: <20240529-iep-v1-1-7273c07592d3@siemens.com> On Wed, May 29, 2024 at 05:05:10PM +0100, Diogo Ivo wrote: > Enable PTP support for AM65x SR1.0 devices by registering with the IEP > infrastructure in order to expose a PTP clock to userspace. > > Signed-off-by: Diogo Ivo > --- > drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c | 49 +++++++++++++++++++++++- > 1 file changed, 48 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c b/drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c > index 7b3304bbd7fc..01cad01965dc 100644 > --- a/drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c > +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c > @@ -1011,16 +1011,42 @@ static int prueth_probe(struct platform_device *pdev) > dev_dbg(dev, "sram: pa %llx va %p size %zx\n", prueth->msmcram.pa, > prueth->msmcram.va, prueth->msmcram.size); > > + prueth->iep0 = icss_iep_get_idx(np, 0); > + if (IS_ERR(prueth->iep0)) { > + ret = dev_err_probe(dev, PTR_ERR(prueth->iep0), "iep0 get failed\n"); Hi Diogo, A minor nit from my side. No need to address this unless there will be a v2 for some other reason. Networking still prefers code to be 80 columns wide or less. It looks like that can be trivially achieved here. Flagged by checkpatch.pl --max-line-length=80 > + goto free_pool; > + } > + > + prueth->iep1 = icss_iep_get_idx(np, 1); > + if (IS_ERR(prueth->iep1)) { > + ret = dev_err_probe(dev, PTR_ERR(prueth->iep1), "iep1 get failed\n"); Likewise, here. > + goto put_iep0; > + } ...