Article View: linux.kernel.netdev
Article #23946Re: [PATCH net-next v4 2/3] net: mdio: Add Cortina CS7542 bus controller
From: Andrew Lunn
Date: Sat, 28 Nov 2026 16:53
Date: Sat, 28 Nov 2026 16:53
23 lines
9411 bytes
9411 bytes
On Fri, Nov 27, 2026 at 01:14:23PM +0300, Fil Dunsky via B4 Relay wrote:
> From: Fil Dunsky <filipp.dunsky@gmail.com>
>
> Support Clause 22 reads and writes through the CS7542 management
> interface. Retain the firmware-configured prescaler and unrelated
> configuration bits while enabling manual operation.
>
> Use sleepable polling for the bounded wait in the MDIO bus callbacks.
> Report timeout errors directly without tracking a pending transaction.
> Use managed bus allocation and registration to cover probe failures
> and removal.
>
> Acquire and enable the required APB input before accessing registers,
> and retain it for the lifetime of the registered bus. Managed bus teardown
> runs before the managed clock is disabled. The firmware MDC prescaler is
> preserved; no clock-rate or divisor programming is introduced.
>
> Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Technical Details
Message-ID:
<8b0db660-4dc5-4533-afa2-d708d22dfc44@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373234-linux-kernel-netdev=dewy.ruReferences:
<20261127-b4-cs7542-mdio-v4-0-0e37fc0c47d5@gmail.com> <20261127-b4-cs7542-mdio-v4-2-0e37fc0c47d5@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373234-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 2/3] net: mdio: Add Cortina CS7542 bus controller Date: Sat, 28 Nov 2026 17:53:59 +0100 Organization: Usenet Network Message-ID: <8b0db660-4dc5-4533-afa2-d708d22dfc44@lunn.ch> References: <20261127-b4-cs7542-mdio-v4-0-0e37fc0c47d5@gmail.com> <20261127-b4-cs7542-mdio-v4-2-0e37fc0c47d5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="990987"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:jhgzTTqxlfz0eSdEO3yp9gdUouY= sha256:DI9Y+U0uaHv/2/Lh1uulrj/vhfhAiqSJ4IBPTkYzLJY= sha1:qRyscr10TsvhQNXjitCUhwxwMEE= sha256:Vfl7judhGMTXOlxNwAXWdSKd6okuTyB+mG+gavs9tPM= Content-Disposition: inline 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 F3A4D125F84; Sat, 28 Nov 2026 19:54:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 V5XBmN2e6dnt; Sat, 28 Nov 2026 19:54:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-373234-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 6E52A125F76; Sat, 28 Nov 2026 19:54:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 187DA242BA; Sat, 28 Nov 2026 16:54:10 +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=1795884848; b=NCDsEWCpwwZ6Zo7RVvA+DDMJIqZFeXeOnjmoWNy+mOxaq8v2Qz2r8nlwojYsT/d9Iwk4 GrOuNht+61cNQ7c6vk46T+GQUadf54GT7FAtv/3SGDCFc/magmECwbdiWcWBKzcdtPUXX bWZOMqd75Z4ggdchR7ZPrDpCDPNw5Fd992GEYYVm/FlUOscA1a1DPRSdbQGqHvDwK12PQ nfUNZUk7L++3t8rLhg6+tLQAT3bpkFvWAeTJMQBULXC6vSxZZOIRtVwfqEf8OMgc8tuWs v43oHzrmvrGMtQfokgWGcfpWzhvKy0NHgTLDbSMcue1y0MBJOdY65liwGamM+clvDDg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795884848; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=8It8RVjGfp/NpAy2/y5u9GfJHtUMavZffPYM2+kcgLA=; b=1o9H1J5xMoJWkE15X3rNMrNyeAYOJsH6vpuD4FtBQ+t4NExAdLMbXreAMHHpDChpbMc6 8dOOD2qITKzhgFgJ7ajA9DWnQGTOji8BP0AX9eXWkf7BZjehNAtEc6b67sVsZvcvJErNr UpSBaUmQ/5ua4sO059hBXG6BpyyzymL1k9bLQKFVEZV5qCw6Z8zHqiHcBry+h/28llHAl WEH1HpI9KGxr363CvkLRh19H0QtKpydHnG0ZEX/756MzLEIhXahQOQ05UaPiE6kV9l+3U Bzaqgybx4WgDT10z/EnFW2WW1OUQ/66tbz4ZazGa+aOLGi6QqFXUTg0bnjYdNzLwSTg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Saigpd4N; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 B9997606A32D; Sat, 28 Nov 2026 16:54:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Saigpd4N X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795884847; b=xA05BUu30/4NOd0HJCasYFj+FX4P2J9qsTnh9i5uJDvRYCR7UGTfruK3NIWqgE7r61XA fHRPnxHIUPaFsrkkO1WJgkep6g7HMvRRaAD2L30u1wDb9oQMNJlz17glsPD5bB/pZqT33 jW2PMgrBbNfQXk2GOdYnY/n5TAbveoDyJwY/IHgvf/wOTgz+tnspZJdyYh7b0kmAKJUs8 a6GdC6b54cLBBdlTa8Vkl84fyaq15lQV7FV8ihq2Ss6zz4k7dFSyVsCiHkjcuYA7jTf5K JrS2GN9apy42m2UyEzazB+vHlxQnJEzCBUWBYrPFiQ3xp+bYrr+VDyuRK+c6dFbcwUw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795884847; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=8It8RVjGfp/NpAy2/y5u9GfJHtUMavZffPYM2+kcgLA=; b=2Kw7zEFFJaP4xyr6b4XgaIKwmHIhRytapXNH/9IJC0PQGippudxdxK9hvsPiDdHO0Mnw i0WKBV9U7INW7beWS4rgcThja5S3XqKXj7aiORU5Ufm1kjhmoqWPJOJzzZCagvlioaDey CXffM8Tlp89ZAiEBzZe/eBVaVpzkM1Nqx/hFzWxSUpPhSwqr3GRByqoGawPDv0pVbO8Of 1yjCyzcxeqRl6C/l7sOE/bZgS9yxeHHTDO7LlFqfjxjoQbTn1w0SomgcAKN+2x4I/SirN vBW8SaR/apvJ/fdjZwfl+h4LE+JBSl557SYe3qjZS3NFTzQ1rbxcBzG3YM1wm9PqlBA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Saigpd4N; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90779606A321; Sat, 28 Nov 2026 16:54:07 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 90779606A321 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-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=8It8RVjGfp/NpAy2/y5u9GfJHtUMavZffPYM2+kcgLA=; b=Saigpd4NakftRHygrXo8G2CZJK hyTr3J0QPjjQmiZInyiV3CSZdW5Ga7iZyuDIXsx9uxEnewNRj9G1aKDWUCm0ixFSlRYwMZNIsc8y+ +21u/60VmXDDPK1SAVzdCKJvdKMrjSx7Q9sH4weWc838R1pDRTLbQdcsiiYuzr2eOKvo=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xXLgV-0020eN-NH; Sat, 28 Nov 2026 17:53:59 +0100 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-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 X-In-Reply-To: <20261127-b4-cs7542-mdio-v4-2-0e37fc0c47d5@gmail.com>