From patchwork Tue Apr 12 15:30:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12810893 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 10D45C433F5 for ; Tue, 12 Apr 2022 15:30:24 +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=eVUm4Sq7juKA3zwlwFde8CY3BbMsbt4/u/mWKqsBl/Q=; b=r++ppDXkW9TW8t UOB9+O9F3669KMFdw7rmTsXP4EWy7ThiDS9ERG+BiL4f8dTm2ejHP1sidq5MH9ulMPpbvw57F2OWC lGcCcibKceFCsyWeYBLVzBcjkGWQo4+8KvG4LHXRPP/4DBRfy2geuTsvjJsgOb3eQHS/VuTbXJNW0 hpDW5QFUH+7pEml14RbaF+r4DJiqdZaIZi16hvh1wU3hCD4DaBBfn0IagyWF7F6V91Z1rZTY6EjPf funuT8p4TbxdE+ql/ML7hqeVixXEapGQu1LT+2I+f8OF7jB/ICmlmXXLEb74hkGTgMOOZ3R8P841I k2BRU+j19eMghovcWjng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1neISD-00EutA-OL; Tue, 12 Apr 2022 15:29:18 +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 1neIRZ-00EuZY-Ex for linux-arm-kernel@lists.infradead.org; Tue, 12 Apr 2022 15:28:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649777318; x=1681313318; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=kk9vDsGFP6yJI3cVDAN5JAQXQldQgiHzm+K/w9A/5ho=; b=SlhMO57QLnK01vB5JxzhfFLE/0j13KUVTZM/T0pHr0P6q/8YXJZagq/t MhtcoKB8t5yPYVhAAKV66mAt58sB57pjEfUby/Fi+v4J1+qByMeJibanr jTiBt222fwvkgb6kVBtU4ZPAtyeytN/FRHztlUciLQv26iO69O5FESby2 wQOZ+J6DV7mt2hGmLu/LIb2Rahd35XZnnalS2vcyXTfq/KH24mR5IHSUN yQoN7GEvNNtlHhyJHqnbe+InyWYsH/TsSc8KAzFYqxjbgJ+SYwxmWrkel VV7lD/9J3R7f6RJoDMfMZt6shmd5jPgU/577Ld7FumYdgEDzf61103zC3 g==; X-IronPort-AV: E=Sophos;i="5.90,254,1643698800"; d="scan'208";a="159838688" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 12 Apr 2022 08:28:17 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 12 Apr 2022 08:28:15 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 12 Apr 2022 08:28:14 -0700 From: Claudiu Beznea To: , , CC: , , Claudiu Beznea Subject: [PATCH v2 0/4] ARM: at91: pm: add quirks for ethernet Date: Tue, 12 Apr 2022 18:30:42 +0300 Message-ID: <20220412153046.50014-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-20220412_082837_548365_77DE387C X-CRM114-Status: UNSURE ( 8.56 ) 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 Changes in v2: - in patch 4/4: use proper structure name in documentation 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(-)