Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2691604rwd; Mon, 22 May 2023 02:51:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WmsFLyvaminAGlqQ4xLG1KPDUYl1LDwlZXI4mZUo/1ZLzS65YXR9HPRthpOHizvZlMd/m X-Received: by 2002:a05:6a00:1a12:b0:643:aa2:4dd9 with SMTP id g18-20020a056a001a1200b006430aa24dd9mr17019494pfv.7.1684749061956; Mon, 22 May 2023 02:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684749061; cv=none; d=google.com; s=arc-20160816; b=Dumtc/f+3/npLXCnBdGkyU7TJJr+itobb7wUAMzHZB5bB3pdP1SFjDSj/RJYr3zckI z0g41lRVyMESt9QoMY0dnV3pTF/9SxkaAEr1xhCVxu3WviKckL9Oyin+CUAtogkziEB2 H2RO2s5YDPB7gBhK1iDOtDONMJTdk9xPi7vV1zb7BzYcNCoeguZxLiYIxuRKJIm9mKWp 43T/Q8aXgbf1pBasdevlyqM45LKXmMewRb6+M8VKCIU2mAjfs7cmomenfadODzOn6UGL 7nby6xqbJvYiNQxOFccUqhkE/NbFCM4oWiR8hnCeHmry+rG4kI8bZw+rrKLoOk/tCN94 8Mjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=syuRK0rPlCK6scWXNGpNZMg3oEDK0GyAm8L6Z+Hk2pM=; b=pRh1Jj25dRICewRa/jBK19FAd8SOOvT6VkacxV4zOZehAYreyJZE7g2mXRfCJrc61t 4txdPHmFAIYtr+gz62ROAluHrmeNelYePtRPCiHLWsn5wP74G2lvO0Sup+E975cW2UFp xRZ5OrhIGmznR+8i/4bOasRuiGoTdvu285pskm9cizmsnhfPS4Kix/8YjVMWIMnRIUnP icRBE112JuLccP/3yErb89Ogj+W5NududoWR+63GivJxJ95O5/FH/hVocUj3tpSnM79F Nekg0s/9Lu3cOk86XMx2/m5se60Yc53Kppo6NsnAY1/nszvkmDKNVX8WyqZ/3tDJtUlP Jr2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w66-20020a626245000000b0064553929dbdsi4513609pfb.394.2023.05.22.02.50.49; Mon, 22 May 2023 02:51:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232211AbjEVJcL (ORCPT + 99 others); Mon, 22 May 2023 05:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232018AbjEVJcH (ORCPT ); Mon, 22 May 2023 05:32:07 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3EDDDA8; Mon, 22 May 2023 02:32:05 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8Ax1eiTNmtkuOEKAA--.18717S3; Mon, 22 May 2023 17:32:03 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxkrCNNmtkfuNuAA--.55564S2; Mon, 22 May 2023 17:32:02 +0800 (CST) From: Yinbo Zhu To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Huacai Chen , WANG Xuerui , "Rafael J . Wysocki" , Pavel Machek , Tiezhu Yang , Marc Zyngier , Youling Tang , Baoqi Zhang , Arnd Bergmann , Yun Liu , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, Yinbo Zhu Subject: [PATCH v2 0/3] soc: loongson2_pm: add power management support Date: Mon, 22 May 2023 17:31:53 +0800 Message-Id: <20230522093156.7108-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxkrCNNmtkfuNuAA--.55564S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoW7GFW5Kw4kWF1kZw4fXrWkJFb_yoWfKwcE9a srWay8Wr47WFZrJayDXw4SvryDuay8Gas093Wjqr1xW3Wayr13JF18Z343Cr42qFWUZFs8 XFW8KryrCrySyjkaLaAFLSUrUUUU0b8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY J7CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2 IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84AC jcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84 ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAaw2AFwI0_JF0_Jw1le2I262IYc4CY6c8I j28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwI xGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAF wI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zV AF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1l IxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCw CI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnI WIevJa73UjIFyTuYvjxU2mFADUUUU X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Loongson-2 platform support Power Management Controller (ACPI) and this series patch was to add PM driver that base on dts and PM binding support. Change in v2: 1. Fixup the "suspend-address" description. 2. Remove the "return -EINVAL" in PM driver probe when firmware no configure "suspend-address" property in dts in oder to other PM state to work. Yinbo Zhu (3): loongarch: export loongarch pm interface dt-bindings: soc: add loongson-2 pm soc: loongson2_pm: add power management support .../soc/loongson/loongson,ls2k-pmc.yaml | 51 ++++ MAINTAINERS | 7 + arch/loongarch/include/asm/acpi.h | 5 +- arch/loongarch/include/asm/suspend.h | 10 + arch/loongarch/power/suspend.c | 10 +- arch/loongarch/power/suspend_asm.S | 8 +- drivers/soc/loongson/Kconfig | 10 + drivers/soc/loongson/Makefile | 1 + drivers/soc/loongson/loongson2_pm.c | 235 ++++++++++++++++++ 9 files changed, 325 insertions(+), 12 deletions(-) -- 2.20.1