Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1708884lqg; Mon, 4 Mar 2024 00:54:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXr/TDIkdyV6SE5xA4x8gaTvmTqsKrwpUg9Qa6yXpfkv7Ar/KCJ5mZFRMN+rWaKd+4PLdEK/0C6gNPdjV8dpVpm8WA3Uy/4nlFEw9Z4OQ== X-Google-Smtp-Source: AGHT+IFUrnHSLX1qEThbirE83U7h4rbU4XcuMuawvyXb/5lngVRqwOqzQItxCU1N6z8fEuVztoXV X-Received: by 2002:a17:906:8412:b0:a3f:c779:aa62 with SMTP id n18-20020a170906841200b00a3fc779aa62mr6087622ejx.21.1709542453185; Mon, 04 Mar 2024 00:54:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709542453; cv=pass; d=google.com; s=arc-20160816; b=wzPzwFs0JJLyHi6w3g1Bvvpnf92ZyxKoXnbar6tpi86sGJQkcN/UvCJOXIsjXtSeWQ xmmeoJKR2VZG3meQmb1UmdMyM5DOUThI91Cbh2asyjBjebcSfibdoGUBGq4GCW+dfENb MVAKvxjVm1bo+IArauj15p2L8pS4W1q3p2B4KnF3B18p9mvgBflvK+a51xTfhPkxiRRB gRyqcG5gXvS1+Jhgrww0cRnpMvektq9t5XMwLYdXDAxrp3qKakwFSqKqyyYKnzEZzzKa 0FwynzkGlnExXx9TWo/82dOvDkr8HtgZQtiglTe4TCux3j4egkecTkai46SVG3yfS5UI gROg== 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=arGfWt3nYggqdbFkOyDnpElgv41NwsTpnmkeDnEM/K4=; fh=P3ijG2N5Zl1VVmP+mIEKXedsX1LeNALmZjO0YB2CSjU=; b=XOzgu16/RwBrH4YrnpXsSb1POo4QLD8XrYk0NsPcK8Lx+y72vsubGGCS/nGjLXio0p HKd46Y6HgU9RZBGx4pizvfSeXTWG1ujq+u8u60nUwv4BKl76AentbE7L7WY4q6yEh6Zq JypIMTtmlbMfuRWOnzrHrctmwS8jBcCGTXo5JqgwSBs6c2FeES/Jrm+g6ZNIsgr+rvKc LyAojsqAJ/WtORH4q+WOZoEeSgIZ76jORy8Ijfhq+ZEf3DYQqSzhoKOFpH8W6PnrAhEO MaZ5p+UpznC7OpWW9tJXTasjWf9BcWbHZ0fU7uMy6dAK3IfgcQePxqPPe6wOsNz0kI4z 3cOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="O/Yv4jjW"; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-90247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 u6-20020a17090617c600b00a440858706csi3939775eje.563.2024.03.04.00.54.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:54:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90247-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=@microchip.com header.s=mchp header.b="O/Yv4jjW"; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-90247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 D7DB31F22525 for ; Mon, 4 Mar 2024 08:54:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91D762BB1C; Mon, 4 Mar 2024 08:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="O/Yv4jjW" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 90DF61B5BA; Mon, 4 Mar 2024 08:48:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709542120; cv=none; b=Bd7pxvdRIaWCnWUOAAZLgf0Fa9kzReiCs5fCkZc/b8H3WsJ7e/IHFF2jE95X+mHnEFKZ0CmMvxNaGjGM5m+ysfQggg0Iqd5i5zUYLxCWS2OZ2sfH3dr5pU25I1R+RORdt1gF/iZrlIP8MWjhE8c77ptAS5LY6kxkQJF/IwtMH0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709542120; c=relaxed/simple; bh=aDaQk+e4RDumn7Yg8P8fB6cB9SWjCDIX6AqVX7ZpLi8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iB7bgJgnzoR8uMN40OBOqlNX6uDWPto5FR7BFw8cKy94XOk5I73MptjavEnKhpBUOXmVh6dt6FCghKzbBXtcCz04XZZBebePpjzArLm8mfcnuyaUSiGxAOYfk6oYKqIp6iJNbE9C1BnfBP/ee5/MSNrvzgb4FuHx3mIcrpW6waU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=O/Yv4jjW; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1709542118; x=1741078118; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aDaQk+e4RDumn7Yg8P8fB6cB9SWjCDIX6AqVX7ZpLi8=; b=O/Yv4jjWM3j7Ab1ri19x9aDilLd10h7eCQgUnUmRh6V3tcUtGTmA7f/+ Jnb/jGzXhJ85YPCWfknPFu/9EWltUpaG5wvEKX1Sm9nZNXlEZN3eIx90E 7zrDMfO/wZTl7GYWYYWivttev/QG27C0eHeC2/F6d/S6/Wageh6h64iAi RVhtVXsp2lvgS0hC0Gj8O+3Rhe+cBJz/Uh/eTmqwvEv7TJ9dj5P2MWps4 di3IlEGToRGc8XwgFRPcGVKgVvI+QinkKEz6X0MD4ypVqr1HyroQz93py Xu1GwCnAmsKVt2e+EYvYtxgM7P9nen+oujDIS3dCZLtKS74ytzCLVFM7v w==; X-CSE-ConnectionGUID: YdiFYxKvQ4qBuHr5LrHuig== X-CSE-MsgGUID: fvjNirW4QnitNI0pcGiNgw== X-IronPort-AV: E=Sophos;i="6.06,203,1705388400"; d="scan'208";a="247913449" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 04 Mar 2024 01:48:37 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 4 Mar 2024 01:48:25 -0700 Received: from localhost (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 4 Mar 2024 01:48:25 -0700 Date: Mon, 4 Mar 2024 09:48:24 +0100 From: Horatiu Vultur - M31836 To: Jakub Kicinski CC: Arun Ramadoss - I17769 , "andrew@lunn.ch" , "linux@armlinux.org.uk" , "hkallweit1@gmail.com" , "wojciech.drewek@intel.com" , "davem@davemloft.net" , "pabeni@redhat.com" , "edumazet@google.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , UNGLinuxDriver Subject: Re: [PATCH net-next v2 2/2] net: phy: micrel: lan8814 cable improvement errata Message-ID: <20240304084824.y42djaciaeq5gqz3@DEN-DL-M31836.microchip.com> References: <20240229195220.2673049-1-horatiu.vultur@microchip.com> <20240229195220.2673049-3-horatiu.vultur@microchip.com> <80bea3ec2ec86d2e75002f849da174f50e0b846b.camel@microchip.com> <20240301072757.t36qqf47erk4jygr@DEN-DL-M31836.microchip.com> <20240302194041.5d8f8fad@kernel.org> 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="utf-8" Content-Disposition: inline In-Reply-To: <20240302194041.5d8f8fad@kernel.org> The 03/02/2024 19:40, Jakub Kicinski wrote: > > On Fri, 1 Mar 2024 08:27:57 +0100 Horatiu Vultur - M31836 wrote: > > > > +#define LAN8814_PD_CONTROLS 0x9d > > > > +#define LAN8814_PD_CONTROLS_PD_MEAS_TIME_MASK_ GENMASK(3, 0) > > > > +#define LAN8814_PD_CONTROLS_PD_MEAS_TIME_VAL_ 0xb > > > > > > nitpick: TIME_VAL macro is very generic if it can end with specific > > > like TIME_VAL_100M or something similar will gives more readability. > > > > Actually I prefer to keep it like this the name if it is possible.. > > Because the VAL_ represents the value and MASK_ represents the mask > > value. Therefore the actual bits name of the register is > > LAN8814_PD_CONTROLS_PD_MEAS_TIME. > > > > I am trying to have a naming convetion about how to define names in this > > file: > > __ > > Why the trailing underscores, tho? That is not really needed. I will update this in the next version. > -- /Horatiu