From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61857C433DF for ; Mon, 3 Aug 2020 07:25:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D44720738 for ; Mon, 3 Aug 2020 07:25:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Fjc7HVvo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725951AbgHCHZZ (ORCPT ); Mon, 3 Aug 2020 03:25:25 -0400 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:39719 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725270AbgHCHZZ (ORCPT ); Mon, 3 Aug 2020 03:25:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1596439524; x=1627975524; h=from:to:cc:subject:date:message-id:mime-version; bh=oMWg5fmcj4i94jtAVqNu7HyEx05/B6CcovlpJXQlAQM=; b=Fjc7HVvoDHE8U6JvghiL78AYZwOypBi4aGWLJysMXTNwQb8xqOSEuwfA 386fnw5xiNZgS5lOm5gIm51X9IMZrJ+A9bP/aiJO/rd88TNX1KCnaGzOa 5UFDcbWbPsac6I7xUgSyNCylI/12uDodD14WxxVN8DXOELW7M6JZHYXAv LSpkL0NMkDpA+ch5NmRdsD/WFXhrzbOWTO04NnlVPtHfev2WyoiIAUGhi 1gSPcgLwlc0tcV+B2shXMwCPWFLoZmIh5I1XaY2RJmi8XBT1FDobJFBoO Eh+pjUFlgJVAjgfruGVfyrFk3eziNCK6ZbSoIRT7h7JI8kcQ8HX2pRkZ5 w==; 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: , , CC: , , Claudiu Beznea 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 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D79EFC433E3 for ; Mon, 3 Aug 2020 07:27:01 +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 A3738206E2 for ; Mon, 3 Aug 2020 07:27:01 +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 A3738206E2 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+linux-arm-kernel=archiver.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-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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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(-) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel