From patchwork Fri Jan 25 12:55:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 10781331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 274BF14E5 for ; Fri, 25 Jan 2019 12:55:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 135752EF9F for ; Fri, 25 Jan 2019 12:55:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06AB02F233; Fri, 25 Jan 2019 12:55:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4FFFA2EF9F for ; Fri, 25 Jan 2019 12:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/Fc6pZMPsbyhgZ7AXTWE0c28mxe8WrvB4eXRfgfxZK0=; b=oIm6Bmf/F9ODer a4TxbSnz+2AILrM84lYkUf7tpyo5aBJgEe6Dqdyg81OdbnKPuPeyQYxwbDiePMaT3J4fTb5v3nLvM /l6mn3IPLB2au7uh8Rrp5bqpzRhWhPo3u2avpUIZ1mvHMAcYsk+rK05Schvo7CjXgRd6aumX3SU95 Wcj9qJynDYPR82ZBRILOl384LjXlZIlOZ9EtMug9GYRS9/8A+UhFt5AF7zFQeYDnjDlfPR4tI8eMR 6U+lI+Wo5UO0Xc2q2W96yl0ZFxhPowmVw+MmjVGvvqSiVE1rgnsGCrFn41eABgFZ/3mq94Q06ATFt O+Ijm6lfLDfHQWnaEMQQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gn11L-0004l8-Bm; Fri, 25 Jan 2019 12:55:43 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gn11I-0004k4-7B for linux-arm-kernel@lists.infradead.org; Fri, 25 Jan 2019 12:55:41 +0000 Received: by mail-wm1-x344.google.com with SMTP id r24so4749586wmh.0 for ; Fri, 25 Jan 2019 04:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=juLI+9H8NyMB04BIfuKnL7i1P90CozxB4yuKvoPTnoY=; b=WOIkEhJLyKhE6FO4EZzh/pxzNtu0kbamQEg6FLM2vJ5VsC9KN+M8pOWiziFgzpril5 JE75cHtar7/Y6TA6Cky06ORiU9CsBnUkN+LbpdnElckzlZgAO63ytYPRl2J/bi8EimZ2 P78dsa4aKBVeyPWxZIptP8LsVhUWzo211PJiQ4CWiUozDCWskvnnz7pZ0DSwUm7vL6rY dC6umm98RhGQFJygwnUymWtSfuYLREsK0Hb7YHObrL9f45x1G5cbgjTalb1Ft5Aof+57 NlyLr2KwwT2/7825cBZuN2bLkQbRZg2qrq1cf5entgzn+uIuYWFRaJKvYrr1VdBG8rJU vTfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=juLI+9H8NyMB04BIfuKnL7i1P90CozxB4yuKvoPTnoY=; b=jXkOyj8IJtiKnNWs0L/bmH6Bbl56OkdyLgi1j5YTbYcmWRaWj4PGt1YtfDz2mqw7OM RHocHSnGG5iAEOFM42k6H8jyGFFkPf2a5OcoER7AYYR7uwwCkH0Uwqver/h190fJ1ftv f2X/hxJgVKO3kpH3nTWxvRGkweJOSeCqUxDjWwG1m/CGEkMBpAq6UWbRCYuY90sH0x09 fLX2/50s4lwKajTx2DvQrLY/rl4LlcstcwYlSKqh5xku+9fr+9HKwMPsUjolxwFw5TBR B7NG9koKC2DOq6b7jHtVl4+EBaFChq5cqfM8cVn8o9KZahop5/h1TyezXnpXi0nyRb8q Q1eQ== X-Gm-Message-State: AJcUukdP3BEyaBR6nYbOhqthJArU/64AzQdFSPKe6sN7OoAHZan/DMOC x3ZzFQLJXe+u6V9gfHI4A7kyYA== X-Google-Smtp-Source: ALg8bN66svBeQC9r9GjiUKIkMpICRdGu5E4GApvSDIZHqXZwDkURxD3z+EDFIhTmjfUAuwTLtk+c4Q== X-Received: by 2002:a1c:b455:: with SMTP id d82mr7093211wmf.78.1548420938302; Fri, 25 Jan 2019 04:55:38 -0800 (PST) Received: from xps.expressvpn ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id w80sm93057860wme.38.2019.01.25.04.55.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 04:55:37 -0800 (PST) From: Carlo Caione To: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, aisheng.dong@nxp.com, abailon@baylibre.com Subject: [PATCH 1/3] net: phy: at803x: Introduce quirk to disable SmartEEE Date: Fri, 25 Jan 2019 12:55:11 +0000 Message-Id: <20190125125513.23656-2-ccaione@baylibre.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190125125513.23656-1-ccaione@baylibre.com> References: <20190125125513.23656-1-ccaione@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190125_045540_255059_926D9725 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The proprietary SmartEEE mode makes the PHY entering a sleep mode after a configurable idle time. It does this without LPI signals coming from MAC. Since this is a configurable behavior and it is known to cause issues add a way to disable it using a custom quirk. Signed-off-by: Carlo Caione --- drivers/net/phy/at803x.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index f9432d053a22..509cd7a4f7eb 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -38,12 +38,14 @@ #define AT803X_DEVICE_ADDR 0x03 #define AT803X_LOC_MAC_ADDR_0_15_OFFSET 0x804C #define AT803X_LOC_MAC_ADDR_16_31_OFFSET 0x804B +#define AT803X_SMARTEEE_CTL3_OFFSET 0x805D #define AT803X_LOC_MAC_ADDR_32_47_OFFSET 0x804A #define AT803X_MMD_ACCESS_CONTROL 0x0D #define AT803X_MMD_ACCESS_CONTROL_DATA 0x0E #define AT803X_FUNC_DATA 0x4003 #define AT803X_REG_CHIP_CONFIG 0x1f #define AT803X_BT_BX_REG_SEL 0x8000 +#define AT803X_SMARTEEE_DISABLED_VAL 0x1000 #define AT803X_DEBUG_ADDR 0x1D #define AT803X_DEBUG_DATA 0x1E @@ -65,12 +67,15 @@ #define ATH8035_PHY_ID 0x004dd072 #define AT803X_PHY_ID_MASK 0xffffffef +#define AT803X_SMARTEEE_FEATURE_DISABLE BIT(1) + MODULE_DESCRIPTION("Atheros 803x PHY driver"); MODULE_AUTHOR("Matus Ujhelyi"); MODULE_LICENSE("GPL"); struct at803x_priv { bool phy_reset:1; + u32 quirks; }; struct at803x_context { @@ -210,6 +215,13 @@ static void at803x_get_wol(struct phy_device *phydev, wol->wolopts |= WAKE_MAGIC; } +static int at803x_disable_smarteee(struct phy_device *phydev) +{ + return phy_write_mmd(phydev, AT803X_DEVICE_ADDR, + AT803X_SMARTEEE_CTL3_OFFSET, + AT803X_SMARTEEE_DISABLED_VAL); +} + static int at803x_suspend(struct phy_device *phydev) { int value; @@ -242,6 +254,9 @@ static int at803x_probe(struct phy_device *phydev) if (!priv) return -ENOMEM; + if (of_property_read_bool(dev->of_node, "at803x,smarteee-disabled")) + priv->quirks |= AT803X_SMARTEEE_FEATURE_DISABLE; + phydev->priv = priv; return 0; @@ -249,6 +264,7 @@ static int at803x_probe(struct phy_device *phydev) static int at803x_config_init(struct phy_device *phydev) { + struct at803x_priv *priv = phydev->priv; int ret; ret = genphy_config_init(phydev); @@ -269,6 +285,12 @@ static int at803x_config_init(struct phy_device *phydev) return ret; } + if (priv->quirks & AT803X_SMARTEEE_FEATURE_DISABLE) { + ret = at803x_disable_smarteee(phydev); + if (ret < 0) + return ret; + } + return 0; } From patchwork Fri Jan 25 12:55:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 10781337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A6EF14E5 for ; Fri, 25 Jan 2019 12:56:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 183512EFA2 for ; Fri, 25 Jan 2019 12:56:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C94F2F4CD; Fri, 25 Jan 2019 12:56:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A55F32EFA2 for ; Fri, 25 Jan 2019 12:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9dAzzd8YQKeO5Rqo4EtcsgVAgAwUalGv258rjcFwB8U=; b=arjpyObB0iSB7D hw/iQRuGLxspZx5GG3dVbaMQ2rRwDXOWNJCzrW29gzvUWAe1qDbCv6jecXNLVZqZztJrAotFtjHrA +bZ9Foqee2oq2phdIjfyHvV9moONKw2X0U0z36j9Md77Y+aWamCNFw1WjqA6TeJV3isCb/ykTbLv7 NMBK6QTT3mmQe+wPl/ALTpmozwzyseHu6EKutsofzSD2ahqjNhaN/sSXdT1xPfFPsSrT7+i/EQrbK 5ezqFXE7rHYBY0BjfWlXP9cLRwNAxQWhKVt++XU2se+2lwIzV9Cyta8HTV8nYeoT60SZuAtWuux6D SbEw4IIu0vVXcYujEbew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gn12D-0005W6-D0; Fri, 25 Jan 2019 12:56:37 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gn11J-0004kG-Aj for linux-arm-kernel@lists.infradead.org; Fri, 25 Jan 2019 12:55:43 +0000 Received: by mail-wr1-x444.google.com with SMTP id r10so10163206wrs.10 for ; Fri, 25 Jan 2019 04:55:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3k61Ao1miI2EQ8vy+O8E8azA+vtcQWlgksY/Dfn7Fn8=; b=JapAZBaIn6B6Zv64DK6hIhfRCHVdi88S40p534kpWpGAGDcu96q4lAF0WMI4GBAm+W iOFwvTaRuvKIOAwPV8cF9tKDWwp3lr0ihuplcbacxw4a415jFoJvdnIjVGPgAXb0ANF0 +aKAUfgMgQUVw0RVjNkpB8dLwai9gmCxDPU3JSQwnnL4bgW3b0KruvhK6RlCqRkNrNl5 EgGWFkB0O0ZE0/tITtenZs7pMy18sHtKTSR6v3KstUz1Iq8MIsJrWnqm/1Y1ou4QLj8D Q8Juh8+6wn+Q6xwvV28KAYWiRlASiHh6hD6WK8WYI7jj9DUSI0IiKSvZ3FbESV4uA1I2 N1vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3k61Ao1miI2EQ8vy+O8E8azA+vtcQWlgksY/Dfn7Fn8=; b=IGb7O0AQHd3F3xLYQX9Baap96C98DuOIYvIPNIjayDIKR1lr+oa5QTNLxFZJ5VGRuN XkTY/6RXcTp7aBMOQgTjIMAhIRtaMcgK7sb/1zyKwReZflutmpX3on2tkSG1MfrRf1NE AMysDiTBWlWkVQngnyGL7kI0J0tri5r+l3TeX9KqsQ+pCv/Qu/oYKhD82sgZdSGQ9pHZ pheiwPIvKcuAURRin532T9NBfLHFlja+CCQ16C8aY/MdvNX4cL3eo+NRGKMMAxH7KPIu 3F5x6gcW4EeQXDas9U2c0B2XK8Q11oapOZF+YUyYlsekP9yeM3YM+BHLUAu/JfvQ1YC9 51RA== X-Gm-Message-State: AJcUukc0W6k6kObhSKYZ35iCo6qy8ThQHUIuXP+NWtFkVnlIT8RgCDtW yWMSWQWtxzpepCV+BpxWuDxArw== X-Google-Smtp-Source: ALg8bN4Y84oXixS5OGbuKZjLv0fhO4VowJLWYUIceBSzUukWLP61xaL6oIkNb3Gt6oTgWLb0/jzCQQ== X-Received: by 2002:adf:db01:: with SMTP id s1mr11120447wri.214.1548420939265; Fri, 25 Jan 2019 04:55:39 -0800 (PST) Received: from xps.expressvpn ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id w80sm93057860wme.38.2019.01.25.04.55.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 04:55:38 -0800 (PST) From: Carlo Caione To: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, aisheng.dong@nxp.com, abailon@baylibre.com Subject: [PATCH 2/3] dt-bindings: net: at803x: Document at803x, smarteee-disabled property Date: Fri, 25 Jan 2019 12:55:12 +0000 Message-Id: <20190125125513.23656-3-ccaione@baylibre.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190125125513.23656-1-ccaione@baylibre.com> References: <20190125125513.23656-1-ccaione@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190125_045541_364025_01BA499A X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP SmartEEE is a proprietary protocol that allows legacy MAC/SoC devices without 802.3az support to function as a complete 802.3az system. This is know to cause issues so a new property is added to optionally disable this feature. Signed-off-by: Carlo Caione --- .../devicetree/bindings/net/at803x.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/at803x.txt diff --git a/Documentation/devicetree/bindings/net/at803x.txt b/Documentation/devicetree/bindings/net/at803x.txt new file mode 100644 index 000000000000..931cb34534fb --- /dev/null +++ b/Documentation/devicetree/bindings/net/at803x.txt @@ -0,0 +1,18 @@ +* Atheros AR803x Integrated 10/100/1000 Mbps Ethernet Transceiver + +Required properties: + - reg - The ID number for the phy, usually a small integer + +Optional property: + - at803x,smarteee-disabled: Disable SmartEEE feature + +Example: + + ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + at803x,smarteee-disabled + }; + +Datasheet can be found: +https://media.digikey.com/pdf/Data%20Sheets/CSR%20PDFs/AR8031_DS_(Atheros)_Rev1.0_Aug2011.pdf From patchwork Fri Jan 25 12:55:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 10781335 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DEBF014E5 for ; Fri, 25 Jan 2019 12:56:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD2442EF9F for ; Fri, 25 Jan 2019 12:56:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C12202F233; Fri, 25 Jan 2019 12:56:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7B14A2EF9F for ; Fri, 25 Jan 2019 12:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Tp8djGXRKEB6I3xmNwngCP/AP98VcSLSw7LwKv4/yu4=; b=Gf+B1dT4tYMpVs 8wn9XG7UrEMXhzOhH8e4TJ2w1CPT1LdrH47N3Bj13cSLjGRjCvvo8b5OxLMGtviTxYykaC26KC3GK QArl6F97gl5Cd3phfKJ+gL7lYKEQ/mmI0+xPCzFvgUsvre3CabipCfnree51FxmDJz+GDtPa4JGdU BsV2Frt8gVslnQiWixHs6n4bVju4OzuP6gJkx4eOABlfhal+2hvz6zuFt7xWGK9PWGSbd0Ososz3s so/iiHYL514hpf0kS3nfn4VhabLNpmBMtPbI3uC7WnQXmW87WMypbYZq4kI8c5S47Z3+F/FtDHMiZ 7gXcrxavvYFn2JAHQTMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gn11t-0005FM-6U; Fri, 25 Jan 2019 12:56:17 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gn11K-0004kW-K0 for linux-arm-kernel@lists.infradead.org; Fri, 25 Jan 2019 12:55:44 +0000 Received: by mail-wr1-x442.google.com with SMTP id v13so10174599wrw.5 for ; Fri, 25 Jan 2019 04:55:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yLXmvvmwUlgQBFdrOdWep035AQPEqhwCx5EyShXhR7o=; b=2NXTSc8UvqN5OwroKjXwXEi0hUuQpY/Fui8iiXjE4jqGwyBxNYoR3bwcsaWaVNuktc MeRhOeRhFvPSgKsTE1GcQTyuiP7nefsqq/oo02FgL8D67mNNC/vn1GBpMxDPdqErvBuQ MOzDUhrEL+ynlpsR8uaMxYzr9JJ2gSd+dPMgTz2Pr63TL3F+E8XG31LEt7Qx68PODzNs YE3NDqRT5qkkg0qMhjDMJWVUfN9DjRplXLe1G1jxjMhmBjqaeWo9bfZNJAgE0IkvfitF p8Mv/BA9k7YJp3y+1HN4p3A3OVCHbc4BGkp0oCEzuGB/qY5kSjozESphY46gmwDpUxA8 siRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yLXmvvmwUlgQBFdrOdWep035AQPEqhwCx5EyShXhR7o=; b=Q1rmcbrLcP98/hc2zGkLQ8VJ64zUkxRutSgq2xNSZx4o7GatYGTu2EiVnICNVY4HFI OaJZRYlYp3wbxAbdzkw3pi/TpsHHcvf8+mRJMrLHUeVVnPkzZ4+1DHNmMfqyfaEhQMpo Ru8YFjjTIcPO412L8fjbPO4aWeLeLAP9D/vOVfWbb2WQFRBNrK2gTr4Uzv3JaYugABmQ VD1Ee6uPWtTV84cz4YC52OmNl0M8PoYuBtmYfBmwYi83fn0b1fOFkjeQuiSOM8+2V6vM tvehhtcu6pUoVV+GJ8/5q4IDSHc33yrOVUqPoGm3z6fV2gdt8EQMQxFGCpzA2Zb4wvyn BB/g== X-Gm-Message-State: AJcUukcjKy0j71X5fsh4VT/w4YaW1cXEcjry75ZxqeLiM/2RI4Xr0jCx 1To59nJOTjgzWSm+Rc89sCMwpQ== X-Google-Smtp-Source: ALg8bN7TltAMjOE8qnnTzrfotDywTXeCN+vLoJBdpeH0dQKPVrpnQJ3nittRkfCpXwWWNN9yMbe+5w== X-Received: by 2002:adf:dd06:: with SMTP id a6mr11901673wrm.2.1548420940811; Fri, 25 Jan 2019 04:55:40 -0800 (PST) Received: from xps.expressvpn ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id w80sm93057860wme.38.2019.01.25.04.55.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 04:55:39 -0800 (PST) From: Carlo Caione To: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-imx@nxp.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, aisheng.dong@nxp.com, abailon@baylibre.com Subject: [PATCH 3/3] arm64: dts: imx8mq-evk: Disable SmartEEE Date: Fri, 25 Jan 2019 12:55:13 +0000 Message-Id: <20190125125513.23656-4-ccaione@baylibre.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190125125513.23656-1-ccaione@baylibre.com> References: <20190125125513.23656-1-ccaione@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190125_045542_655047_67C0BCA6 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Disable SmartEEE mode (active by default) because this is known to cause issues on certain PHYs. Signed-off-by: Carlo Caione --- This patch depends on https://patchwork.kernel.org/patch/10781297/ --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 02f6da92957f..f324fd1e78d0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -48,6 +48,7 @@ ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; + at803x,smarteee-disabled; }; }; };