Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1691386ybz; Thu, 16 Apr 2020 13:47:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIXWFEmSNh4iEj065Rrlh/j6aiw8FSrezmgCb3Xk32Fz2+P+L8yHI2lI/0myB8OZvxACsbp X-Received: by 2002:a50:8a03:: with SMTP id i3mr52406edi.121.1587070044361; Thu, 16 Apr 2020 13:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587070044; cv=none; d=google.com; s=arc-20160816; b=QbCf3OLek35bnufmDEFBMsJ+8jDZ3ixh6BsNygItnpugtIddaYDYpYchV1ynFR0kxI t/+DeqwEE4Bw7d5BlBkel+tEUyHffNJfjuxSfBIgSnQVzxenJ/4ZDND18p0Ian7Px4cK /SBxPD075GQWMDA7ue9VcF6THMOAiEmCMUNOBeJLNkBMxcJk4FXKUD5WX6sn0IbqJmry /TXLpM+SM7F3GSgy+l+i4ZxgqoUo2hX6n/WTGauOqq9aNqMpae7gg5gKHLkcxc/hxA0J LTb/1gJC38T07XUjR5yj65xwhGZPUu1LIW5mu7ieb4gwf3fDHH5FZIhOvTvZvrWqQa6S XFxw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=u735V9HHFXqgUnn+jYHUVF/KBe71XKmd0C1DJzJ/jm0=; b=ihVHwSo6Wa+lcvyHi0wE95gb8vNCxQ9WIBeufaKbexYcP+VC24gwaQu4ncNt2nZ7W8 aTFKpfE+l5wmR9CZIkkLoy2kf0nx+3GLjciVAHnGXbE/4oWtcGYkAhQOtbsGMid6Ve8y kg+jVPln8aRbt3nO+zLdTepVOAoPelPnSphv8+mY3Q3nF7+eCzJ5StVUT4ssBb3lSNb3 JOGgaLOJqllrtbK6SZRRY374gEEVqIxtF8pNmU9xNwemDzz4JaYV2u9NsjzK5PPVJ6df rIabSpyMsC700BHLZQqBmMbdYfK/Zewi/StWVjPMhQlFJCbLygtX3whdmnjHIVAs1Q3y B+EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="W2ktpi/S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x16si9185707eds.487.2020.04.16.13.47.00; Thu, 16 Apr 2020 13:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="W2ktpi/S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729533AbgDPTWa (ORCPT + 99 others); Thu, 16 Apr 2020 15:22:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727844AbgDPTW3 (ORCPT ); Thu, 16 Apr 2020 15:22:29 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B40EC061A0C; Thu, 16 Apr 2020 12:22:28 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id z6so1691365plk.10; Thu, 16 Apr 2020 12:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=u735V9HHFXqgUnn+jYHUVF/KBe71XKmd0C1DJzJ/jm0=; b=W2ktpi/SDTw8TMDFSJZ/zDu6AgJz/o/lQDlgBHyxfpS6M0kdrnOV9HhMIsB33D4oxz WkkoBzxmVABXTyb1MNK33/9L0RGn71GLlgiOAn98NGKGoSliEfX2EsjDVyA8aS+HyAnq bsbUFICd3O/TtkeHgElSKP4rOjWd43cz6xGuAJELa0pGOUPg9WDyf2L+naAU3wqqNzfn fB87FeiUJFP776rRtewpUaPf/2Z9AGBAKP237bD5B1BPTg1owzPB8TNycnu9DGf+NcJV +qlFAgnYgcP/yLOYkSIZGmUIy3+h3i+CEzIsSkv8qgOxHbk1pCg64Uz/XITUG0DsBIrf LtYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u735V9HHFXqgUnn+jYHUVF/KBe71XKmd0C1DJzJ/jm0=; b=NwgNkrurI5qUmzs3zf8bBVdnRpS3Ybmo6OLZyHcEENveEHSZQ820GiWWGtqtAG4klO 9CAspL3JzFSy/rP4fDa5RGa8fcdeqBmUwTgDoHvmNvl3izQ6Jh63ID/crNyxvBtJz5Bw LWs9uVgQRbYp3AMnfh+87sejq1Rty3Z7Zy0NpJbKWF2y00RaUyZyxDPdzud0OHfrdfoS CQSg9+Awuovqqhc6RFsd+EbAFtZ1/UUq7DPhGlz/4cHoceCqbnzBS4aaiq17ZCXw2xBF OgqvFj3u5irPFNFCQoIKiTxIw0ZmBbvq5Wm4x16zq3oQ6Mut4jqJl1UscZZMJWjXHu8v HVRw== X-Gm-Message-State: AGi0PuZDb3CKgkTUKPgKuWubsTlpxIzsJM5au6tfiJLd2KzP3ToGyQ5d IkNfgbc8bfdaeIgKVYdRz0E= X-Received: by 2002:a17:902:868d:: with SMTP id g13mr10853361plo.317.1587064947693; Thu, 16 Apr 2020 12:22:27 -0700 (PDT) Received: from [10.230.188.26] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o40sm3544636pjb.18.2020.04.16.12.22.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Apr 2020 12:22:26 -0700 (PDT) Subject: Re: [PATCH 3/5] net: macb: fix macb_get/set_wol() when moving to phylink To: nicolas.ferre@microchip.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Claudiu Beznea , harini.katakam@xilinx.com Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Alexandre Belloni , pthombar@cadence.com, sergio.prado@e-labworks.com, antoine.tenart@bootlin.com, linux@armlinux.org.uk, andrew@lunn.ch, michal.simek@xilinx.com, Rafal Ozieblo References: <897ab8f112d0b82f807e83c6f9e7425d1321fa09.1587058078.git.nicolas.ferre@microchip.com> From: Florian Fainelli Message-ID: <8d51c4af-1e00-f33c-0f88-10afc837e46b@gmail.com> Date: Thu, 16 Apr 2020 12:22:24 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <897ab8f112d0b82f807e83c6f9e7425d1321fa09.1587058078.git.nicolas.ferre@microchip.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/2020 10:44 AM, nicolas.ferre@microchip.com wrote: > From: Nicolas Ferre > > Keep previous function goals and integrate phylink actions to them. > > phylink_ethtool_get_wol() is not enough to figure out if Ethernet driver > supports Wake-on-Lan. > Initialization of "supported" and "wolopts" members is done in phylink > function, no need to keep them in calling function. > > phylink_ethtool_set_wol() return value is not enough to determine > if WoL is enabled for the calling Ethernet driver. Call if first > but don't rely on its return value as most of simple PHY drivers > don't implement a set_wol() function. > > Fixes: 7897b071ac3b ("net: macb: convert to phylink") > Cc: Claudiu Beznea > Cc: Harini Katakam > Cc: Rafal Ozieblo > Cc: Antoine Tenart > Signed-off-by: Nicolas Ferre Reviewed-by: Florian Fainelli -- Florian