Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2672442lqo; Tue, 14 May 2024 06:10:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeQHBux0jFxSKpkOFbf3UOtRGF8hBI3lz5NH0XqMheVQOq+Brk5hf+ZWsuU4GoH+PvwOti07Wy67lrt9banw2mVcz2L060+phSLQokDQ== X-Google-Smtp-Source: AGHT+IGejrHibKAoXay3oe7W4HmSbpAMM5DPYaHWLJeNonnXbE4txTLVonD4LBTo8nWabJBU73c1 X-Received: by 2002:a05:6a00:27a1:b0:6f4:46ea:2f28 with SMTP id d2e1a72fcca58-6f4e02cea39mr14065189b3a.18.1715692247899; Tue, 14 May 2024 06:10:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715692247; cv=pass; d=google.com; s=arc-20160816; b=b1Dmoecq9pnq5hdWEfDTfTWp99DhxRVg3JsFJ+v9Nh5AnF8ilcNE8UBgGSBhfbls/C 5908bEkxroSXgqENauv6pNoizqJE/cA/XjSZ7FR6j6YWwmSxY1djeF9Xs1KaWBBcDZho l9X8GjuboO3sSB+KLhXabxT5Ny5PouH3ONeIa+igY+hIPDgTaA9tADykJ8fiq/uxxyTH fQozp+mYxYWo5N+5hRg3UreUP61V/UtejFWh8he/kXKOQHl06+p02+So0AsohKJ/UUp/ oBQs9eYZ2+TPzDcx3EUlOwBd5PfzrR4bRnHLsM3zg1QEV7feEKdV+FyN0xuBMwwBlMSy uLWg== 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=qawFOO1lYL5ztdc7toCwvMFh7tarh+OmXydhWJWRKUk=; fh=jNxG+0gCwcZkA38KnLfggGdDIxDFMyccp0npRKSntD0=; b=rUqWvyRXSOtI3bwa6DI+rFAGntkAWguH7ZUmzm2Pe2WuFANlFuajrO+2paatJ/ArBC L/FlruvWm9DvwURP4CsDA9SWMP8ZY0ShjTj3LOue+tA2lgQQswNobPi5O8oyRG7UW8hb 367ki+IVzJm/fkrAjoRx6DwzqUVy+4vk5/MB3/5vCjFu4vap2fsnJuI9cNtdbglOv3OF k/93i5qnQpUsIoljHqK/dy9MhtNYytahifa+Bxb5AoNiR4v9nDj9GJaBE+4e7Q7yA4rT rhTz8APgQuxWu73OzNyY1y438c5A75otL0xBbc4r7XwMyZLzr6GGRIVTvY7cLhksbQy0 D+LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kqcd9f34; 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-178698-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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-6f4d2aeee86si12360948b3a.177.2024.05.14.06.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178698-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=@lunn.ch header.s=20171124 header.b=kqcd9f34; 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-178698-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178698-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0A2502844A6 for ; Tue, 14 May 2024 13:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F849143742; Tue, 14 May 2024 13:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="kqcd9f34" 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 BA63714199C; Tue, 14 May 2024 13:09:14 +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=1715692156; cv=none; b=Ue4g6StQo7qdXmJa/IqKpSxMucMPKlGoJDJkl5ddCz7z16AOk6Ak6bomFl8nsWLBJBJWfrP0QLRauMo1ws3YW9z86XmfVPbI0cMFHpRx37h3//r8G/8X1bQrcPS13miM9e3PJPgP2tDSHq+AdPbuOkq1Q3DZQ8klH1390HGpD9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692156; c=relaxed/simple; bh=IMciIs02jZfJJNuVLxbbibqMHxlWWQB7g6LZ+KmsTbw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a9thy9pKO7LwhwP+ueUkkmSDBYyJaEmJ1dd/OCeO/EImCPINfaGr53+L7NvIShSNe8VV0O5SLXwVgi3tkblMxinb3k0IyHqgaKn0/3tiqVzYg8oE992aq4iUEygTnByZvtI7UGctH0t4hVSR8lFIU5awl2fXWVwxOoCPgzgU1po= 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=kqcd9f34; 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-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=qawFOO1lYL5ztdc7toCwvMFh7tarh+OmXydhWJWRKUk=; b=kqcd9f34BPPW8ZPHox5dB35Jxj G7xketqHAI0NXcl1aFE7G8SHbe6nkEIfQl3+TxFxHYrnNh0Wa2G97z8ivFKE0mZXhy/1CY/CFUsTA TGnPNmGV7x0ahYOhg4IVkwVJ5P2rZTpw1UZ98YK/UK9VJ5YSP28UJxSjMtESSgk3Vxz4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s6rtr-00FOB2-Va; Tue, 14 May 2024 15:08:59 +0200 Date: Tue, 14 May 2024 15:08:59 +0200 From: Andrew Lunn To: Thomas Gessler Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, MD Danish Anwar , Ravi Gunasekaran Subject: Re: [PATCH 2/2] net: phy: dp83869: Fix RGMII-SGMII and 1000BASE-X Message-ID: <16f79b3f-0b33-4196-858a-b1469ed1200b@lunn.ch> References: <20240514122728.1490156-1-thomas.gessler@brueckmann-gmbh.de> <20240514122728.1490156-2-thomas.gessler@brueckmann-gmbh.de> 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: <20240514122728.1490156-2-thomas.gessler@brueckmann-gmbh.de> > +/* FX_CTRL bits */ > +#define DP83869_CTRL0_SPEED_SEL_MSB BIT(6) > +#define DP83869_CTRL0_DUPLEX_MODE BIT(8) > +#define DP83869_CTRL0_RESTART_AN BIT(9) > +#define DP83869_CTRL0_ISOLATE BIT(10) > +#define DP83869_CTRL0_PWRDN BIT(11) > +#define DP83869_CTRL0_ANEG_EN BIT(12) > +#define DP83869_CTRL0_SPEED_SEL_LSB BIT(13) > +#define DP83869_CTRL0_LOOPBACK BIT(14) This looks like a standard BMCR. Please just use defines from mii.h, since they are well known. > +/* FX_STS bits */ > +#define DP83869_STTS_LINK_STATUS BIT(2) > +#define DP83869_STTS_ANEG_COMPLETE BIT(5) And these are standard BMCR bits. > + > +/* FX_ANADV bits */ > +#define DP83869_BP_FULL_DUPLEX BIT(5) > +#define DP83869_BP_HALF_DUPLEX BIT(6) > +#define DP83869_BP_PAUSE BIT(7) > +#define DP83869_BP_ASYMMETRIC_PAUSE BIT(8) ADVERTISE_1000XPSE_ASYN, ADVERTISE_1000XPAUSE, ... Please go through all these defines and see what match to existing ones. Andrew