From patchwork Mon Apr 11 11:20:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12809014 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FA4BC433F5 for ; Mon, 11 Apr 2022 11:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=Ktioo7SJ5A4mQ/JiIgar/17DYfuznW3+i53YxyYqtFg=; b=lr9Zq5rPVfSRVX FZHyJ1kVWaOlY6gfD+qTppcP59HwqqCMnknOsTEs65RG3ZA2h0cTwSM5U5xj2y2/ZoLRltH0NguTo hanZb6qfNClY0lh+N6WP4WCJn+7HHwXgk+BIcOPAlmbztwFmh5/akVCZAUnJ22oNZw+kEHSwKqTMI smc/rkE+iL9faaDH30MCPnDpzz0dT3VjuePWS69tj81nth+KD4yVnRGdqmjayyOdjMwXXCaQosPdx ScX1BjhbQ2VlNV4SyeBP9JVJsu+JOedxzZHWd38h/oLZM6Mud2rCnHX4EElsS9QBROA3o0SkEHipM DsAlBjv4bxvLXtNWSm1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nds4E-008c58-6m; Mon, 11 Apr 2022 11:18:46 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nds4A-008bzm-8Y for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 11:18:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649675923; x=1681211923; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=b8MRCdA9KkHqlIOxp7L+60IpEhaonoO7aCn57xUekUA=; b=FTR1GRNGGJpl2iG1WDgFZ12Fw026BIuberpgyv9v3mTqcH6b1NwTsVxe gRFO6dKbfbbgHnSTbm/IqCFJ4ZZ2sXrz8x1Ib9ZHqqzGskcUfUb6UQFf9 fb7n7IhDLf1noL9iZWU6+7KTAyqDx1k925ZioGklN+wo0+2RN4hZ/ddun OuENP+/HUwTR53pozGIYXvfyN8KU6Xc60a/AMi/tEWWniTq45J3avlN6g SJ4fMhg5K48Kt1Y9QDlP3oU7Exlw0QXMikQmgTybFnnlDhkPmVcswLphj Yfh7eVS0j/OLjOdPYZY/xhcb6bVsZdSjAAPiN9LOLWt8ihqdWF8B/8+Xt w==; X-IronPort-AV: E=Sophos;i="5.90,251,1643698800"; d="scan'208";a="159637089" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Apr 2022 04:18:31 -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.2375.17; Mon, 11 Apr 2022 04:18:30 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 11 Apr 2022 04:18:29 -0700 From: Claudiu Beznea To: , , CC: , , Claudiu Beznea Subject: [PATCH 0/4] ARM: at91: pm: add quirks for ethernet Date: Mon, 11 Apr 2022 14:20:53 +0300 Message-ID: <20220411112057.35369-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220411_041842_403147_30072E84 X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, As described in patch 3/4 when receiving WoL packet on Ethernet interfaces of AT91 SoCs and being in ULP0 or ULP1 AT91 specific power management modes some SoCs may block other may have Ethernet interfaces broken after resume. Workaround for this would be to disable clocks for these Ethernet interfaces. As the MACB driver is common to multiple vendors and multiple architectures and ULP0, ULP1 PM modes are AT91 specific the fix has been implemented in arch/arm/mach-at91 to avoid having AT91 specific code in MACB driver. Along with this patches I took the chance and added few comment style fixups. Thank you, Claudiu Beznea Claudiu Beznea (4): ARM: at91: pm: keep documentation inline with structure members ARM: at91: pm: introduce macros for pm mode replacement ARM: at91: pm: add quirks for pm ARM: at91: pm: use kernel documentation style arch/arm/mach-at91/pm.c | 367 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 334 insertions(+), 33 deletions(-)