From patchwork Thu Aug 23 11:41:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 144923 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp74830ljw; Thu, 23 Aug 2018 04:41:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQZ2uSyVEzgn644C7s8/lb77VNBNPmP2n5LcIJzuTPsBmHIemiY1C5MYsFNedA5hHxMmtN X-Received: by 2002:a50:aa67:: with SMTP id p36-v6mr3132312edc.117.1535024506478; Thu, 23 Aug 2018 04:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535024506; cv=none; d=google.com; s=arc-20160816; b=fR6PE/G3M9TNjso7t+Dv4q9HEStxEfC+zzxBfazgsxSKhtM4l6o1qVZQu0yemWxxr/ KiKr+4qyKhQdMu8wm1x9GLAn/fm3/Gu/xaOOeARj7FWrmQeP0fnXQnd49T49GIqjyFO8 BbcfEuj3eMtcjX6xOlcF8gGrrC9WVw9C538EkChacKZn6MiGFErkRH2RzJuUuqmRpTo1 /Y9+OTvOwI5WGD9NUIfeSfRvug43cLLV5hbdZBoAIspeXaPaXvhGEAJpA+FPuLAQ8RtK 3fMj64lKWIvDMdFx9ANzqayzN88hB3QW7PVrD3qa97/YRop3pGUPmgVeMj91oeC3Y/ew 9qgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=s3C6Ls40/8V0ccs6rh85VTlF3ZEbfgyFMaCikhUByHw=; b=GDU6T+pQ95d2oR9Db0jvtJTVvgF1F9eOPrEcmnhaaqCIxCtGn2mkWw2c7xJLXhCfKs hWNiKbpfZZ+kaEHJB3iMrJVkRce1hI8Ugy09nEX1TyC7O6LQgxmvLWP/gvSjggG0qTIs S0om0CeAvWNHb7gLAHoJLwwWzNlqf/BcQpaIjnKrWnjiFh4R8cWOdn35mg0aHAmI0M+s vk9uYokTG7sXV4HULFU3gBOb0es1fUuabvfvb/+Z57w7bgxTFtfOd+8pCfhW+2ApnPfv /FIpjXJOU9t1RFv0voiOii1nBaDPFEe46lXtomHuEu+w9Fq1jlSkVIB5JXcdChcrf7zd h4AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=L3VwOJP5; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id f57-v6si95038ede.346.2018.08.23.04.41.45; Thu, 23 Aug 2018 04:41:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=L3VwOJP5; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 9ACAEC21F27; Thu, 23 Aug 2018 11:41:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BFE3DC21DCA; Thu, 23 Aug 2018 11:41:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F14F6C21DCA; Thu, 23 Aug 2018 11:41:37 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lists.denx.de (Postfix) with ESMTPS id 89CDCC21DAF for ; Thu, 23 Aug 2018 11:41:37 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7NBfYlG022222; Thu, 23 Aug 2018 06:41:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535024494; bh=p9tlcRkEv++MhBz9FenWODLSZpC29c5rZXvPPEoe65c=; h=From:To:CC:Subject:Date; b=L3VwOJP5IiFOSP+vuNz3MteuUGyhI2KN/qX5VvOaQH0cRNxzUIt5XVQbHOlY/NC7/ 0bJDCfp0Ve2Tvq//9GIW+S2ZF9b4sPE2EouWFE7aLN0ra9pnZUxKrqfcFQXFxvnqk3 b08jxpVWaf2nbXtvlB9ADnylrDkogBgY091qOavk= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfYrp004693; Thu, 23 Aug 2018 06:41:34 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 23 Aug 2018 06:41:34 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 23 Aug 2018 06:41:34 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7NBfWhq003432; Thu, 23 Aug 2018 06:41:32 -0500 From: Sekhar Nori To: Joe Hershberger , Tom Rini , Lokesh Vutla Date: Thu, 23 Aug 2018 17:11:28 +0530 Message-ID: <20180823114131.8684-1-nsekhar@ti.com> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, William Mills Subject: [U-Boot] [PATCH 0/3] Fix for rare beaglebone ethernet failures X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" There have been reports of ethernet network failures on beagle bone black. These have been root caused to ethernet PHY latching to a different address on boot than what is programmed in DT. See: https://groups.google.com/d/msg/beagleboard/9mctrG26Mc8/1FuI_i5KW10J This patch series tries to workaround this suitaiton by patching device-tree passed to kernel with the correct address. As well as updating the PHY address U-Boot drivers themselves use. Tested on beaglebone black rev A4 by simulating the error condition I was also able to hit the actual hardware error once in a while. Sekhar Nori (3): drivers: net: cpsw: add support to update phy address board: ti: am335x: add support to fixup phy address configs: am335x_evm: enable OF_BOARD_SETUP board/ti/am335x/board.c | 78 ++++++++++++++++++++++++++++++++++++++++++++ configs/am335x_evm_defconfig | 1 + drivers/net/cpsw.c | 29 ++++++++++++++++ include/cpsw.h | 1 + 4 files changed, 109 insertions(+) Reviewed-by: Grygorii Strashko