From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796040327; b=kTVwBDqe3bDqd5uNViTCBEleL5DprqVplDrs9NGM/Zu8jGu0kvIIWgOyloP7+TogmqbJ Awb3RwBNGs12PFhzDsbIjnWfnbMzEk0b1UczRn7WEGhxTFY2KUurZ0UUEDx6Ihrr2oYGY CKzLDALQMXc69wET1X0oHMpb7SoZLT6aBBynsRX7kd9jWW5t8VWDD8KYpqsGJsFSqTMbr /uy6P8pfVOIzEpchwA+XuQmZjdvC8za5Iu7YPSulUfedRgcrMZuWjzv1VYG4HI25rgLAw dRphVfBzknqElFfBhGykKve1C3M0V5sTF4W6K2pI8BCAcezFj+GDOFxvJxwPa1hmxyA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796040327; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=c5svYkAkd7HI/Rh0OBo5cThcLnMpnVO133cKbBF6Yso=; b=JzaF9Iu9l73eHR+J1SlIPW73WA1v6INJV45pDUhUgSEOcJizJ8P7/hX3G2GUNNs8uFmy JwOO17sb3GWHZ2AVL8lwK1dPyFHU3SDstEzmQ/jAS8aV78v2YYtaieEMn/fruzyCDCSNS PUQ9Lh7YQqdorWBrCXMqR/ZSEV6X1pje7JP0T1rfAaLKU1Ra0U005K9KXGw5pA9n6eopQ /mhgnyTz92j+uUoNWDQKkBYobnrVLM1eg4U6nUTMDQvarB035PuD8vk7JtHAG/NAN/4wo AZK7uQC3VTLX5K0mRM3zQtt9aphCyXr3PrkDwj4XdD2jlSB30YO+M93kTYnunTfMjcg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=mLgogSbh; arc=none smtp.remote-ip=148.251.105.195 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51171606A31C for ; Mon, 30 Nov 2026 12:05:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 51171606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=mLgogSbh DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796040325; bh=idz1IZFAhlof6wWMZKQYd/aF3oIqTqRFOTsVq2LLB4E=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mLgogSbh6sI3pnDycTBUw0jISlMrd35llS/J7N3gKiocA5Qc+UD0Og4ka+6CizLjs 0IJbzZGZWv22zYG5BhtPvccqGns5mMK1ptKNJywWx0Oho+Y2PK8mlgEil6jCU5RhX5 7uJ+jXSubAKJrleVNIewQOp8gtUNsK1c0SeVAh0SB4oJVHaxe31ujXCdTMw61Eula2 pi8LhncDcP+E0M7ggFm8HLNiHb1hxL2PMZlS9Fk0zKElq0jyIroDAvJ8RKHoevGdgL ct3w0fjhQoxwPsqJ6HpFNJb1VZl/TTPAT9lGvknz4ew02ArqqShsAJn8fQbSKtz49H EfrJdV3m68Mzg== Received: from [100.64.0.241] (unknown [100.64.0.241]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 1545117E0528; Mon, 30 Nov 2026 13:05:25 +0100 (CET) Message-ID: <9353844b-ac67-49b8-a89c-fa66e3ce0d63@collabora.com> Date: Mon, 30 Nov 2026 14:05:24 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net 12/14] net: phy: as21xxx: Configure autoneg advertisement via IPC To: Andrew Lunn Cc: Christian Marangi , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@collabora.com, netdev@vger.kernel.org References: <20261130-as21xxx-fixes-v1-0-1bd2eae6ccbc@collabora.com> <20261130-as21xxx-fixes-v1-12-1bd2eae6ccbc@collabora.com> Content-Language: en-US From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/30/26 5:43 AM, Andrew Lunn wrote: > On Mon, Nov 30, 2026 at 02:55:19AM +0200, Cristian Ciocaltea wrote: >> The PHY does not properly support the Clause 45 auto-negotiation >> registers that phylib writes from genphy_c45_config_aneg(). As a >> consequence, restricting the advertisement from userspace does not have >> the expected outcome on the wire. For example, setting it to >> 2500baseT/Full will confuse the peer, as 5000baseT/Full still shows up >> in the link partner advertised link modes. Even worse, setting it to >> 100baseT/Full + 1000baseT/Full will end up with a broken link, because >> the peer would only see the unrelated 2500baseT/Full + 5000baseT/Full >> modes. >> >> Since the firmware owns the advertisement and is reachable over IPC, >> implement the .config_aneg callback and pass the highest advertised >> speed. > > That is not technically correct. > > Supported link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > 1000baseT/Full > > There is free choice of any combination of the supported modes. > It should be possible to ask it to advertise > > Advertised link modes: 10baseT/Half 1000baseT/Full > > I find it surprising it is totally broken. 10/100/1G are often in > vendor registers, so you might need to implement those link modes > separately to the standard C45 2500, 5000 and 10G. Yeah, this was unexpected for me as well, but I later confirmed it with the vendor: the firmware doesn't support arbitrary combinations of modes. It can only take a top speed, and everything below is implicitly advertised :-( Cristian