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 59D44C25B08 for ; Sat, 20 Aug 2022 19:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbiHTT5l (ORCPT ); Sat, 20 Aug 2022 15:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiHTT5l (ORCPT ); Sat, 20 Aug 2022 15:57:41 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 807503DBDA; Sat, 20 Aug 2022 12:57:39 -0700 (PDT) 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=jCL32R3omIa/bFxZYTayIC3hc5d8VijYswMvdRt0kfM=; b=v/rh+RtBn12Gb7zcHBZ7kKjLCS 4W8uInYkNK3LuwJWjlm88cS1csGVSeRyrFzhz3xOUxy5jbq2e6owu/qfCdTsdhilejcUsbx9MYyKq 3Hu7Vv7+GajcJgL5uH82bV0RMvtElOtv3yFA7Qua19+ggM6wcsYyzOebERzf+qMhK7NA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oPUb0-00E4F9-CG; Sat, 20 Aug 2022 21:57:26 +0200 Date: Sat, 20 Aug 2022 21:57:26 +0200 From: Andrew Lunn To: Ravi Gunasekaran Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kishon@ti.com, vigneshr@ti.com, lkp@intel.com Subject: Re: [PATCH v3 net-next] net: ethernet: ti: davinci_mdio: Add workaround for errata i2329 Message-ID: References: <20220817094406.10658-1-r-gunasekaran@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220817094406.10658-1-r-gunasekaran@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org On Wed, Aug 17, 2022 at 03:14:06PM +0530, Ravi Gunasekaran wrote: > On the CPSW and ICSS peripherals, there is a possibility that the MDIO > interface returns corrupt data on MDIO reads or writes incorrect data > on MDIO writes. There is also a possibility for the MDIO interface to > become unavailable until the next peripheral reset. > > The workaround is to configure the MDIO in manual mode and disable the > MDIO state machine and emulate the MDIO protocol by reading and writing > appropriate fields in MDIO_MANUAL_IF_REG register of the MDIO controller > to manipulate the MDIO clock and data pins. > > More details about the errata i2329 and the workaround is available in: > https://www.ti.com/lit/er/sprz487a/sprz487a.pdf > > Add implementation to disable MDIO state machine, configure MDIO in manual > mode and achieve MDIO read and writes via MDIO Bitbanging > > Signed-off-by: Ravi Gunasekaran > Reported-by: kernel test robot Reviewed-by: Andrew Lunn Andrew 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 6FAA0C32772 for ; Sat, 20 Aug 2022 19:59:13 +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=99LHRNUkGAGqtz462kvnpWX30V0bxbQOSaahwOxJSO8=; b=s2PA6DTgsNU76h l+LmqEax/yvzC5voXS97jY2TA2OTb2HTL6xFnLw+xl7e+hAEYMrv8O4cjbSddF3IgHqEeOO3DmoBq 272bSFAekhFlM/+1PmH3WBMxSifk0tU0El3REXY8KzvDh/hj6NtwwtuT2xly2JqJfHTx/xiaYaqhB JkzFJgm5MSntuBPBnsJFa531Mh2gcA4UNI8jg3b6DX14x5eOo4waNurUzPqwg/4mvkXyRlBfptT7N weFN+CgLqqaTmV8WamojSsVT0B3+d8R9HkKtH7A5kpjIvaE2rJkGwqnIbZW6/+pRlcADR6rFnR3Zf L6SUbMNa3nhl4iQ9HCHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPUbP-00BsFN-2O; Sat, 20 Aug 2022 19:57:51 +0000 Received: from vps0.lunn.ch ([185.16.172.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPUbL-00BsCq-D3 for linux-arm-kernel@lists.infradead.org; Sat, 20 Aug 2022 19:57:48 +0000 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=jCL32R3omIa/bFxZYTayIC3hc5d8VijYswMvdRt0kfM=; b=v/rh+RtBn12Gb7zcHBZ7kKjLCS 4W8uInYkNK3LuwJWjlm88cS1csGVSeRyrFzhz3xOUxy5jbq2e6owu/qfCdTsdhilejcUsbx9MYyKq 3Hu7Vv7+GajcJgL5uH82bV0RMvtElOtv3yFA7Qua19+ggM6wcsYyzOebERzf+qMhK7NA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oPUb0-00E4F9-CG; Sat, 20 Aug 2022 21:57:26 +0200 Date: Sat, 20 Aug 2022 21:57:26 +0200 From: Andrew Lunn To: Ravi Gunasekaran Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kishon@ti.com, vigneshr@ti.com, lkp@intel.com Subject: Re: [PATCH v3 net-next] net: ethernet: ti: davinci_mdio: Add workaround for errata i2329 Message-ID: References: <20220817094406.10658-1-r-gunasekaran@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220817094406.10658-1-r-gunasekaran@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220820_125747_484225_67FBF794 X-CRM114-Status: GOOD ( 12.30 ) 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="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 17, 2022 at 03:14:06PM +0530, Ravi Gunasekaran wrote: > On the CPSW and ICSS peripherals, there is a possibility that the MDIO > interface returns corrupt data on MDIO reads or writes incorrect data > on MDIO writes. There is also a possibility for the MDIO interface to > become unavailable until the next peripheral reset. > > The workaround is to configure the MDIO in manual mode and disable the > MDIO state machine and emulate the MDIO protocol by reading and writing > appropriate fields in MDIO_MANUAL_IF_REG register of the MDIO controller > to manipulate the MDIO clock and data pins. > > More details about the errata i2329 and the workaround is available in: > https://www.ti.com/lit/er/sprz487a/sprz487a.pdf > > Add implementation to disable MDIO state machine, configure MDIO in manual > mode and achieve MDIO read and writes via MDIO Bitbanging > > Signed-off-by: Ravi Gunasekaran > Reported-by: kernel test robot Reviewed-by: Andrew Lunn Andrew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel