Message ID | 20170606222532.22450-3-ryazanov.s.a@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wj5qL447dz9s89 for <incoming@patchwork.ozlabs.org>; Wed, 7 Jun 2017 08:25:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jri5Q+g/"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qBljjF4h"; dkim-atps=neutral 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ghQGhTZwk0Fn2Fvo9rwB/F6aGuSGqa7iGzGtssmJM+s=; b=jri5Q+g/4LoBO8tGSHI4U0QoRo QVvbpE5bqKXlcA2hLOkGBK0r+ZNcq6Ei+RULlqybVbqEOWokKLIY+Vg5VcqOUQtlo+GruuMy16aRF 66qV9UHN+W7+VNMFmvNqZ5+WGPa0RDLimw6F6wf+v88uA04vAaNGgqzVYL+6tLPXVOoPawyFHqOo/ GlfMqpNOQvz3J9notq7g00tdJKtwqFLqlQBfeiqFmo8c36+KPes9jpOYJkc25PbYRXl/OJtJo+dQA CqdYUIRmNZvGM2e2GLsx4YozWZfYnK85mKAUm7v66ZbdukwKwn5w+3uvKjHWR6YJnFwjddwiLpHYq 2pmZahrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIMul-0006Yd-LG; Tue, 06 Jun 2017 22:25:27 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIMuT-00050m-A7 for lede-dev@lists.infradead.org; Tue, 06 Jun 2017 22:25:11 +0000 Received: by mail-lf0-x243.google.com with SMTP id u62so12394471lfg.0 for <lede-dev@lists.infradead.org>; Tue, 06 Jun 2017 15:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=O7jT1SpiHmtwW4Xz9vfmOQcxUqLRhd4GpP2iau1CAuw=; b=qBljjF4hKU1ik1+pdn4I9R+U+T33jP0bCEfP0ep/9SnjxPq8hjWjIK1M4l+x9sVYOu y74GZrSkFv3cOySSyPKnIHYrhj92BH64/djCWxwj7xRTX9SlS7UO+aVWvq2NBUF7/5m4 H7Y8XC0BX0w7U8ecqEL4QnKpf7AZCKbFQzS8zqwBBvHQX57EsnrtEAc7Ozftokw0Ell2 HRafHq/CiC1OyXx3ZZOKRl9KTZUQduxNT5swkrbkcjjVan2//JhVHp9fHJg1rN2m82/b f9PZe4XSuZHyrdw/xMwcHj4T3PlMO3TjsCW11LgaQUebsH1MM73eD8yLgR+LkKsNRHlt 7U3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=O7jT1SpiHmtwW4Xz9vfmOQcxUqLRhd4GpP2iau1CAuw=; b=Py+V9gf73kHY+iTNhsp15CEGu0yBBSvXFP/n6wCWmvVkJfzNpulK5hpcMvfLCiIF6x hNuRDJLN5zHRb/8pLu921EO3fnBEfjsrL5vNWar8jkH7D9x+GGJkiWQCMziKB13q9EdY r+XjNjH2SmPecOWmR7j09OISptyK0kUtNg/gb4KCfTwU4BM068/z9oLyrLMLm1DWQrir FeqbM6J788gQj0/I862iGyfmxSApKOmmjP24s+p/XGkwqxJaUjIMNWgnhmhhXaElmtYR rr7Yal+IgXMsuwbiJrt8/ZGJ7qT+FHX/cTl9U92fhPLt9Acl7frnI+KgdxglnrJrqtCS 3NCQ== X-Gm-Message-State: AODbwcAxR8XJjvATJSOji20Nft9dpGk3Jfb8cbzrPPvJuV4EI4Mq+/R2 8tt2juafsYithJHx X-Received: by 10.25.233.90 with SMTP id g87mr9222492lfh.161.1496787887116; Tue, 06 Jun 2017 15:24:47 -0700 (PDT) Received: from rsa-laptop.internal.lan ([217.25.229.52]) by smtp.gmail.com with ESMTPSA id s2sm7752131lja.48.2017.06.06.15.24.46 for <lede-dev@lists.infradead.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jun 2017 15:24:46 -0700 (PDT) From: Sergey Ryazanov <ryazanov.s.a@gmail.com> To: LEDE Development List <lede-dev@lists.infradead.org> Date: Wed, 7 Jun 2017 01:25:32 +0300 Message-Id: <20170606222532.22450-3-ryazanov.s.a@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170606222532.22450-1-ryazanov.s.a@gmail.com> References: <20170606222532.22450-1-ryazanov.s.a@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170606_152509_535670_D4CB7549 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ryazanov.s.a[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH 2/2] ip17xx: correct aneg_done return value X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <lede-dev.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/lede-dev>, <mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/lede-dev/> List-Post: <mailto:lede-dev@lists.infradead.org> List-Help: <mailto:lede-dev-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/lede-dev>, <mailto:lede-dev-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Lede-dev" <lede-dev-bounces@lists.infradead.org> Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/target/linux/generic/files/drivers/net/phy/ip17xx.c b/target/linux/generic/files/drivers/net/phy/ip17xx.c index 9eedfd4..85a9617 100644 --- a/target/linux/generic/files/drivers/net/phy/ip17xx.c +++ b/target/linux/generic/files/drivers/net/phy/ip17xx.c @@ -1334,7 +1334,7 @@ static int ip17xx_config_aneg(struct phy_device *pdev) static int ip17xx_aneg_done(struct phy_device *pdev) { - return BMSR_ANEGCOMPLETE; + return 1; /* Return any positive value */ } static int ip17xx_update_link(struct phy_device *pdev)
PHY core treats any positive return value as the auto-negotiation done indication. Since we do not actually check any device register in this callback then update it to return positive value with a neutral meaning instead of the register flag to avoid confusing for future readers. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> --- target/linux/generic/files/drivers/net/phy/ip17xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)