From patchwork Sat Sep 16 12:07:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 14101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1622559vqi; Sat, 16 Sep 2023 05:08:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEI+MwHZ5FhDmZIbbklAFBQk3M53v8kmpA/CdzHYLBCU+c4+T3rxRHSd38NpdzdUhEvswyg X-Received: by 2002:a17:902:ec8a:b0:1c3:64f9:45ad with SMTP id x10-20020a170902ec8a00b001c364f945admr4388761plg.48.1694866114509; Sat, 16 Sep 2023 05:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694866114; cv=none; d=google.com; s=arc-20160816; b=MN52GpWsumAeHmBGsr4I3k52OxKIQanmAinBmYlfD6JnMZMXtMC1SX33z63ym/Dskg CgpxLv4M7mwpy7aG/XKVYihZ+ydHkYQkiJZWFBA0gXCXRoP/GTMeHy+UZHT18t0aVpqV fjj3Z1wTUhJ2YcWkfzViL7LwmGsuqelOrju5YLFozyJDzePvKokTMiVh9+KLQuCVNLe0 8HX2f5tkfA84njurS6jHoiaUWGUbTvikK2cajl1aQnlA/rxK+arav+pDgOUU1VunrxzS y0plUowO8MN+U56d3S2JwtE9S2pYpA/qwjQuZma8V6GMblASJsgHaxU3FdTySG9ureAU oagg== 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:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d16-20020a170903231000b001b9da7af2c0si5157485plh.214.2023.09.16.05.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 05:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 59AB680942D0; Sat, 16 Sep 2023 05:08:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232622AbjIPMHt (ORCPT + 29 others); Sat, 16 Sep 2023 08:07:49 -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 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 fry.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 (fry.vger.email [0.0.0.0]); Sat, 16 Sep 2023 05:08:32 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777195930683990535 X-GMAIL-MSGID: 1777195930683990535 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