Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5147279rdb; Sat, 16 Sep 2023 05:08:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENFJ5mCcaKVZ7Zsc7fVpztDknfoOL61oo+z9bYa7GuiR/zyzXNd9wDwJMTEJOleNzOuBhB X-Received: by 2002:a17:903:41c4:b0:1c0:bcbc:d5d with SMTP id u4-20020a17090341c400b001c0bcbc0d5dmr4759675ple.61.1694866103704; Sat, 16 Sep 2023 05:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694866103; cv=none; d=google.com; s=arc-20160816; b=btvOaPFJZhEcDm/g/6QF/7ltCiF7jtZXcUoNvWN6cFbo/0X6UD6Sdkjw14LrgAwe2R 8JTy7xM4It7TK+EML3Y393YEQcxtY5SEIRtNauolIYGEsXhO+k5rPJfx/XgOJ/3CAciU y0kEPVjuJJKPWomHGu2DvFTjnKN95YU4xyQSmhANn+8puEnfTgV0Yvibi7yd1ijJvati JgMXZSjqHeD08NfQ4sKwHRrnGOGXzGoJquBnTItV7tXzUpAEx1qVufOByHQ7UqUfDZCw +uWhQVWpw13MYGp2A4zEGatEGJREEFRD6sPnlfWMKxdXp4WhKxjaPYaWZIctVB5OzKRb Y2ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=JyFWYnqtntggX1GipBkoNro5kevcNBR6PdT4B3xTg2g=; fh=yoncLniJnVVQYdxKeg02bdjWrEEHGmq7YjjvuvGIWcQ=; b=g9iKBi03EdYs78ETMWq5qOTc+8jTH361bO7kCGhEVbfD4VkWqW4nU+O0qnKgh8aoPH ieYzeRkjAlVxMsdOlNVf4yKckzvluuv7BQiWSO7UfZay4LrF7j45u7aPcAufgW7FOaRr TNHpr7QYuIXDSAsuue5u2zH2Y+0rb3C6nc+507UB3eMUlk1q4qKlnDL0lDI+218SPeCb H3RcIb4b1rTYHlrtZ0nbHG4OTODs4aDJLzj6h6djIJq2tT5+7FsjvGMAsOtCgv1lLUy9 uTlxyH/swEcatG1oEW+UMbsk+drC1/3gZnC9aGHZzrlLm2RH+JzBLu5kVFziiPvdp/u1 7UFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k4-20020a170902c40400b001bc8af2bc6bsi5150320plk.170.2023.09.16.05.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 05:08:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B1C8484B1F87; Sat, 16 Sep 2023 05:08:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232576AbjIPMHs (ORCPT + 99 others); Sat, 16 Sep 2023 08:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231897AbjIPMHf (ORCPT ); Sat, 16 Sep 2023 08:07:35 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5694CF4; Sat, 16 Sep 2023 05:07:25 -0700 (PDT) X-QQ-mid: bizesmtp73t1694866031tds2w2vm Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 16 Sep 2023 20:07:08 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: +ynUkgUhZJmtm7vTiltTVNwsjg9955kZ3PdLjei3hto1fWGdv1AVL3fguQtlM 99dLqedZSquFlCbtmWadTwBHkVhnXSkhPRUdcqjBECcYxQIgb18YaQ3wqAVPCs+91GWvIkm nQkK3K0VwC7sYFt/Qm/D2ppsTX5VrwwdaosAt8Ubkq5+CIwAcW5bXztHm9lK2eC4zKFBFT1 NPXzgbvteyy0swArgiR7+1Nn189gg5ELUng7ZooQbujJRlcnrk9mAxetGhi6lWdR2y8RgsQ vXFnUC+xUaFpm06O0icC9xLVJZKIFAdf/p8v/IYQSudkLGk0MmxsHNkoiG4NMA5wqvDqQeC YfwxdwBlqHKSUoBGs36a2eZyua5L3SSOjLLKJQbDWgGv9WXkQs= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13584893247443327529 From: Yuan Tan To: philmd@linaro.org Cc: tsbogend@alpha.franken.de, 42.hyeyoo@gmail.com, 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 v4 0/2] Kconfig: Add dependencies of POWER_RESET for MIPS Malta Date: Sat, 16 Sep 2023 20:07:07 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 16 Sep 2023 05:08:21 -0700 (PDT) These patches are to add dependencies of POWER_RESET for MIPS Malta. 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/ v3: https://lore.kernel.org/all/cover.1694680448.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. Changes in v4: - Squash last two commits. Yuan Tan (2): MIPS: Cleanup malta_defconfig Kconfig: add dependencies of POWER_RESET for mips malta arch/mips/Kconfig | 3 +++ arch/mips/configs/malta_defconfig | 39 ++++++------------------------- 2 files changed, 10 insertions(+), 32 deletions(-) base-commit: e7513eccb7d7f82e28f4730210b42da71edaa6a6 -- 2.34.1