Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3950434rwb; Sun, 30 Jul 2023 21:04:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEz8U4VX6up/gZ7c96aKdBxjIYCUzr8bGHqWEBPGjK8cv7sy8G/34WSEb0BwQ1RsepUdF4J X-Received: by 2002:a05:6512:55c:b0:4fd:f77d:5051 with SMTP id h28-20020a056512055c00b004fdf77d5051mr4698931lfl.26.1690776280055; Sun, 30 Jul 2023 21:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690776280; cv=none; d=google.com; s=arc-20160816; b=ch4l81haSOoL2TVTsFwEdcdkvOiOvzHkybFIfaTr5DvmvCd6m0QS3DmLYu5Jn7/Dj2 4HCGE7noiVDrziBOwFVHP8er3bF9X/54RRgFNTb+NJNatSbvnZD03LCtfr+SHHaxYoFg b7XVGyBb7gVIy6pUDAFmY51QOKIBO8VA6BVp5QX+2nETpxjcLIgyS8g558xKePru9uIF N9LFpWUCmtKryM/x+JfrgJ2XAw4coArHiZrppxavO5uIdxsSSsWyF6McC5+mn5M2zdH5 Qek8zhJoUc3VJktIOPlrH+3Cs/IsCvs0cRgPbR4BjGBAfCue5nTt7yU2H3OMotlNQXWT O/IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=eqmZfhHbpfwtLP0hiRPGT+NW7fuX5n2gdp9XIt5Bf4g=; fh=TAR3ehOHjWdUPpCrnh2zzwUlHkC1CH1+tV8QjbIT6nc=; b=zIQZpTl9LimCWDEKDeRfD+jWsoZwjv34KjaFuJK5FvYgRzwiMBMPHbsP1/dBpWPI4Q 29YZBBamVrfdmVF6uX5k1SszVt9LCdBvacQ5qYlYmQwtrm/Ogbe7qKhRlFeCOQk0lxZL 4BK1KEPjoRS02rX5jXOD1TDGEdC470/oEidUjoO7oFK3oBIIfrJuFmYueAFPdwg6Kcvo m6yXIGElXt9gtdpMcWyPu6RkvlFq4Lkfgt9bIXyjsSZTsb3V1CsevPQck1+zuUzI28aP w3tm2R4S+WVgFG2vyA8vD6Hylq/POMR7XucC6XN32fbENO0kO35qVDDubusGJBhBSry7 gr7w== 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 k5-20020a05640212c500b00521d2f745adsi2529978edx.425.2023.07.30.21.04.14; Sun, 30 Jul 2023 21:04:39 -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 S229874AbjGaDMx (ORCPT + 99 others); Sun, 30 Jul 2023 23:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGaDMw (ORCPT ); Sun, 30 Jul 2023 23:12:52 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 762ABE8; Sun, 30 Jul 2023 20:12:49 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8BxIvCwJsdkEuwMAA--.30217S3; Mon, 31 Jul 2023 11:12:48 +0800 (CST) Received: from [10.20.42.201] (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxHCOvJsdk+71BAA--.22447S3; Mon, 31 Jul 2023 11:12:47 +0800 (CST) Subject: Re: [PATCH v5 2/2] soc: loongson2_pm: add power management support To: Arnd Bergmann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, Liu Yun , zhuyinbo@loongson.cn References: <20230728074944.26746-1-zhuyinbo@loongson.cn> <20230728074944.26746-3-zhuyinbo@loongson.cn> <569a1c8e-234a-442f-9b9e-956f5bac26dc@app.fastmail.com> From: Yinbo Zhu Message-ID: <97ae94ff-3b0c-b89d-3436-18839739de17@loongson.cn> Date: Mon, 31 Jul 2023 11:12:47 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <569a1c8e-234a-442f-9b9e-956f5bac26dc@app.fastmail.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxHCOvJsdk+71BAA--.22447S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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 ?? 2023/7/28 ????6:46, Arnd Bergmann ะด??: > On Fri, Jul 28, 2023, at 09:49, Yinbo Zhu wrote: >> The Loongson-2's power management controller was ACPI, supports ACPI >> S2Idle (Suspend To Idle), ACPI S3 (Suspend To RAM), ACPI S4 (Suspend To >> Disk), ACPI S5 (Soft Shutdown) and supports multiple wake-up methods >> (USB, GMAC, PWRBTN, etc.). This driver was to add power management >> controller support that base on dts for Loongson-2 series SoCs. >> >> Co-developed-by: Liu Yun >> Signed-off-by: Liu Yun >> Co-developed-by: Liu Peibao >> Signed-off-by: Liu Peibao >> Signed-off-by: Yinbo Zhu > > Adding Ulf Hansson to Cc okay, I will add ulf hansson to Cc. > > Ulf has recently split out the "genpd" framework and split out > drivers/genpd from drivers/soc since I'm generally not that involved > in the pwoer management side. okay, I got it. > > Can you have a look at whether this driver should also be part > of drivers/genpd rather than drivers/soc, and/or converted > to use the genpd infrastructure? I have a look drivers/soc and drivers/genpd, there seems to be power manager code in both paths, but drivers/genpd seems more suitable. I will move the code to drivers/genpd Thanks, Yinbo