Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3110458ybn; Fri, 27 Sep 2019 00:59:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwT/nrgDUoHrDNgi+Hf2WnJmWhy4SU6HhdrkyNGbelGZuYkFwLfTDz2KWGb59jB506yhx4+ X-Received: by 2002:aa7:c616:: with SMTP id h22mr3023380edq.96.1569571178347; Fri, 27 Sep 2019 00:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569571178; cv=none; d=google.com; s=arc-20160816; b=sV7mF2pBERg63DCNbDoP5xQ8Bu6l1r832tOmz5oDkd2HF7kDsOTDYNYSGWgjmvEkfn jMrkODJaB14Lsz2RpnrwlfKlX4UJn/Pv6lS64MF7JDLTYF0MUuir1W4CmrRUKWV7ssLk w4rooWx+UzmqpubydnBAjdxHX459DaBlbX/DJ1Z6F9DAEipQ4R14rGyCeDSDOp9h5kZg id+bozvcSd3jPmsgtPHkfxjaAJh9cJcinb5edG3OPQz4swxS2Hlh4eGmazFPUatyHbhp 8vUSBBnGn49GaXa0MO3zoKN/z8XbGl5qQ1NjxLlTykbjRF+15xut7S63OymPyCGq2C6R 0fHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=00lLnSjdJnBUwC7j+/73TW+VYLrCXwPgowV1GmHVZdI=; b=Pj8TGEOn95wjD72K7EdHmwQBdpCucYhqbO4g2r5ek9vbrf8lnYPiDFCS2/h6D/OJTF 3DdH7ZfDo9uDW5WcIK8OqBgdKpeP9ncMjFDUPhUJUKIxAPfIQHvh+upmWdHCjWNL3foO rRl46WtJaA2gSfhXh2koaiAGMSq2NV+jtvoMer0d4DBzWt6I2ASsaYq5wqYgiu72RBSv yJnxumJh94YvX2PS3yqQGtmpVO9KhY+LrCwX1OSJrYa8+WNXmJDZoCiw/2eI0rnntEcZ TpQAhvhOXHraZOb87OltPIg4tfFQaBhuMIYD6N3stBNxDHCOvLtxZZ63F8q68NhDNtGg kzRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oc24si2344028ejb.254.2019.09.27.00.59.12; Fri, 27 Sep 2019 00:59:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726501AbfI0H6y (ORCPT + 99 others); Fri, 27 Sep 2019 03:58:54 -0400 Received: from smtp.cellavision.se ([84.19.140.14]:34725 "EHLO smtp.cellavision.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfI0H6x (ORCPT ); Fri, 27 Sep 2019 03:58:53 -0400 Received: from DRCELLEX03.cellavision.se (172.16.169.12) by DRCELLEX03.cellavision.se (172.16.169.12) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Fri, 27 Sep 2019 09:58:50 +0200 Received: from ITG-CEL-24768.cellavision.se (10.230.0.148) by DRCELLEX03.cellavision.se (172.16.169.12) with Microsoft SMTP Server id 15.0.1044.25 via Frontend Transport; Fri, 27 Sep 2019 09:58:50 +0200 From: Hans Andersson To: CC: , , , , , , Hans Andersson Subject: [PATCH v2] net: phy: micrel: add Asym Pause workaround for KSZ9021 Date: Fri, 27 Sep 2019 09:58:02 +0200 Message-ID: <20190927075802.10376-1-haan@cellavision.se> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20190926120922.GD1864@lunn.ch> References: <20190926120922.GD1864@lunn.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Andersson The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric Pause capability is set. This issue is described in a Silicon Errata (DS80000691D or DS80000692D), which advises to always disable the capability. Micrel KSZ9021 has no errata, but has the same issue with Asymmetric Pause. This patch apply the same workaround as the one for KSZ9031. Fixes: 3aed3e2a143c ("net: phy: micrel: add Asym Pause workaround") Signed-off-by: Hans Andersson Reviewed-by: Andrew Lunn --- drivers/net/phy/micrel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 3c8186f269f9..2fea5541c35a 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -763,6 +763,8 @@ static int ksz9031_get_features(struct phy_device *phydev) * Whenever the device's Asymmetric Pause capability is set to 1, * link-up may fail after a link-up to link-down transition. * + * The Errata Sheet is for ksz9031, but ksz9021 has the same issue + * * Workaround: * Do not enable the Asymmetric Pause capability bit. */ @@ -1076,6 +1078,7 @@ static struct phy_driver ksphy_driver[] = { /* PHY_GBIT_FEATURES */ .driver_data = &ksz9021_type, .probe = kszphy_probe, + .get_features = ksz9031_get_features, .config_init = ksz9021_config_init, .ack_interrupt = kszphy_ack_interrupt, .config_intr = kszphy_config_intr, -- 2.21.0.windows.1