Article View: linux.kernel.netdev
Article #23158Re: [PATCH net-next v3 2/3] net: mdio: Add Cortina CS7542 bus controller
From: Fil Dunsky
Date: Thu, 26 Nov 2026 15:46
Date: Thu, 26 Nov 2026 15:46
21 lines
12041 bytes
12041 bytes
Hi Andrew,
The vendor register definitions describe automatic PHY polling: the auto
configuration register at +0x14 selects a PHY start/end index and the
register to read, and +0x18 contains poll_wait_cycles. I have exercised
only software-initiated transactions, not that automatic polling mode.
Agreed about the comment. The MDC prescaler is bits 31:16 of
PER_MDIO_CFG itself. I have changed the comment to:
/*
* Select software-initiated accesses instead of automatic PHY polling.
* Read-modify-write preserves the firmware MDC prescaler in bits 31:16.
*/
The code still changes only bit 0, retaining the firmware prescaler;
this clarification does not change the divider or transaction sequence.
Thanks,
Fil
Technical Details
Message-ID:
<179570796761.5.9467085930727317606@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372207-linux-kernel-netdev=dewy.ruReferences:
<20261126-b4-cs7542-mdio-v3-0-35739a0f3225@gmail.com> <20261126-b4-cs7542-mdio-v3-2-35739a0f3225@gmail.com> <97babf2e-02eb-4efb-8662-f960a36b9073@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372207-linux-kernel-netdev=dewy.ru
From: filipp.dunsky@gmail.com (Fil Dunsky)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 2/3] net: mdio: Add Cortina CS7542 bus controller
Date: Thu, 26 Nov 2026 18:46:07 +0300
Organization: Usenet Network
Message-ID: <179570796761.5.9467085930727317606@gmail.com>
References: <20261126-b4-cs7542-mdio-v3-0-35739a0f3225@gmail.com>
<20261126-b4-cs7542-mdio-v3-2-35739a0f3225@gmail.com>
<97babf2e-02eb-4efb-8662-f960a36b9073@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="fixed"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="500004"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5N+UuaMokS9IWOF9XVlsFi4az84= sha256:a7Qfrzzjh/5ZNUW6xCnfyTgeUXYmVtcceTbr0HUgSxQ=
sha1:+/gPYmQKsnUBlmOZgRZNDWOV+Vw= sha256:laUU81qWgKgFlCQ+J5IHJgFLShtOc0j40W6FO/EGWEc=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id B17A0125EE5; Thu, 26 Nov 2026 18:46:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id Df7-h5FJen0M;
Thu, 26 Nov 2026 18:46:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372207-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 7A2E6125EE2; Thu, 26 Nov 2026 18:46:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id C2EDF2CE0E; Thu, 26 Nov 2026 15:46:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795707992;
b=G6Yac1nh/mMYN7UXaHirRB6F5Mk7yGZ3uj/GD0k5gI5VkfQfLr/egQR02LaBD8FCBzOC
MfbwB9UUJRd6tDGR1fLVG1ejBDAXr3+rUYRPxzRUkgFhPKAaqS5PFQERYJlaEhjAAqRxC
Bm7d37Ee4khsfLhAX3gZQDI0Es3qoAVez1Cv0+H9ZyWU2hnkXu6VsluuvwK5STc7A9hJo
g4n5RY04salvQ0Ds3G4srWOVK26bXq6GvbBkbSa1U74Iru6nmxAXINfflCyF19m8Asfzh
uW1RIJQDK40rgbRpVcA3MBf8aNk+QTaqU8WpeTWP7IaPUNRUv7Nck1WgHluaaZXIhsQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795707992;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:In-Reply-To:References:
Date:Message-ID:Content-Transfer-Encoding:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type;
bh=ThrtHU7JIVcephohGAN24J7wKmIcAnTwKxtX+IFGbFU=;
b=Srgj0+wkB2pLf4MtaiDQK2fXvlE57JTaJRZhXkyuk1P/++PlTjo7gm/TtSz/6/5EGj5i
PsDJpQuGy+f6+WaXwfSILBECwFvVBlvRqjCKDPitguzALf7TzukTvAMbVgdbMSxVR4Mnc
TcQZ9LvotLm7mbW0DYB2s8UyaAUCne9Ve60akIqR7rTnDZ6+mLswRAQWIH07Z7E5u4UHy
eiLhwi9v0kUhxvR7KoKgHFncMgSrBFNZXJ68wY58K7lV3qwgjG8hMLH1FWJipbNrKuUqL
ogk4wmlPA7d23WwITG2Jt5QiKloR9AIn5k7KbJUcLp8WxSQNGk70+XOTw3xmwUJewhQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ehc10ZS7;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id F27AD606A68C;
Thu, 26 Nov 2026 15:46:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ehc10ZS7
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.46
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795707991;
b=lXoXUFjlU4H6JJBUjNCnzw/IflcKD2xXHUPXtdeyQWPJzhi4gWg7sKKZ6eDDvhZcA94d
zCo9ekbFezG+ot2DbRphj60p15DCC0bVhKbLLCcS9k3x9i+IBJ2hsF09lGDCeThlSuPZn
TFEIkjGBBQ+KJA8EhXKtwhYALccrOkUHi/RCOk+iEAuQ9EgKZrt/oDEfEf4oU/t60g1RH
cW10qu9d024rol0Sg74jeleewZH00bpGybBJaB35bs+lpvhTxCb7gigkLs87YodB7B6uw
QgGhqBhiJRV5I6E+IGkKynGO/1OAWb0VucUXcENWNsHfhzDqpM6vhKx9Qo2sKOD9G6A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795707991;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
Content-Transfer-Encoding:MIME-Version:Content-Type;
bh=ThrtHU7JIVcephohGAN24J7wKmIcAnTwKxtX+IFGbFU=;
b=3bMt8Ndc2R/+pnsWVLoy9/EKXHGuyv5mH7QrkDb9Oa5tBuKn+pSGHESAoPckThwfb0Fw
XmnWeQECt5va4lOZUZ/L79ln6+UfRI7OI1Mvnn88ccu/Vk8OhNhD5/Pei06T4B0VtK7bK
RmiB/BNzpsesUIvTXK9YEMlhMa3D12tDIQV0l0bBznGsAtU6MJlz1Ao0ZBHenkxMhjKB4
asnnK45CexswnEy5+gZbleIvwKGmsPBH1E0c0frotNGf3mSxZFHK733IdCQ4M/mPYAdZR
sKrGIjlU/oLTm2XmUOXZXQPdDDT+xXFc4zuog5S0FHuwzCkuIz7INz+sRKyiOYEX7Gw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ehc10ZS7;
arc=none smtp.remote-ip=209.85.221.46
X-Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8F42606A31C
for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 15:46:30 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C8F42606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-48e3b22e971so3797142f8f.0
for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 07:46:30 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795707989; x=1796312789; darn=vger.kernel.org;
h=content-type:mime-version:content-transfer-encoding:message-id:date
:references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=ThrtHU7JIVcephohGAN24J7wKmIcAnTwKxtX+IFGbFU=;
b=ehc10ZS7ZDz1IL/IvAdVNxSDL9JWgq3HoRFvbcCMC/gcCmwuyephjvNKdKPK3hrvvE
4RCE4OXQLuY06pczn89BcHDypfWL0AOE1JGsWFEh6Dl+co/5zsEMvHMU6KLc5sKN3aKM
/751XgVfwE04mMpsCScIeJGees4UX79wLrNJhicwJ2KzCkxFi2cFTKo2up3iQC1FPR+R
utNhlLF1oouWTWO7LaCNp6voDYU7a+GeL9xC8nTRMukPT/xjPdk/s4HENEG8u++504fL
JlmtVi8dddMGRNdxnTQk/MoG6VB2bBRsRc/Ed8RF/IfK0oOJGhyk/+sX0w7Me8YkHXQ6
jTgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795707989; x=1796312789;
h=content-type:mime-version:content-transfer-encoding:message-id:date
:references:in-reply-to:subject:cc:to:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=ThrtHU7JIVcephohGAN24J7wKmIcAnTwKxtX+IF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
cRruZgZt7BkV8UrHW2tDgMLwqh2VjSozOpxNrwnd/f3n45avF7UG7WXG661vvuhNfGYf/m/q/Vb
IBXkCGxYJaUb7fYuop4GnY+U+EH2jJ09tlP/QzQBqgeFvJtfMX3bMT73MW5Fc4DuV9puJy7DR2a
IaWiownrU5zJPFmtqxLZcDeS1adpX+ckcaoFdaLIdz8o08X4lAYQyDc=
X-Received: by 2002:a05:6000:188a:b0:4a9:4dfa:c150 with SMTP id ffacd0b85a97d-4abb2910440mr40139631f8f.33.1795707988916;
Thu, 26 Nov 2026 07:46:28 -0800 (PST)
X-Received: from [127.0.1.1] (ip-024-180.users.dtel.ru. [91.210.24.180])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab65cb41f4sm40084330f8f.7.2026.11.26.07.46.26
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 26 Nov 2026 07:46:28 -0800 (PST)
X-Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>,
Andrew Lunn <andrew+netdev@lunn.ch>, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <97babf2e-02eb-4efb-8662-f960a36b9073@lunn.ch>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list