Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1250994lqb; Thu, 18 Apr 2024 04:57:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWd50CPnx3iwfGOp8JCSHadn4mk7kJZ9lyr0kVgXeQNF0J1R6PSF9hROs/NciubaEZM2yQIu8uh9Z5tTVhFJVRFNis0hHh5dh7YP6Ga1g== X-Google-Smtp-Source: AGHT+IGJKEqbqEBO2RkdVjAPbSTAzh5ZLt4zcCcWfoslwgh2NJTrWT3cow48sqZEPlYz9LuU5Dfb X-Received: by 2002:a05:6512:230a:b0:518:cb17:c50b with SMTP id o10-20020a056512230a00b00518cb17c50bmr1546466lfu.65.1713441446049; Thu, 18 Apr 2024 04:57:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713441446; cv=pass; d=google.com; s=arc-20160816; b=TNtPgnUXnxMexHHRC4s1JIjVKKZRlgEKGf1yh9HNC0viWDyK3hkVkWQb/jleB/XKxH xRPRCr9f1u+gwJORyeIKLRq7IZCNPvGvKQuoyog5X9kVqsetVRmORS4W2kH5/DXLM3Yc 44g3gpCnxlbsMjcsZAtqWtDhYxfEfNd4h9BsQ1AWxdYkHsVgav2UFmpWFY47nj5bwfaa idIAX50sPXmB1r1+nzHfUmV04bgtTY2LQLgrLZQjQjNbKACCBME5A7ltU4D8ToHSEz2L 0K/G3GzEajlxshBcvxahICj6q8OI4fAR33AZFB1Bti0JdWVJqnim/PmeSPL2rT0YkunC vyeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=O1G2JcwttleuEX4OArtvrIC9rhjBFn4pb36VCCBIh/k=; fh=H5HUMH1A8uLq0gSCoK0bwcgiAHAGo2KjINN5jGNfXlM=; b=J5ocLpfv30W1UhIWU1GhBDPCCXCoU5kDKXQzP61LwjU6sapneSeqI4yMSr2ZhsgubF sonR03lwpQRZQJn3pqDGyXzUFrcnklQqaFPN9ozUn7EK1VMQfqEk7aRdwoHQQgROqVyC 2PhCybWEPuK2E5iLnsDN2edaKQYBkfPaliJ77o5gI/s/4PTGZzMRoUxX9jy8N7OuwnFK maBodQRAT9WYWbl52ruLeNeGj22afA67IYyXdrFOA+GP8kCZTSKcDjC7VUWUTrJGt3Zz 0J6Rkm99hdH0rrC5WakQsR91tMIpv14JF41q7rJ1t90RO4UUJ7e1ZY3CCBRiVsNnqx6u 3c3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Hy2SsbNn; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-150019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h18-20020a17090634d200b00a4e29bc4363si702910ejb.760.2024.04.18.04.57.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Hy2SsbNn; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-150019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9C3191F21544 for ; Thu, 18 Apr 2024 11:57:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A268215F330; Thu, 18 Apr 2024 11:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Hy2SsbNn" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 C99BC15D5D6; Thu, 18 Apr 2024 11:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713441435; cv=none; b=I27qv2qQY785kiym2kiUH34xyBhGZ1Q89aVm4YW8vlHwJ1U53c55dlgUz7hyyGPzlQyqNU4aF8+umzErHGSHhZtqvVxoAFncBixVnv2Vt8yrvUYdrXoauHP/bXk0owjdfR1WQCEeyv7TvnDijdPtPrQ/ihK7C/EG0TVUo2SbI3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713441435; c=relaxed/simple; bh=M7F9AOhLfsq2Uh4staUpb8IChltcrroxoNWvR3Qvuxc=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=IxjEJ3BrwCjMPPf3Hgt/uFw12F4MktI64W4bIeNZogmnEdNbZ05LvG+XuhrEYIthHdlGad+efeT5ubaBXzQatyPn2fdCheG2eXC/gm+EbaH4M5ArQTQJ5K+Rw32jDWRpYBOhtF85DWuSRCVrkMV7r3s9YF9IN8ogbYlyDx1R4pE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Hy2SsbNn; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id AD03D1BF20C; Thu, 18 Apr 2024 11:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713441431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O1G2JcwttleuEX4OArtvrIC9rhjBFn4pb36VCCBIh/k=; b=Hy2SsbNnYmDiJbouDoQakG4O9hhGXW4f+OjvJAR3aQz8kL2s8/mbpBjipIEcykp1brgcjr kJ+d9gSauDycypI+PmrGrD9mrzFGc23eeqRwQYLbkzGRyeXVKEcMiWZg5hWbUgpJznFlRn 5V7abewlK8QD2a6f8PjfAXELplvwBZP2YIPnkUR+48xmyi0cvNa/YPqRE2B2fk1ozWk2Y6 MU2FCi0NcSbFEC7E0hWlLKOWpRrQBUDsU6a9RVthAORmx26StgefFaaICrvbzSgrLdQppE 1ZmdlRAGxtTWxKIcm+wOGUO8UuWr6897yKZsU3eT7r8zUI5i35pKX4KaHo9c2A== Date: Thu, 18 Apr 2024 13:57:47 +0200 (CEST) From: Romain Gantois To: Serge Semin cc: Romain Gantois , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Russell King , =?ISO-8859-15?Q?Cl=E9ment_L=E9ger?= , Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next v3 4/5] net: stmmac: add support for RZ/N1 GMAC In-Reply-To: Message-ID: <232e3b0c-ca55-2da0-1c9f-47520a1bcfbd@bootlin.com> References: <20240415-rzn1-gmac1-v3-0-ab12f2c4401d@bootlin.com> <20240415-rzn1-gmac1-v3-4-ab12f2c4401d@bootlin.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 X-GND-Sasl: romain.gantois@bootlin.com Hi Serge, On Tue, 16 Apr 2024, Serge Semin wrote: > > +static int rzn1_dwmac_pcs_init(struct stmmac_priv *priv, > > > + struct mac_device_info *hw) > > AFAICS hw is unused, and the mac_device_info instance is reached via > the priv pointer. What about dropping the unused argument then? Unfortunately, this is an implementation of the pcs_init() callback, which is also used by socfpga (see patch 4/6 in this series). The socfpga implementations use the hw parameter for both pcs_init() and pcs_exit() so I can't remove it. Thanks, -- Romain Gantois, Bootlin Embedded Linux and Kernel engineering https://bootlin.com