From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796391095; b=QIDLVpuQiHC27ms8h1xkIEgtcHD6R0+6GlPmGIL1eSNIQzj7MDhUPf5pe2uDb4bsE1YF V/LqXJzgvXXcbsrhJ0Fwvf/cqIqOcsgo/L/9w3yGrYpf95TR1LjUyXAnWGJ4MCbQQw1Vp YCOD6PHg0CHMMUwYiT7PNZBfO4nRJmruMf36Gvq3OYoa/1QuDGZLpZ0Zbxv6RmUmWzcEI ridnz2JCB9FcFXdF+b1lDi6iGMvxE4Kr15rqaTZPUgIgKdU+P9KXVKyRDIkZfKBnbpD2y /BvCG0CPl4ntqx8Phr0yaPkTa0PNUlrxV59DLlnH1BJHDPcpuTktzCku8yp2MEM2QgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796391095; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=MVKr/RhIqbWUZnTSl+pRdQUzyNHatvy7heSqKExet04=; b=DJIavv3wzmvg3sobIpVeSElMu2GYgFQeiNiWfFEKXESOvkJo0RSYzXFRugUKrr0DaTpF NyMEmMqL2/NbnH1mDioy92ZyVbG2pj+MhL7qVEcnq9L5kw5BaulT8RTwRjlrUQPqBIx+y ALCCPimLGYj3Ezh4ku4PxgD+xAzoA8SnyNLptoBLpDFajpev8h8JXDDUk8P6xU0A52zXw vVVPLl480V6uQlswd9eBSjjy/uLSS+5sM0DKhk0Eyk8nFdcDQvrNYNCz1CioqIl/HXPs+ sgzgvDvq8wwlSpygnXsDZbA3oVzdt2rvjGYtkad5nJGSPK3sYQw0UIKVtJZlff3HlsA== 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="mT7CN/AB"; arc=none smtp.remote-ip=156.67.10.101 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 6F039606A32C; Fri, 4 Dec 2026 13:31:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6F039606A32C 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 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=mT7CN/AB 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=MVKr/RhIqbWUZnTSl+pRdQUzyNHatvy7heSqKExet04=; b=mT7CN/ABLmI8JGuU7GesiTInWN mis5eD1oHsHVx6O+TCmW57SdNSDL0NDjd6zxSUwNEsts+fq8qEZUtTKL7KhSYFdT3UzL/dj1Ea92h xKxPjDhRprlNYd17yXt5L+I6o7BMmccjdPly7wBdBzYdjJ4YIrszfUzVYQxUKf3N98Wo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xZTNh-003Ezo-78; Fri, 04 Dec 2026 14:31:21 +0100 Date: Fri, 4 Dec 2026 14:31:21 +0100 From: Andrew Lunn To: filipp.dunsky@gmail.com Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , Andrew Lunn , Willem de Bruijn , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 2/3] net: mdio: Add Cortina CS7542 bus controller Message-ID: References: <20261204-b4-cs7542-mdio-v5-0-c9b9b51bf58d@gmail.com> <20261204-b4-cs7542-mdio-v5-2-c9b9b51bf58d@gmail.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204-b4-cs7542-mdio-v5-2-c9b9b51bf58d@gmail.com> On Fri, Dec 04, 2026 at 06:57:54AM +0300, Fil Dunsky via B4 Relay wrote: > From: Fil Dunsky > > 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 Reviewed-by: Andrew Lunn Andrew