Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp479634ybb; Fri, 3 Apr 2020 06:29:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKWAIVaCBOgcFI+SjqtmBsMoHpWZ4NLIBZVflRI5s/0mFMQAC+ZwlNPo0gH4MsM9/gSl6Oi X-Received: by 2002:aca:ddc4:: with SMTP id u187mr3009306oig.129.1585920553143; Fri, 03 Apr 2020 06:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585920553; cv=none; d=google.com; s=arc-20160816; b=v0gwULlErTyrTD5Py2eJsppqRsbGGBVh8fisc3sbcNJ1h+PTy8cTWg1Cttqd5aEYna bnyMJgYaSHAN0i8Bo2x/Ag6Ir0G1NI4zrtJelvMo8wt0CEWpw0hQJAgA69rjB/LMnhko j46BGbl9wc+9O6Vb38rYmJl5z2gXz1UqJazuLun5NRp/OXG6yr7e+o000FHdzWWhJ2xY F+tJPuS2a/icSOYhmKlXvy6sAnizb6XjhS4rY2Y/NJMOiUFfaYSb4XIhHdI5vDJ48H5p 7p0Feu6FGA/zo4I4sTuI4KO90NYa2aof2pqf18nS7OjDcgN+12LeQI49wUzdt9rqRytx +UUw== 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 :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=AxL3ICG8yFf9RUtcBNZ+qZudnjNBi0VSJJwuU3yk4jc=; b=n0IVk3h3myWCepRbgXR4gG/wDOFZVQ9wRebhIMxK9J5sZArkqQYucbLfu9VcN3mxq5 Kg44EYRWXAinprTj90x4frrYEYtEqOHmV7yo+I+vanztkYS72E4nAZVglQj6qITavnlC PZASqk2m0czrSkoOfx8AHcQuBfO4dm1DPSMy+V0fhh1asYTTMRl5Um7gJOx4Mf8GCSZH Lf08BA1V+i5GL7j4i6Q+w2V8oHWT0TsUQ8t4E417A7hNWDcMy/kNXEwzvxa7Un+hMO6l VYhaBIDeBcDJquvW9+v1K7K5HToJt52+5rKCKlUowyxEn7ucPM6CH5xb72KXa8Ztj2HU WUhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=tgrMngR6; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r205si3707387oig.174.2020.04.03.06.29.00; Fri, 03 Apr 2020 06:29:13 -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; dkim=fail header.i=@microchip.com header.s=mchp header.b=tgrMngR6; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403885AbgDCNOw (ORCPT + 99 others); Fri, 3 Apr 2020 09:14:52 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:48431 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728044AbgDCNOw (ORCPT ); Fri, 3 Apr 2020 09:14:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1585919692; x=1617455692; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BUl5OPIQBO+nrNeP6bJCMTo0vE/9FRdmAQik2DEkayw=; b=tgrMngR6pzQ01atnhAhDbj2i4riCmFcYYgbD0WHg4X4xGjXD/f67xVd2 y31GyQz1DvkiXdNIpjhby3dH8fX3J+645Gi6L9ka+3N8KnAry4dNObs80 nPoGQpnxR9iy7BpP54Qyepq85E90X2OPNvZtw5t8w/d/fXVgh7sTDBFuu ZCaB0v1kJ3e94XPBsJOpF/+fBoAqDXARTJ+HlmRH3g7JbjyAxfOxgS1UQ 6oGtbW1alvTPIcVeAgDo38wkl5QdCZuAOIMAbE/Ag9jfGA8xLPOOot/3c axIOQZsQgKjuHHYnnVja6VAO//gz0oSBE5wJUK+a/Y4MRQmi5dkqyWm1q w==; IronPort-SDR: fp0Uozpef3CLf5W/bXxKymuxuwx9c5MwNPOiYwlw4FwV7l/pQYDdYtz2c1FkGVuZH29Qdr724A KwrNpZf6559mPj1sCF6FMbQDMhpMKlZuncxJCV91W29mvubFpUgfZx5MjtQKK/NOxtbsla/VFy GqpFGw0M7ba3HrcZMMwacQLwWqBD6CSyE7uzq/b0jpCBLP9bJF/aVc4iXu7WtfFIKFTu/x20R5 GJB23TMVkacy5a3TR5yQQTN4Qz5xAezhNm6Zk97cbKIp3JS+fYuY3t2owlleqs2/MAOOaUZPOk YbA= X-IronPort-AV: E=Sophos;i="5.72,339,1580799600"; d="scan'208";a="71345554" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Apr 2020 06:14:51 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 3 Apr 2020 06:14:50 -0700 Received: from mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Fri, 3 Apr 2020 06:14:47 -0700 From: To: , , "Claudiu Beznea" , CC: , "David S. Miller" , Alexandre Belloni , , , , , , , , Nicolas Ferre Subject: [RFC PATCH 0/3] net: macb: Wake-on-Lan magic packet fixes Date: Fri, 3 Apr 2020 15:14:41 +0200 Message-ID: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Ferre Hi, Here are some of my early patches in order to fix WoL magic-packet on the current macb driver. Addition of this feature to GEM types of IPs is yet to come. I would like to have your feedback on these little patches first so that I can continue investigating the addition of GEM WoL magic-packet. Harini, I know that you have patches for GEM in order to integrate WoL ARP mode [1]. I'll try to integrate some of your work but would need that this feature is better integrated in current code. For instance, the choice of "magic packet" or "ARP" should be done by ethtool options and DT properties. For matching with mainline users, MACB and GEM code must co-exist. The use of dumb buffers for RX seems also fairly platform specific and we would need to think more about it. [1]: https://github.com/Xilinx/linux-xlnx/commit/e9648006e8d9132db2594e50e700af362b3c9226#diff-41909d180431659ccc1229aa30fd4e5a https://github.com/Xilinx/linux-xlnx/commit/60a21c686f7e4e50489ae04b9bb1980b145e52ef Nicolas Ferre (3): net: macb: fix wakeup test in runtime suspend/resume routines net: macb: mark device wake capable when "magic-packet" property present net: macb: fix macb_get/set_wol() when moving to phylink drivers/net/ethernet/cadence/macb_main.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) -- 2.20.1