Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp297301lqr; Wed, 5 Jun 2024 06:32:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6XhkIqgtRoX4PvINbRVSMrDbwu/JodtiLethwyjEqMPMcbIoKrrfkHDez7ghr0a+Xu70WChFsGUxKxdQtT5G+vplt+Os+tAtaIpe4Vw== X-Google-Smtp-Source: AGHT+IEmxfMdrnX71FZfs7D8x3s39cAcwbLVk73Co+S7vknWnSCcuWr4iVysToP/sTTaaS5J5DHY X-Received: by 2002:a17:906:c348:b0:a68:ceca:db04 with SMTP id a640c23a62f3a-a699fac1feamr181741366b.36.1717594332466; Wed, 05 Jun 2024 06:32:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717594332; cv=pass; d=google.com; s=arc-20160816; b=APDsyMHIbR6Uebjj72GwLPuC/cBpW6ZyEf4A7lbjV1Mw7tX4VBx8AAo63+yqvQuiJo JZqt6wbqCCfAWxv5X7THzOCkYxc9l1nE2C8fiNnpmf+WURM1MQj5S5+/VPYusA9a2Zji i4CwjH6wb8SMtc4EYskdAFzV2pBgBSm8j64mbgjVwk0JAiytvRFrNxgx9yif/zHZaviQ WTgGsj0S6wUN6CGld03FIJ0dCIKQ7J5aVXXq0fZtGf1BaCb89qUa6bZYGZsgejOn+NWH /sg78XAPVj+8o0Pb/qIaGyGLF3EPZdFo0JRxMSNiNgbdx5+WqP6Rd/Wy4Ms+HJiU/rst r7Gw== 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=jHK+VGXx/XSDdyxRt8MiiLhiSv486K/yj3Pv8VY4j4o=; fh=xb6l51CJfLAksfZAJ94rIFb5Qr+HiDkQnw8JWMoGOBk=; b=QRIGTXglLXD/hw22UQo+3uYFsTKHRZ9DdEVsyZKXZgpIExUq8FTdZReVg+l8pfHh2b WqP90tUjDlVcw+d6Zn6EZ2EYWbClyNIild+KXk2HcRLRcoyCaM15QTecCL+Z+7tBF2Yt 4gNNQL8xVWTl8wop3k/036MTww+ZJB+sNku0HU19oHcXnmY2MdaVy9Vw84PBHuhV7fMa AK2DD/fmjMo3ZGVyAfQq2brtmB+Tgc4r9uFKeTxi7sndcZ8a2KQefhsBn24lyb8EMfmn 7WR333P4S2m8DNVMTnFWbhr62unxgj1orqMBQXBhSaE40OR8s+uS0KEWBMhL+A37Zl28 FJ9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=QSC43s6W; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-202659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67e74f0f8dsi635940966b.261.2024.06.05.06.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202659-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=@lunn.ch header.s=20171124 header.b=QSC43s6W; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-202659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 8B84B1F274AC for ; Wed, 5 Jun 2024 13:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 913241ABCC0; Wed, 5 Jun 2024 12:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="QSC43s6W" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 248F71ABCCF; Wed, 5 Jun 2024 12:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717591915; cv=none; b=dzr93W3gUrjYO0sj66KY/Vt/58DNdrSZKVl8BUg9IFVjkmAzKP8gJ/F2OO3T483eaq2jyhJzMhkUageszfPy2rAnHuqkjrxvDRZRz+eWpC+GspwGJZ0yMSjCuM3oV+TLtXYUn6XqloThzQ7pm1a77kzPKBMpwqNOqEtiEiUyFUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717591915; c=relaxed/simple; bh=7b3K+w7SU6Zgx7gYPaVhHcjQsYqx4h6QADPUjr0DOwQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dWfpWYKE4h4nVNrCGDEW7ChcqlBB7mT2BY96Fr+gR5o4zc6527yw1zTuxmLgdb/CrgXSLSw94HqZGtnUr6G/D4I6bOAIB/JXzsSbXIpx9kDKCF+0j63VGDdknKcrolL1IwzOJ0dRmRdgPTD9gb6mRbYA6AXfd6C5KP44mDstZ/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=QSC43s6W; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=jHK+VGXx/XSDdyxRt8MiiLhiSv486K/yj3Pv8VY4j4o=; b=QS C43s6WkA1BfEffX0y0mPjIiwyYSmhTMkTIbiSiXOOQzPaqfHI3pDwYrxfev20cqJOE5UFgqtzYt9E uhLb74yHIxCifYsPiIzjMI2NvlTmnEwYjhDQFt0z9w8jlDUTViFtyvCk+X2ZSt/g+wZqnRbQfK490 dIKmj/Kt5M3ODCA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sEq7L-00Gubz-G3; Wed, 05 Jun 2024 14:51:51 +0200 Date: Wed, 5 Jun 2024 14:51:51 +0200 From: Andrew Lunn To: =?iso-8859-1?B?Q3Pza+FzLA==?= Bence Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org, Heiner Kallweit , Russell King Subject: Re: [RFC PATCH 1/2] net: include: mii: Refactor: Define LPA_* in terms of ADVERTISE_* Message-ID: <331930db-f5a1-4ad7-947f-7aaf5618c646@lunn.ch> References: <20240605121648.69779-1-csokas.bence@prolan.hu> 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: <20240605121648.69779-1-csokas.bence@prolan.hu> On Wed, Jun 05, 2024 at 02:16:47PM +0200, Cs?k?s, Bence wrote: > Ethernet specification mandates that these bits will be equal. > To reduce the amount of magix hex'es in the code, just define > them in terms of each other. Are magic hexes in this context actually bad? In .c files i would agree. But what you have in effect done is force me into jump another hoop to find the actual hex value so i can manually decode a register value. And you have made the compile slightly slower. These defines have been like this since the beginning of the git history. Is there a good reason to change them after all that time? Andrew