From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80E5CC54EBE for ; Mon, 16 Jan 2023 18:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+9G8OHC7CPLaqNm9tobemDqrAtOL7+MTWGHz+pkwenE=; b=TiXulmhSrgp9ZSN/dTF7g59cHm PZaSR1L7tPTgXKajIrKAPzjM9A59N348/wXTkW0SHnuAmdJAQo5+xK/DQOeUKZyUU+NBIz/fD8nw5 7SPlVKfcN4FScPNSvYW/4vGgklETzlCWQy2zeYDZXKXgww8wN+d03H7OEpWx+AhKuVYpranseHprs uVibW10kaQph0DHgaeV/k9aXlJqA++pI/g5hufhmLc0hsyLOM1adyXXPYSNhM+2gcYAcO0VkGtDbD Tev16dmc0qAJa1S5wE3I3Rt/Ej74H0XZxgRrc+bCbCOHjUGKBXvRvIevsTLdM9sHGUtKf1MeiB8nk GXNb6afQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHUch-00BmH1-MJ; Mon, 16 Jan 2023 18:54:23 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHUce-00BmF9-QA; Mon, 16 Jan 2023 18:54:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+9G8OHC7CPLaqNm9tobemDqrAtOL7+MTWGHz+pkwenE=; b=mC4mIgyxv5rSrGPBZrOOOBwF12 VzVbMB3CzlsjsaxBB/LRrjQ3RHD+pGCuT1jtiC7gBb6o80XPg3pCM8RVjABZJdEtQXxsF0pCpkEm1 osNkBf/HKI1b6FINh3ys7nJBH/ZGf6R2bwPW+PhpI2qu7b92u29ksxrjs8Dte3pCDbGvu/QBjTWRQ Sgn/iGnepSqmtRyptk+dz59KUpLWNuk9oKzAnLkk4YmU7fGaREarDqq9uoc4XWHdciGd7WDbpN+I1 hn/kRjDtxIjzU90EIi+njfKT1xPjlyvPvgBFrdD5Ai8hkJaQAU0tV+Bgbh+0LwFVaL7KZULzY8UAR y2AmW3zg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36146) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pHUcV-0005hg-Mm; Mon, 16 Jan 2023 18:54:11 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pHUcP-0006F2-U2; Mon, 16 Jan 2023 18:54:05 +0000 Date: Mon, 16 Jan 2023 18:54:05 +0000 From: "Russell King (Oracle)" To: =?iso-8859-1?Q?Bj=F8rn?= Mork Subject: Re: [PATCH v2] net: mtk_sgmii: implement mtk_pcs_ops Message-ID: References: <87bkmy33ph.fsf@miraculix.mork.no> <875yd630cu.fsf@miraculix.mork.no> <871qnu2ztz.fsf@miraculix.mork.no> <87pmbe1hu0.fsf@miraculix.mork.no> <87lem21hkq.fsf@miraculix.mork.no> <87a62i1ge4.fsf@miraculix.mork.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a62i1ge4.fsf@miraculix.mork.no> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_105420_868520_57859998 X-CRM114-Status: GOOD ( 23.25 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Sean Wang , linux-kernel@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Eric Dumazet , Alexander Couzens , John Crispin , Matthias Brugger , linux-mediatek@lists.infradead.org, Frank Wunderlich , Paolo Abeni , Mark Lee , linux-arm-kernel@lists.infradead.org, Felix Fietkau Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Mon, Jan 16, 2023 at 07:30:27PM +0100, Bjørn Mork wrote: > "Russell King (Oracle)" writes: > > > That all looks fine. However, I'm running out of ideas. > > Thanks a lot for the effort in any case. It's comforting that even the > top experts can't figure out this one :-) > > > > What we seem to have is: > > > > PHY: > > VSPEC1_SGMII_CTRL = 0x34da > > VSPEC1_SGMII_STAT = 0x000e > > > > The PHY is programmed to exchange SGMII with the host PCS, and it > > says that it hasn't completed that exchange (bit 5 of STAT). > > > > The Mediatek PCS says: > > BMCR = 0x1140 AN enabled > > BMSR = 0x0008 AN capable > > ADVERTISE = 0x0001 SGMII response (bit 14 is clear, hardware is > > supposed to manage that bit) > > LPA = 0x0000 SGMII received control word (nothing) > > SGMII_MODE = 0x011b SGMII mode, duplex AN, 1000M, Full duplex, > > Remote fault disable > > > > which all looks like it should work - but it isn't. > > > > One last thing I can think of trying at the moment would be writing > > the VSPEC1_SGMII_CTRL with 0x36da, setting bit 9 which allegedly > > restarts the SGMII exchange. There's some comments in the PHY driver > > that this may be needed - maybe it's necessary once the MAC's PCS > > has been switched to SGMII mode. > > > Tried that now. Didn't change anything. And still no packets. > > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 > 0x34da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 9 > 0x000e > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 0x36da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 > 0x34da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 9 > 0x000e If bit 9 is indeed the restart-an bit, it will be self-clearing, so I wouldn't expect a read back of it to change to 0x36da. I guess next thing to try is clearing and setting the AN enable bit, bit 12, so please try this: mdio mdio-bus 6:30 raw 8 0x24da mdio mdio-bus 6:30 raw 8 0x36da mdio mdio-bus 6:30 raw 9 If that doesn't work, then let's try something a bit harder: mdio mdio-bus 6:30 raw 8 0xb4da mdio mdio-bus 6:30 raw 9 Please let me know the results from those. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F63DC678D8 for ; Mon, 16 Jan 2023 18:54:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232967AbjAPSyf (ORCPT ); Mon, 16 Jan 2023 13:54:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjAPSyb (ORCPT ); Mon, 16 Jan 2023 13:54:31 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ACDB4ED2; Mon, 16 Jan 2023 10:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+9G8OHC7CPLaqNm9tobemDqrAtOL7+MTWGHz+pkwenE=; b=mC4mIgyxv5rSrGPBZrOOOBwF12 VzVbMB3CzlsjsaxBB/LRrjQ3RHD+pGCuT1jtiC7gBb6o80XPg3pCM8RVjABZJdEtQXxsF0pCpkEm1 osNkBf/HKI1b6FINh3ys7nJBH/ZGf6R2bwPW+PhpI2qu7b92u29ksxrjs8Dte3pCDbGvu/QBjTWRQ Sgn/iGnepSqmtRyptk+dz59KUpLWNuk9oKzAnLkk4YmU7fGaREarDqq9uoc4XWHdciGd7WDbpN+I1 hn/kRjDtxIjzU90EIi+njfKT1xPjlyvPvgBFrdD5Ai8hkJaQAU0tV+Bgbh+0LwFVaL7KZULzY8UAR y2AmW3zg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36146) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pHUcV-0005hg-Mm; Mon, 16 Jan 2023 18:54:11 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pHUcP-0006F2-U2; Mon, 16 Jan 2023 18:54:05 +0000 Date: Mon, 16 Jan 2023 18:54:05 +0000 From: "Russell King (Oracle)" To: =?iso-8859-1?Q?Bj=F8rn?= Mork Cc: Frank Wunderlich , Frank Wunderlich , linux-mediatek@lists.infradead.org, Alexander Couzens , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: mtk_sgmii: implement mtk_pcs_ops Message-ID: References: <87bkmy33ph.fsf@miraculix.mork.no> <875yd630cu.fsf@miraculix.mork.no> <871qnu2ztz.fsf@miraculix.mork.no> <87pmbe1hu0.fsf@miraculix.mork.no> <87lem21hkq.fsf@miraculix.mork.no> <87a62i1ge4.fsf@miraculix.mork.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a62i1ge4.fsf@miraculix.mork.no> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 07:30:27PM +0100, Bjørn Mork wrote: > "Russell King (Oracle)" writes: > > > That all looks fine. However, I'm running out of ideas. > > Thanks a lot for the effort in any case. It's comforting that even the > top experts can't figure out this one :-) > > > > What we seem to have is: > > > > PHY: > > VSPEC1_SGMII_CTRL = 0x34da > > VSPEC1_SGMII_STAT = 0x000e > > > > The PHY is programmed to exchange SGMII with the host PCS, and it > > says that it hasn't completed that exchange (bit 5 of STAT). > > > > The Mediatek PCS says: > > BMCR = 0x1140 AN enabled > > BMSR = 0x0008 AN capable > > ADVERTISE = 0x0001 SGMII response (bit 14 is clear, hardware is > > supposed to manage that bit) > > LPA = 0x0000 SGMII received control word (nothing) > > SGMII_MODE = 0x011b SGMII mode, duplex AN, 1000M, Full duplex, > > Remote fault disable > > > > which all looks like it should work - but it isn't. > > > > One last thing I can think of trying at the moment would be writing > > the VSPEC1_SGMII_CTRL with 0x36da, setting bit 9 which allegedly > > restarts the SGMII exchange. There's some comments in the PHY driver > > that this may be needed - maybe it's necessary once the MAC's PCS > > has been switched to SGMII mode. > > > Tried that now. Didn't change anything. And still no packets. > > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 > 0x34da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 9 > 0x000e > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 0x36da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 > 0x34da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 9 > 0x000e If bit 9 is indeed the restart-an bit, it will be self-clearing, so I wouldn't expect a read back of it to change to 0x36da. I guess next thing to try is clearing and setting the AN enable bit, bit 12, so please try this: mdio mdio-bus 6:30 raw 8 0x24da mdio mdio-bus 6:30 raw 8 0x36da mdio mdio-bus 6:30 raw 9 If that doesn't work, then let's try something a bit harder: mdio mdio-bus 6:30 raw 8 0xb4da mdio mdio-bus 6:30 raw 9 Please let me know the results from those. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 241F4C54EBE for ; Mon, 16 Jan 2023 18:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=B3k2VA7dSygcu1f+Qew93TbB3rkPa9SgFUwcE290HMU=; b=zAS4ZTSn4Kq2A8 WOXpdrRnOrAYeCPF2+5Rja5CjL9GoXssjP/WnkFZKKyB8ZTYGf3rgbeVYM2ZzZPxuCv4hDYEbA6zr Tg6KGXsoTlfbLg1sMflTL4zi49/+neM2ALgF2MnIbNLsJ6CUurspoLlbCCO8g9DdNx63ORv6JrWqq a2QFgTMFou1+lNd/pBm1nrMaOBqIh7hL5dWv/5d02KHKI9iK3l0nItKtxpoDlf66Bjr6IsRltNWcN K+iC2HQMbE8XrUkmr1z77WErHrlWLF3kHssUd0QzDL4BrM7oAr73Ppd+i61ZvWvL9tSnfLOTIyFVJ fRFwhmcautmICSYZhYCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHUci-00BmHO-RP; Mon, 16 Jan 2023 18:54:24 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHUce-00BmF9-QA; Mon, 16 Jan 2023 18:54:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+9G8OHC7CPLaqNm9tobemDqrAtOL7+MTWGHz+pkwenE=; b=mC4mIgyxv5rSrGPBZrOOOBwF12 VzVbMB3CzlsjsaxBB/LRrjQ3RHD+pGCuT1jtiC7gBb6o80XPg3pCM8RVjABZJdEtQXxsF0pCpkEm1 osNkBf/HKI1b6FINh3ys7nJBH/ZGf6R2bwPW+PhpI2qu7b92u29ksxrjs8Dte3pCDbGvu/QBjTWRQ Sgn/iGnepSqmtRyptk+dz59KUpLWNuk9oKzAnLkk4YmU7fGaREarDqq9uoc4XWHdciGd7WDbpN+I1 hn/kRjDtxIjzU90EIi+njfKT1xPjlyvPvgBFrdD5Ai8hkJaQAU0tV+Bgbh+0LwFVaL7KZULzY8UAR y2AmW3zg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36146) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pHUcV-0005hg-Mm; Mon, 16 Jan 2023 18:54:11 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pHUcP-0006F2-U2; Mon, 16 Jan 2023 18:54:05 +0000 Date: Mon, 16 Jan 2023 18:54:05 +0000 From: "Russell King (Oracle)" To: =?iso-8859-1?Q?Bj=F8rn?= Mork Cc: Frank Wunderlich , Frank Wunderlich , linux-mediatek@lists.infradead.org, Alexander Couzens , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: mtk_sgmii: implement mtk_pcs_ops Message-ID: References: <87bkmy33ph.fsf@miraculix.mork.no> <875yd630cu.fsf@miraculix.mork.no> <871qnu2ztz.fsf@miraculix.mork.no> <87pmbe1hu0.fsf@miraculix.mork.no> <87lem21hkq.fsf@miraculix.mork.no> <87a62i1ge4.fsf@miraculix.mork.no> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87a62i1ge4.fsf@miraculix.mork.no> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_105420_868520_57859998 X-CRM114-Status: GOOD ( 23.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 16, 2023 at 07:30:27PM +0100, Bj=F8rn Mork wrote: > "Russell King (Oracle)" writes: > = > > That all looks fine. However, I'm running out of ideas. > = > Thanks a lot for the effort in any case. It's comforting that even the > top experts can't figure out this one :-) > = > = > > What we seem to have is: > > > > PHY: > > VSPEC1_SGMII_CTRL =3D 0x34da > > VSPEC1_SGMII_STAT =3D 0x000e > > > > The PHY is programmed to exchange SGMII with the host PCS, and it > > says that it hasn't completed that exchange (bit 5 of STAT). > > > > The Mediatek PCS says: > > BMCR =3D 0x1140 AN enabled > > BMSR =3D 0x0008 AN capable > > ADVERTISE =3D 0x0001 SGMII response (bit 14 is clear, hardware is > > supposed to manage that bit) > > LPA =3D 0x0000 SGMII received control word (nothing) > > SGMII_MODE =3D 0x011b SGMII mode, duplex AN, 1000M, Full duplex, > > Remote fault disable > > > > which all looks like it should work - but it isn't. > > > > One last thing I can think of trying at the moment would be writing > > the VSPEC1_SGMII_CTRL with 0x36da, setting bit 9 which allegedly > > restarts the SGMII exchange. There's some comments in the PHY driver > > that this may be needed - maybe it's necessary once the MAC's PCS > > has been switched to SGMII mode. > = > = > Tried that now. Didn't change anything. And still no packets. > = > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 > 0x34da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 9 > 0x000e > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 0x36da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 8 > 0x34da > root@OpenWrt:/# mdio mdio-bus 6:30 raw 9 > 0x000e If bit 9 is indeed the restart-an bit, it will be self-clearing, so I wouldn't expect a read back of it to change to 0x36da. I guess next thing to try is clearing and setting the AN enable bit, bit 12, so please try this: mdio mdio-bus 6:30 raw 8 0x24da mdio mdio-bus 6:30 raw 8 0x36da mdio mdio-bus 6:30 raw 9 If that doesn't work, then let's try something a bit harder: mdio mdio-bus 6:30 raw 8 0xb4da mdio mdio-bus 6:30 raw 9 Please let me know the results from those. Thanks. -- = RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel