Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp991538lqs; Fri, 14 Jun 2024 11:17:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFWvs8XNYuT9Q6qRGRm2XA/qCFuz7gZaIqY7jruBZjaYMDdJ/fIp+7tBeICceNvsMwF7g2LT1NSYg9vonqAiOQM4gK5hUDnc1T4858eQ== X-Google-Smtp-Source: AGHT+IE3YIl0ToZh4gRlj+q3r61wilArAPzgTTcrcbgMVrpyTNLkAwztf0wrBRQEW5BIJZp2j1rM X-Received: by 2002:a17:906:48d:b0:a52:3583:b9d0 with SMTP id a640c23a62f3a-a6f60cef3demr237700266b.3.1718389021894; Fri, 14 Jun 2024 11:17:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718389021; cv=pass; d=google.com; s=arc-20160816; b=Zpn74V57XlsDRuxA0AH7u+Ady0sB6HjHnwSgMaMUskTk96aneAA0oB2vqhR92ctNGZ wM0Cf5MLMx73nfxYsZaxwSZ5hveEsLueTOpzpiKZbVKq/RiJ2MvaWw2XLKS78bClKI2C TfDVoX6B45CBEOIQK3SefoLNHERgxDcylAtSfckSI3PmmHrbkbxOq6IgqJ5Iy+e5W4g6 BcnvQXUl3ua42TAtApQ8Y4EaWTwQPrE9pbnFcKifhNp3/eYPUhO3ifEfGFzVeRbXI7LU 7FsEfr/CCU4zo5Ko4OxZKjfwuaQqigkCEFVUw1Tk24OoDyj8xbwT2y9s9TBZ9hXtiNND 7SOw== 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=6/9r/NEdMohFee33dMVvNr76HDxRwxYVUB3+5R4hQZU=; fh=OUCm0Pc9RFFXfdhqbkuiOg7GDnsVTlV5lY40+RYg+ds=; b=yKL/201m/3NyMbfknzyjPgegQDmggRX7gviiJT1Vm5eJ/3sCiCrREpenIHeUKVZqjg Uxe3YQMOYNGCCwWIIsDZXs6gbRRokKHVHGL/KjYPypx0ckKUpeSRDEE/+djmJcDEsgMG 2MLiPNXjCJ7Oo5YSXcYYOrAcY6vS7tmQMJUbaZzX9kknrE3LQTO8u/GiGwvzlftOsOk8 Vn9GAbbf8Oyma5ezeVyj0izwhdyf+OTVuKXFsEWnglMHJ9qEZ6o77fOj4X+KGD0zJFkk cohKqy4b8YUbt450zq9ZwWI4LchqY9+wsknoYJyXzND9dD/DHYjPlMmCzgB6XpfTAXQL pL2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FdNCTGQE; 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-215398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215398-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-a6f56e8004bsi196303066b.935.2024.06.14.11.17.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 11:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215398-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=FdNCTGQE; 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-215398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215398-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 9AEA71F23D69 for ; Fri, 14 Jun 2024 18:17:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6EA19CCE8; Fri, 14 Jun 2024 18:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="FdNCTGQE" 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 BBEBD1854; Fri, 14 Jun 2024 18:16:50 +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=1718389012; cv=none; b=XIP8BA+m+f2DS/WP5GO+wgrthlYyF5R6EC8k4XwI5D4Iyb1l38k0PpvGyylAx36ESxsOuC43guU51+EhbHihf2Pi4Kai6LEDLM/PmkuoQNGDONhlmrT3ogU5jVzUul7MDtSWfPZiCodegUeLq7+3NlkoeRPdY8TVddbCeczwXM0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718389012; c=relaxed/simple; bh=JkDujCY71x7ysttBitt69fHWEEaGlbrnQylnP6rlZPs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BWsEuzPEm7I+0NsGU/W/56koWWVDVgdA16NdMeYGWwSGMdp//9QkvvCN+Ow5Ccuc4urMl6Op0c/vIZlwj+cfwGFHXwexLEW6VURM1yFGbC1hSBXNRQmfnxhKlbfIBbQH3/RUQ7D1bAtvug9RXJOPFASW5GbWa5ymULiTbtBSxxE= 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=FdNCTGQE; 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=6/9r/NEdMohFee33dMVvNr76HDxRwxYVUB3+5R4hQZU=; b=Fd NCTGQEZnJbGJubZmNxMemPpWIuVpQgqAz2qtR7RAJAlPI2dDKhfbZVlfHyFB6pSx+QbPXJl+H1w7a q4OAHx07XXi25pf9xVq+Glu7iyJiw/KEHg72OtH7pVE9AC7LXwkCqzn1yz+6Bl2Y8FpOCL9aA0q5u 7Thb291WGulLEH0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sIBTU-0005Ml-Dm; Fri, 14 Jun 2024 20:16:32 +0200 Date: Fri, 14 Jun 2024 20:16:32 +0200 From: Andrew Lunn To: =?iso-8859-1?Q?Jo=E3o?= Rodrigues Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:ETHERNET PHY LIBRARY" , open list Subject: Re: [PATCH net-next 2/3] net: phy: dp83867: add cable test support Message-ID: <21b38798-46e2-4a26-bf8c-554524fdcdc4@lunn.ch> References: <20240613145153.2345826-1-jrodrigues@ubimet.com> <20240613145153.2345826-3-jrodrigues@ubimet.com> <20240614185210.3a53be61@pcn112> 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: <20240614185210.3a53be61@pcn112> On Fri, Jun 14, 2024 at 06:52:10PM +0200, Jo?o Rodrigues wrote: > On Thu, 13 Jun 2024 19:19:45 +0200 > Andrew Lunn wrote: > > > > +/* TDR bits */ > > > +#define DP83867_TDR_GEN_CFG5_FLAGS 0x294A > > > +#define DP83867_TDR_GEN_CFG6_FLAGS 0x0A9B > > > > Is it documented what these bits actually mean? > > > > Andrew > > No, all three (CFG5, CFG6 and CFG7) are undocumented. Then i would suggest you use the magic values directly. The only advantage i see with DP83867_TDR_GEN_CFG5_FLAGS is that is stops you accidentally using it with CFG4, etc. But magic is magic, and you should not really hide it. Andrew