Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1686870ybz; Thu, 16 Apr 2020 13:42:02 -0700 (PDT) X-Google-Smtp-Source: APiQypIRBXcDx63i7T89KiqcPCV++yk/xv0tGPxD9sdb6Z79iI1o6Zlgw73JpnAOXxpUGmtwdBI0 X-Received: by 2002:a17:906:cf8a:: with SMTP id um10mr11118879ejb.60.1587069722455; Thu, 16 Apr 2020 13:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587069722; cv=none; d=google.com; s=arc-20160816; b=tA3lLBth6lDJEvqKcL6jn7z9nP1oLm9M1UBG5sWOYNetPCmPpkJ5pOD+zGpVEUpqXQ p9dUnoFsPNDBz1AGr5CU4frr595Ci4JgHBOpitKLMwULr40Gn2rsGPZOoFAY9ideMxaY fklHbG6B5hYKPaOuZ9rgwlqSU1f8gXNYCIV6RAPcmAYtYIwVqAvhoRUhCWtPrwBwf2tu ZJwdUYfW18xKHiACaXjz5g3O9nvljRruO9OfQCHLvzxVzYcZQQ65EqvE/abz/d32RbEj QlfmjoeqbGoj6yh+lKGZkZMGJSS+I5g97Oadmf8nuwLoMe9VZUzoMdYHJTg+oOHsuiBk s+DA== 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=xHQ43MdRlce/zD3cU+JLMF2YKe21mF0KyVvtXAdCpm8=; b=IfdIKWrHWcwZ6NctNqpHDA/CiBkCH0JiW056mSTDpdyCK1LKchR9NTJLZAEyj+JL9K Nhgl4k8bDjqRcglBAxyW7AukChk3napXyO82hCS1RMVb7R8MALDl46liPROu+KYxggWJ nEV/CvUCrfe+t4+QB2hq2/pl7+uzIaFON0/Jwri2nXStISsZJxXNx7ZWeyThDcyLOlzh zSvmVDD/ZLPiqKz5yGR4xm+mq+VFjBREVhXDwKsd4Kv6JFfIm1DE7la55mIUjRBXsj/p 0CPCCmVISSVGba7hRpPyd3wr/dF6hfBiQ1f29Q5Fqe2Sw7Rv9u8ORXziVIg9RkTIHtZi ZQyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Ma9Wt4tB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a26si6674146edx.154.2020.04.16.13.41.39; Thu, 16 Apr 2020 13:42:02 -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=fail header.i=@microchip.com header.s=mchp header.b=Ma9Wt4tB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393246AbgDPRpE (ORCPT + 99 others); Thu, 16 Apr 2020 13:45:04 -0400 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:9431 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbgDPRpD (ORCPT ); Thu, 16 Apr 2020 13:45:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1587059101; x=1618595101; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5ZWBmVoYMO/hCFi0Ml2DiGaGCI33pC6mAPMVtPWs/Mw=; b=Ma9Wt4tBIlioUm6kmKOHCEZrIlc3P1pCTzkv1GYe65NRYjz//bMwapRG NjzikHI1UKfT6eZ8fidbFVWD5hWx5QGgvaziBmwi64Z01EoHazfPpCK1U 7ZQ6dWf2O+APg8uB9LYAZ/sQ80XfKtdfaIvKuwdCKsyKi3vkop+hoGdFG GT3ZaBO9yH+OFy4kgOCYtnjkEK87krMzeiIMSeYX3lu7LFTYwaHgvClFR ZoMYQusvXX0yfuUwUIQVnrVYYxS5ovi2aPQ3h5WVGLDvFEWpHUOl/B61A PxrBtpwaa28FOxjBpiCdEI9diIQmqepdOWfBrODsAer+iKJFBqjzPJXjz w==; IronPort-SDR: PtSZ4I31iksvGuzc9xhP9LVWGcyCXG8fRlBsa6MUe7f0kTawT44YjJW/Ol87YLQhSd/TWC06CN vY3kUgO7yvYkMZdIj+THMSmt5tNVA09qVx/ltYeBsCpReLtfGehSmxuqAEQCuXp+3ajKkuhYLg Aa6DHA/Ln42W8mtSjfNspxx1fMguUeZWpgI9znGdV4MVvQd3kWPobVaHh3rHewD3ersvdUVH8z /7ym+dIl2VSnL1J7zsSvMomtoTVyGUY0+R1f3eBBjww1K6IxRNwQ/tA0STASxoi4fWAK+GT6rC 7gU= X-IronPort-AV: E=Sophos;i="5.72,391,1580799600"; d="scan'208";a="9428364" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Apr 2020 10:45:00 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 16 Apr 2020 10:45:00 -0700 Received: from ness.corp.atmel.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Thu, 16 Apr 2020 10:44:55 -0700 From: To: , , "Claudiu Beznea" , CC: , "David S. Miller" , Alexandre Belloni , , , , , , , , Nicolas Ferre Subject: [PATCH 0/5] net: macb: Wake-on-Lan magic packet fixes and GEM handling Date: Thu, 16 Apr 2020 19:44:27 +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 patches in order to fix WoL magic-packet on the current macb driver. I also add, in the second part of this series the feature to GEM types of IPs. Please tell me if they should be separated; but the two last patches cannot go without the 3 fixes first ones. MACB and GEM code must co-exist and as they don't share exactly the same register layout, I had to specialize a bit the suspend/resume paths and plug a specific IRQ handler in order to avoid overloading the "normal" IRQ hot path. The use of dumb buffers for RX that Harini implemented in [1] might need to be considered for a follow-up patch series in order to address lower-power modes on some of the platforms. For instance, I didn't have to implement dumb buffers for some of the simpler ARM9 platforms using MACB+FIFO types of controllers. Please give feedback. Best regards, Nicolas [1]: https://github.com/Xilinx/linux-xlnx/commit/e9648006e8d9132db2594e50e700af362b3c9226#diff-41909d180431659ccc1229aa30fd4e5a https://github.com/Xilinx/linux-xlnx/commit/60a21c686f7e4e50489ae04b9bb1980b145e52ef Nicolas Ferre (5): 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 net: macb: WoL support for GEM type of Ethernet controller net: macb: Add WoL interrupt support for MACB type of Ethernet controller drivers/net/ethernet/cadence/macb.h | 3 + drivers/net/ethernet/cadence/macb_main.c | 181 +++++++++++++++++++---- 2 files changed, 158 insertions(+), 26 deletions(-) -- 2.20.1