From patchwork Thu Sep 14 08:43:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13384817 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BFD8EDE995 for ; Thu, 14 Sep 2023 08:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236515AbjINIny (ORCPT ); Thu, 14 Sep 2023 04:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236560AbjINIns (ORCPT ); Thu, 14 Sep 2023 04:43:48 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E2C1FDC; Thu, 14 Sep 2023 01:43:43 -0700 (PDT) X-QQ-mid: bizesmtp89t1694681001t8iqu5hy Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 14 Sep 2023 16:43:19 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: ILHsT53NKPhLiNYdg+snuvAFgd9JaqpqWaM7ZIdOCi0ym8WsfHzl5jY6irFd0 RRvUFHm/99csf0fZOfTiYc1wJWhql4mMqCqGIK1bv2rm1WEDtv+oFe4rhH7Q0Bk3pqaWefy 8KuvLjgp2lBFVwovwzMYaij17uWqtCvKS1dQ/oPH27wwTEnHJuDBuQssDyIBauRzR56KD9l EqyKe0B4ahV4u/CFPAFM2JRx6FZpmLTJ5GOgtuuaC1uq52PYZ+4IGnojNTr2d/dgp96JZ65 NAoaB2zJTo6/cS82eBV9Lt/jwSntlH14gvtujnXftu3MGENJeuheRYAfS18BFr0H2Y55Epi WqKAUYzSHA5N/GoplAZLbmPi7IDLUfcyBcFf+/M9q62mx3SSEA= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 18177791329312529309 From: Yuan Tan To: tsbogend@alpha.franken.de, 42.hyeyoo@gmail.com, philmd@linaro.org Cc: linux-mips@vger.kernel.org, christophe.leroy@csgroup.eu, linux-kernel@vger.kernel.org, falcon@tinylab.org, w@1wt.eu, linux@weissschuh.net, tanyuan@tinylab.org Subject: [PATCH v3 0/3] Add dependencies of POWER_RESET for MIPS Malta Date: Thu, 14 Sep 2023 16:43:17 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org These patches are to add dependencies of POWER_RESET for MIPS Malta. As I have to use "savedefconfig" on the latest branch of different architectures, I am sending separate patches for each architecture in v3. To simplify the enablement of the poweroff support, selecting the required options for CONFIG_POWER_RESET=y may make many people happy especially when they are using a customized config (maybe tinyconfig based) for a target qemu board. Without normal poweroff support from the kernel side, qemu will simply hang[1] there after a 'poweroff' command, which is a very bad experience for the automatical tests. However, CONFIG_POWER_RESET is ineffective if there are no dependencies that enable certain devices in Kconfig. Currently, based on tinyconfig, it is very hard to find the exact poweroff related option[2]. Some architectures' poweroff works well without any dependence, the others' poweroff options are hidden deeply, which make things hard. After multiple verifications, these options have been identified as the minimum dependencies required for poweroff to function normally. Additionally, 'make savedefconfig' simplifies the defconfig automatically. Zhangjin and I invested a significant amount of time in searching for the current options on these devices. We hope that this set of patches will save time for others. If community like it, we will consider adding dependencies for POWER_RESET on other devices. We hope every device's CONFIG_POWER_RESET will have proper dependencies. :) --- [1]: https://lore.kernel.org/lkml/511b2f6009fb830b3f32b4be3dca99596c684fa3.1689759351.git.falcon@tinylab.org/ [2]: https://lore.kernel.org/all/983843582e52e83fba79ad45cea6c79e1f62ec6c.1690489039.git.falcon@tinylab.org/ v1: https://lore.kernel.org/all/20230831201727.3177853-1-tanyuan@tinylab.org/ v2: https://lore.kernel.org/all/cover.1693535514.git.tanyuan@tinylab.org/ --- Changes in v2: - Fix the mistake of using spaces instead of tabs in kconfig. Changes in v3: - Enable POWER_RESET and simplify the deconfig. - Select ADB_CUDA in PPC_PMAC32 only. Yuan Tan (3): MIPS: Cleanup malta_defconfig Kconfig: add dependencies of POWER_RESET for mips malta MIPS: Simplify malta_defconfig arch/mips/Kconfig | 3 +++ arch/mips/configs/malta_defconfig | 39 ++++++------------------------- 2 files changed, 10 insertions(+), 32 deletions(-) base-commit: e7513eccb7d7f82e28f4730210b42da71edaa6a6