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 5A25DC433EF for ; Fri, 11 Feb 2022 19:36:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347278AbiBKTgc (ORCPT ); Fri, 11 Feb 2022 14:36:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235772AbiBKTgb (ORCPT ); Fri, 11 Feb 2022 14:36:31 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E179FCF2 for ; Fri, 11 Feb 2022 11:36:29 -0800 (PST) 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=20gbKtqCAnZ2WEN0ViaHyajOe18mV5M0URgbDSjlFtM=; b=rF4f3nWOKwfgRNS2lwIfF3Kp73 n/MqZ0Jt3+m6zTZmV+tkjjVfOA0zwFdKYhKzkmfi96rXSbQx9/ejbJKEE0FUTeleucFgfpZognfhv bemjXsRwUHVb8GiRZMTZ+Np0ewizb4khPLeLA+oJ+urZVzJwen2E2NMcJVl/I+LsEEZo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nIbiU-005Vrk-Fk; Fri, 11 Feb 2022 20:36:26 +0100 Date: Fri, 11 Feb 2022 20:36:26 +0100 From: Andrew Lunn To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Luiz Angelo Daros de Luca , "netdev@vger.kernel.org" , "linus.walleij@linaro.org" , "vivien.didelot@gmail.com" , "f.fainelli@gmail.com" , "olteanv@gmail.com" , "davem@davemloft.net" , "kuba@kernel.org" , "arinc.unal@arinc9.com" Subject: Re: [PATCH net-next] net: dsa: realtek: rtl8365mb: read phy regs from memory when MDIO Message-ID: References: <20220209202508.4419-1-luizluca@gmail.com> <87leyjhfkx.fsf@bang-olufsen.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87leyjhfkx.fsf@bang-olufsen.dk> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > I am not sure I agree with your description here. It is more likely that > there is just a bug in the driver, rather than some problem with > indirect PHY register access "when the switch is under stress". Please > see my reply to your earlier thread. I tend to agree. Reading PHY registers happens quite often due to polling every second, so if there is a problem, this is where you see it. But how do you know the same issue does not appear somewhere else in the driver? Maybe add code to dump the ATU, poll it frequently, and see if any entries change unexpectedly? Andrew