From patchwork Mon Aug 3 07:25:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 11697507 Return-Path: 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 65456722 for ; Mon, 3 Aug 2020 07:27:07 +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 3EB89206E2 for ; Mon, 3 Aug 2020 07:27:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MuLPwR2t"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="zvgQhjiE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3EB89206E2 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=1ii6sPvH+5Tu4R1/Vh1DDtS6UFqAbHqGjA3Kdz1tmzI=; b=MuLPwR2tY5PlhfX3VQi2r7lxaf 83Uu7MP7tn9mw9Cgs/8C/DDilbKGVCCHQwO8o6DfV+a74do9fqUeKUhUsvDIl6e8e9X/CQgfgmqYX w2iq6cSqvqN0A58JaIUB43EStmZMAkSFXn5fDHg41tKDNen41yCYKFc110dmyYqLeozQl8TZbLkq3 5rWAQHtaq7ZsR4fHiOuPUihwdKVCqzrNyXK/01yHxmZ+kG+7wJcIOr+CVy9r+Dm3gS7TvMPct52vQ 68a85wL/5bBhoS1tfAThtzaF/KzTnez36QcgFDw7P7iQtpd5vMjef9rFj6OZlRRuktDz6X1eWopAU HhJrY8Gw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2Uqh-0000iN-6Q; Mon, 03 Aug 2020 07:25:31 +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 1k2Uqe-0000gx-1R for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2020 07:25:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1596439527; x=1627975527; h=from:to:cc:subject:date:message-id:mime-version; bh=oMWg5fmcj4i94jtAVqNu7HyEx05/B6CcovlpJXQlAQM=; b=zvgQhjiEOqK02cgmUyKBLmS7YAmK4iYA+yZCXRR0gJtKgnGFP9xY3L+C xnUHT59TsZ/kDj0eMepl1Uh2D9ZgzZN4wVlbifC4igOq/+QzqFo7/CynR vp5uDDVGs2gCmE7Rx/2I690ufGWnCM0TVSiq/oeLT/XSaJMNf9hceaCvH ux+XtArWQfGPzFx4R5PSruRDMxKtfMa8AVnQwdmg1R0Kopi9JgntyDOim vzr0VWw+/d+qaadYJEhG5a6rzgtyNvzVdl8Yf76cQC6nK8Zq+dswS7N3N TBIQtshFPw3zVLFnxCTZ8nPBN2Pw5a7mU/9G9+aSv5vyW9+jNfkOkcTxF g==; IronPort-SDR: HK3YbIkszbVy/V2MqxfrhoqdC8RYpFvC1yUb/psG551OXECq80wJc4OPKyy0WUFErM1L9/vF5n GqGIf9Y4sdvuKKVjlwmIlCOOfsrtafVXhJYFWZvytF4fyQ1zDal0v6eh+DdWfMsbuuvrFcapS/ vTpETQuf8VK7iYYLYhOIB/RrYiyLouBtoxlM/jQGL3lxzH7nAr/6mgK+6g1NttL3F490mx/Ryx Xq3Ec/0MYUS3h6yz4hQqan4rfftQV3AF8kJ+Hud5s85O6l738pXPZOedV/roLhXmb7L/f3dagR KPA= X-IronPort-AV: E=Sophos;i="5.75,429,1589266800"; d="scan'208";a="21509731" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Aug 2020 00:25:24 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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, 3 Aug 2020 00:25:22 -0700 Received: from m18063-ThinkPad-T460p.microchip.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, 3 Aug 2020 00:25:19 -0700 From: Claudiu Beznea To: , , Subject: [PATCH 0/3] AT91 PM improvements Date: Mon, 3 Aug 2020 10:25:14 +0300 Message-ID: <1596439517-12993-1-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200803_032528_242783_C0C51A02 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. 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 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [216.71.154.253 listed in wl.mailspike.net] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi, This series adds ULP0 fast mode intended to reduce the suspend/resume time in the detriment of power consumption (patch 1/3). Along with this patch 2/3 adds code to avoid requesting a PM mode not available on platforms not supporting it. Patch 3/3 decrements a device_node refcount after its usage. Thank you, Claudiu Beznea Claudiu Beznea (3): ARM: at91: pm: add support for ulp0 fast mode ARM: at91: pm: add per soc validation of pm modes ARM: at91: pm: put node after its usage arch/arm/mach-at91/at91rm9200.c | 10 +++++- arch/arm/mach-at91/at91sam9.c | 9 ++++- arch/arm/mach-at91/generic.h | 20 +++++------ arch/arm/mach-at91/pm.c | 79 +++++++++++++++++++++++++++++++++++------ arch/arm/mach-at91/pm.h | 5 +-- arch/arm/mach-at91/pm_suspend.S | 41 ++++++++++++++++++--- arch/arm/mach-at91/sam9x60.c | 11 +++++- arch/arm/mach-at91/sama5.c | 21 +++++++++-- 8 files changed, 165 insertions(+), 31 deletions(-)