Message ID | cover.1595235208.git.nicolas.ferre@microchip.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=9Q3T=A7=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4FD61138C for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 20 Jul 2020 08:58:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 287772080D for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 20 Jul 2020 08:58:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MQ8N/aKx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="lC/buerm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 287772080D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=kk5F4BuPNJPPJ3HyDKWMwoDDlXNolK4n0IkjdbXpdjQ=; b=MQ8N/aKxsbIqhk8jFiO1bKa3lJ FfncYiZC4HWlQICUA7LqAGL6uMdqxg+ZuTMkZ6h/7A5YqaUXzwm1L109S8fSvgw8bnaUK9IoGabJx FyU5/XaleGLHsHYoNroQsRBUBE88xeDS7/pDFQn+O1X6/F4MWaxxYMKRslT2ov7NfcHicIOGQeZ1d o1PMlAopS3gVW/VJO1q3Yf08JZjKKBzsMRVoxT7P2Emh3KyCoW6cK7cKmPAQXwFcJqhHV8ZBfeKbN pkOHXbwxKZic0uybqgMC7tDi43t3b/kFKhmxOJlqRMtoDvaw4TUI1cH6MbG2JwO+fHkfaK4SwiIPd Dt3Th22A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxRbm-0007ps-GM; Mon, 20 Jul 2020 08:57:14 +0000 Received: from esa6.microchip.iphmx.com ([216.71.154.253]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxRbi-0007nX-3S for linux-arm-kernel@lists.infradead.org; Mon, 20 Jul 2020 08:57:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595235429; x=1626771429; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=e8/HhYk/urxGZ+2YhG3WZsbvahVba0IK/eo3FV+lCrs=; b=lC/buerm7lEK2lyOIiVP9T6LZPa6WdBX2oXKMUjbQdeeBOsOpAIS43RS Imiyx0gdAHAkdHvEZKsamLyZFldrqMYOGVv/VcogDEqq4f4t56w43dH7U g0HVqDVRH7wCBWM+Qbb/7Uuan8YD9b09ysJp61ZDo7e9wGMI5CWGd7Btm AH64Jxg+cbcPszjQ3nN3eBJDw6847DUhsJk8ld2KpTTAMLmnOMA1pUsVI K1U9XE4uMRzXDFv5duCj4WkOaGRiL50KNuSyXKdiFSOj6xQL6A0Nax4YZ p7I+pOIIFUvcPMIkRYMbfhQ2lj/3HIuvlyGSDUi66Dp1AOrrbcaK6Xg7q Q==; IronPort-SDR: HIkjrBjtDBPfTUJHMmkfw9G6lvWuXgvhdapm1isB7eSaJg0mowbzxqPhs54TAyLV/+ayGi6hQe KaFDUqEzzux15k6BCNpU9e0vVnuaxOLFud+m+uD79hMMHpJpFcoYGM6Oh+iCZLQlBAgQyb07t0 mbjJ0wCppxqytbd309NtQ7yiCQ4jh5PQelA2m5aBuPwvxpg0scs7JfNdK0Msnw7xrAhrHqMoi8 rSkQLmfMCpLVBMzZ5df2ZS98bPrZQqoXK5PVIVVZPEsny2YI6vegCSSEUowhtKZ663QivDYFpR C5M= X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="19791024" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2020 01:57:07 -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.1979.3; Mon, 20 Jul 2020 01:57:07 -0700 Received: from ness.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Mon, 20 Jul 2020 01:57:05 -0700 From: <nicolas.ferre@microchip.com> To: <linux@armlinux.org.uk>, <linux-arm-kernel@lists.infradead.org>, <netdev@vger.kernel.org>, Claudiu Beznea <claudiu.beznea@microchip.com>, <harini.katakam@xilinx.com>, <f.fainelli@gmail.com> Subject: [PATCH v7 0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling Date: Mon, 20 Jul 2020 10:56:51 +0200 Message-ID: <cover.1595235208.git.nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200720_045710_287211_47E14C2B X-CRM114-Status: GOOD ( 10.78 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [216.71.154.253 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [216.71.154.253 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: antoine.tenart@bootlin.com, Alexandre Belloni <alexandre.belloni@bootlin.com>, linux-kernel@vger.kernel.org, "David S. Miller" <davem@davemloft.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
net: macb: Wake-on-Lan magic packet GEM and MACB handling
|
expand
|
From: <nicolas.ferre@microchip.com> Date: Mon, 20 Jul 2020 10:56:51 +0200 > Here is the second part of support for WoL magic-packet on the current macb > driver. This one > is addressing the bulk of the feature and is based on current net-next/master. > > 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. > > These changes were tested on both sam9x60 which embeds a MACB+FIFO controller > and sama5d2 which has a GEM+packet buffer type of controller. Series applied to net-next, thanks.
From: Nicolas Ferre <nicolas.ferre@microchip.com> Hi, Here is the second part of support for WoL magic-packet on the current macb driver. This one is addressing the bulk of the feature and is based on current net-next/master. 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. These changes were tested on both sam9x60 which embeds a MACB+FIFO controller and sama5d2 which has a GEM+packet buffer type of controller. Best regards, Nicolas Changes in v7: - Release the spinlock before exiting macb_suspend/resume in case of error changing IRQ handler Changes in v6: - rebase on net-next/master now that the "fixes" patches of the series are merged in both net and net-next. - GEM addition and MACB update to finish the support of WoL magic-packet on the two revisions of the controller. These 2 patches were last posted in v3 series. History of previous changes already added to git commit message here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9f41e3db40ee8d61b427d4d88c7365d968052a9 Nicolas Ferre (2): 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 | 191 +++++++++++++++++++---- 2 files changed, 167 insertions(+), 27 deletions(-)