Message ID | cover.1594632220.git.nicolas.ferre@microchip.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=XX2c=AY=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 A04CB618 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 13 Jul 2020 10:07:22 +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 76A402077D for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 13 Jul 2020 10:07:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nV2VV8QN"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Pp2WdjeA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76A402077D 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=K25OTQeEf7fKyTGyous6yw8XsVdDepZdZRFb2SNSrYg=; b=nV2VV8QN0/jLlCrK5x3Ej8GLtN RwfCxpE/CrcFvFR54V3YbSEUIry25UR7jMuL5mALUa8MDY+ksKRT9w/FUXLcEfqOFOgsUW1KW9pWk +Qx6dkYPUQZsmKUqH0SQJwAJM8I+PRNWcebbFKGs7Fs7FkCA9SS25DxxhqFXdh8sMlZyHo2tji9Z1 vBkYxo30jEL1AfSVXySOINNO2BD9CCm90XJKjE3Ip4EGiJcWPcW3eLCcOwZXMHLOmd0bV360IcZOn 4mzgxzPpFxCFcuJgC87Ophm7W3lFLzkhLGpLh8QWvHBjcferrCeQhE2AZaM/Tqs2SDsD150DTdz3L WxKNzlbw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1juvLS-0004sq-K3; Mon, 13 Jul 2020 10:05:58 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1juvLL-0004pI-U5 for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2020 10:05:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1594634751; x=1626170751; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iEPXg4m/PV2bFSjHkkjCWZpki+k4rKh/UyV/yzZSQ0M=; b=Pp2WdjeA1nbSBMecg7qVsB/mo18jGVxYdp6lsIhd+OiAbzQNhfrwdJJA 0acQC82VHv0Rd2Jd4qU5BK1Cgt6zChG/TCfziA2O30AbaxvJSSNdxXPA5 quzmJNorTlA1NmD99Vj8DLundg1eGRE89q9iBE2TAj4rysN0Nw/GCRm6H WY/P44Y5OyyFU3xTN8mSYZHY8ALVZtj/fGhh/WmVxPAEVFqMxbDnJqGRk QU0wQHvCwN8nzC+TtFIXqC+tGfWhLKLgYkK0SMTCXo7zOn4xtvS6H8fPl 7MaPTWylR+Q1iD29Ym0PPR+2ZHwEZjut/X5+2FXF70nXc1Q32/RNxvhJK g==; IronPort-SDR: meGEHEUjaT0fMMXyYcZqeGoQpnTvH3DTaH1aev/07RNploieJ9h5IeW0beRH6EslITv1iyRox5 B9lI9X/I7pXsUmozhMp91rOkhmkObZ8bWzT3EjC+szJAzGkxc1J69/x3bQWy5/kXfSFe7+sBKm 5VKZNBlbk7pFzSs/WzPAEtVRd2FL5W7syFD+bh2uG7OUDXsqOpwVMNZhPV2r06+4yUp8r9GUXF O/84ZMtUJgJh2mWt2zIHCxxMgA+w0hzBCkPIj2iWDz97VIaqTkW9ebCUuP0MSy9BGPA/F+GJgm 0fg= X-IronPort-AV: E=Sophos;i="5.75,347,1589266800"; d="scan'208";a="79679482" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jul 2020 03:05:48 -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.1979.3; Mon, 13 Jul 2020 03:05:48 -0700 Received: from ness.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.1979.3 via Frontend Transport; Mon, 13 Jul 2020 03:05:14 -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 v6 0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling Date: Mon, 13 Jul 2020 12:05:24 +0200 Message-ID: <cover.1594632220.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-20200713_060552_112727_AC61B39E X-CRM114-Status: GOOD ( 10.61 ) 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 [68.232.154.123 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [68.232.154.123 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_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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 <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 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 | 188 +++++++++++++++++++---- 2 files changed, 164 insertions(+), 27 deletions(-)