From patchwork Sat Jan 26 00:40:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1031360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="v2CBi5PF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43mcWQ4wgZz9s7T for ; Sat, 26 Jan 2019 11:40:46 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id CCB44C21E2F; Sat, 26 Jan 2019 00:40: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.6 required=5.0 tests=RCVD_IN_SORBS_WEB, SPF_HELO_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E51B2C21D65; Sat, 26 Jan 2019 00:40:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C4341C21D65; Sat, 26 Jan 2019 00:40:38 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150059.outbound.protection.outlook.com [40.107.15.59]) by lists.denx.de (Postfix) with ESMTPS id 78A1AC21D56 for ; Sat, 26 Jan 2019 00:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fQ8NhsO8ls+JLJTvWRfHNXRg/Re6dYozuZ+GCheatZQ=; b=v2CBi5PFQj+chPTVeYkD7i3Kv+YnC38b5If2Z6Ke4FS3971LDzjNO86MUfaRjtgwGaMY8W6ervSMHt9GhQ2jodm9AnDO/1R0c0snlK1SX4KmNsPc7Q/UZTU5sldPeafg5M2xb9xSpKX9DoshvIbrAKAFAhr1fFYpzQR9axrQhao= Received: from DB7PR04MB5163.eurprd04.prod.outlook.com (20.176.235.75) by DB7PR04MB4380.eurprd04.prod.outlook.com (52.135.137.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.18; Sat, 26 Jan 2019 00:40:36 +0000 Received: from DB7PR04MB5163.eurprd04.prod.outlook.com ([fe80::515:3d2f:7821:7703]) by DB7PR04MB5163.eurprd04.prod.outlook.com ([fe80::515:3d2f:7821:7703%6]) with mapi id 15.20.1558.021; Sat, 26 Jan 2019 00:40:36 +0000 From: Vladimir Oltean To: "u-boot@lists.denx.de" , "joe.hershberger@ni.com" Thread-Topic: [PATCH v3 0/6] net: phy: Allow disabling SmartEEE for Atheros PHYs Thread-Index: AQHUtQ/At+lCwZE7tUSAYkCHPCELQA== Date: Sat, 26 Jan 2019 00:40:36 +0000 Message-ID: <1548463214-18159-1-git-send-email-vladimir.oltean@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: VI1P18901CA0004.EURP189.PROD.OUTLOOK.COM (2603:10a6:801::14) To DB7PR04MB5163.eurprd04.prod.outlook.com (2603:10a6:10:1d::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=vladimir.oltean@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [86.34.165.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR04MB4380; 6:pqem5WzcEoQ4s6mSTU66owWVKpXbb3RXDiCtjY/9uF5GGKLZhMI8AjpQmbKPYTv5fY/zwPaAi6531rM0RnD1h5kc1BgOdzCyu0RlkgscSvSNnQTi9KH+mrJtKzhACmgenKTZbjnFNUJehoiYVui9s1gyPVAtaWrmGhPNJM31s+WxQo6DKYoLEwdRotgbjLjCeO9dnfZjL5EbI6GjfO/06D3cK/10uwqOjjFQlCazzlZvyd1+4J+MXBCN00kcPw/+YI1fH0PeXEwkYgdq/viSzQ2WY0VgvYt5xEzsTM4gFCydm/GgTKBMzaEWgDamRWz4dEUon+EM5udG81WHw6YH3UcKa+pHlNVjqE5+OB7DhTjUbo6ShoDo/5cJrozcKyUNjSwg8Le3755+zGWv4JbxPXIhFBJdkw+seQeIp1S4GFDxRRIfWeLnH85urE7hUzDBTeVIGul1JPnuwB0tGWaPOQ==; 5:exBsDVJ5D2IdzaOPu45sYmG2YFEq0DPT8J/elJA9NGkx+PlkJnmMGMdhsrLLE3Ap6YEoo6R0fia6d9OP9wjY91pK9ZOc9AUIPBdRqFmEK+IEy/gs04ShJ+f9z/9mk/jn3jFH3b6/ZjF1ptMA6oWGvtYzvniqDOcY/UqF6FTbMSdC7QuQ8gvEiB/U1Ib7PBRV3c1gunDmcWRyJOB49Co1vA==; 7:iN1q/G4GXdAgJ/gwmrKewIsv3gYF6RoDLWZKHKvqwVMHdK1m5+IkqpfoLJbICCf+TdP9SX6a90Ri3sPJJ+6pBT3eD6gStuWSl5qKVWZBhbw2JBZjl7rNOX+mH1lBDU+7bbenZAB0oeUBP3Vev3J+hg== x-ms-office365-filtering-correlation-id: cf5909e9-9f41-4b23-0c91-08d68326e2dd x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR04MB4380; x-ms-traffictypediagnostic: DB7PR04MB4380: x-microsoft-antispam-prvs: x-forefront-prvs: 0929F1BAED x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(376002)(136003)(39860400002)(396003)(189003)(199004)(2906002)(53936002)(25786009)(50226002)(106356001)(68736007)(105586002)(486006)(14454004)(2501003)(6486002)(44832011)(99286004)(81166006)(478600001)(6512007)(7736002)(305945005)(8676002)(81156014)(4326008)(6436002)(14444005)(256004)(86362001)(8936002)(36756003)(6116002)(3846002)(66066001)(52116002)(71200400001)(71190400001)(386003)(186003)(110136005)(54906003)(6506007)(102836004)(97736004)(316002)(2616005)(476003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB4380; H:DB7PR04MB5163.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: vYss9KgCXlOF0XLh3Kzg3AGlCJ/gWIWpKO5Te5Vmfj4r/0O0H6ZlQnfIAHBwTwXmU+6raIaPP16JwWF5XDz+TV24eHx8tXBeDsyX3Wi1Fbl8azk4nOi2mCR8gTgGji7lVGXyf9L8DJVNR0GkDSj9B7TlEH2suY7fOSw1IzQsh8vhcezDOtEpLb/qjZ2LNzPU4KbqYOPF+ihFYa5Bg/d5Qx6xSXAECFdJyq8OohrUO6vi8wDxItn9z59KfxE30OibcUPL/zjWS58w2x3Rl8Cx1X8si6dTsc5vwbjL0Y7cYFF6nTFp35/ECvJKZysj4at0RUM9z5svbo+jMxudBjzwqETrO6BbtR9QD0jVAEq+EnlHOj2+wiki9IYqTAxKcKD/vfzEpaeOUTZdcX2CSPxI4WrhKbkSKJgY+hz9W6shnIM= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf5909e9-9f41-4b23-0c91-08d68326e2dd X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2019 00:40:35.3934 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4380 Cc: Vladimir Oltean , "ccaione@baylibre.com" , "joseph.hershberger@ni.com" Subject: [U-Boot] [PATCH v3 0/6] net: phy: Allow disabling SmartEEE for Atheros PHYs 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" The patchset adds support for disabling a PHY feature that may cause packet loss, and also cleans up the atheros.c driver a bit. As part of the cleanup, there are also some functional changes for the AR8035 in the RGMII internal delay area. Due to a mistake, RGMII Tx internal delay used to be implicitly always enabled. This is now corrected. Users of this driver may need to update their bindings to explicitly request the Tx internal delays back. Changes in v3: * Replaced all magic numbers with macros * Squashed "net: phy: ar803x: Use phy_read_mmd and phy_write_mmd functions" into new "net: phy: ar803x: Clarify the configuration of the CLK_25M output pin" patch * Fixed unconditional enabling of RGMII TxID for AR8035 Vladimir Oltean (6): net: phy: ar803x: Address packet drops at low traffic rate due to SmartEEE feature net: phy: ar803x: Make RGMII Tx delays actually configurable for AR8035 net: phy: ar803x: Use common functions for RGMII internal delays net: phy: ar803x: Explicitly disable RGMII delays net: phy: ar803x: Clarify the configuration of the CLK_25M output pin net: phy: ar803x: Clarify the intention of ar8021_config drivers/net/phy/Kconfig | 21 ++++++++ drivers/net/phy/atheros.c | 128 ++++++++++++++++++++++++++++++++-------------- 2 files changed, 111 insertions(+), 38 deletions(-)