Message ID | 20230327-tegra-pmic-reboot-v7-1-18699d5dcd76@skidata.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-i2c-owner@vger.kernel.org> 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 008FEC04E69 for <linux-i2c@archiver.kernel.org>; Sat, 15 Jul 2023 07:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230354AbjGOHxo (ORCPT <rfc822;linux-i2c@archiver.kernel.org>); Sat, 15 Jul 2023 03:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbjGOHxn (ORCPT <rfc822;linux-i2c@vger.kernel.org>); Sat, 15 Jul 2023 03:53:43 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F21335B3; Sat, 15 Jul 2023 00:53:42 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-316f589549cso167070f8f.1; Sat, 15 Jul 2023 00:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689407621; x=1691999621; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hkZwqb3Vffoas0KVRKwKV1wchqc/EYndL8Fu8HZrU3o=; b=dvTbeBsiheUTHcMMniyY/m4PoV4r6uJMCT0r8qcXyNJq8w33m1VsaEqZyZOyfNSVYC otHuqvaOlMgsikX9JrvgNmfEPOJpZClaXShrU/pSz7hIFd1bkYW1tzextkt5V26iiB+p JveQFRxvZDsJhCEDDfsrohk4Ngp/umuexp6RGiV+HAwKTUkRPPrFgL1yKk/Tz3N3kM3Q YjOE3uTDuG91TlnOXDl93PeGe+hdTjueyRxEK61aO/1whE5my1y/By3/9EQ+FSQ9YtDb EDnNI21GGWJsG+NIOj/uqpm5cCX6y2MasJOfBiLQH9Oe9L0CMWTni4/x42kA4X+AfZq8 Ym8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689407621; x=1691999621; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hkZwqb3Vffoas0KVRKwKV1wchqc/EYndL8Fu8HZrU3o=; b=XjekmUX94d49Apwzo8Q5MvSZGee6mRgORY9NJ+LGTReYQG0wsw4kaYLV/YIdEQeuDe yLO3iMAT4QAdD1t7Igydamhq1npn1/xakC4qveXMYNNmyl7M6RMfdK0+5hptzrxXdCvU oQlCHaOkQorvQbISiJqp4la5dAxV8VhWP8dm/ceR3kCVGeSBTydphrqcUMZq2yItLbLW nZ/eLAy/LyVYpY7FbmjQL4wibEVjesYCEPnchMXzvHMaXczR2zkPFYeWsqM5rHm1HE19 a96lwd+omhlzugNqD0p561oCh5nMgNFDRLst9+aqIq1VB+qNMZV8vJMx0nwZHanhv4f5 Egfw== X-Gm-Message-State: ABy/qLaJme/JM8O/I0rwI/uM7gnaHSPX+RcZAKQ27dGzoRY4cxKLtWxi 9hsQ5hBSSgmFgHtXzV6MGFNBfuMqqzQkFQAo X-Google-Smtp-Source: APBJJlGw8BKGae83Ti0dFAC+Xvl5fT43WIHmXQehaFygK2EtfDNujLdnjv/1SCD/9eNY7q1jx7+g7Q== X-Received: by 2002:adf:f1ca:0:b0:314:5f6f:68ce with SMTP id z10-20020adff1ca000000b003145f6f68cemr5388310wro.66.1689407620997; Sat, 15 Jul 2023 00:53:40 -0700 (PDT) Received: from [127.0.1.1] ([91.230.2.244]) by smtp.gmail.com with ESMTPSA id f6-20020adff586000000b003142eb75724sm13001271wro.24.2023.07.15.00.53.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 00:53:40 -0700 (PDT) From: Benjamin Bara <bbara93@gmail.com> Date: Sat, 15 Jul 2023 09:53:23 +0200 Subject: [PATCH v7 1/5] kernel/reboot: emergency_restart: set correct system_state MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230327-tegra-pmic-reboot-v7-1-18699d5dcd76@skidata.com> References: <20230327-tegra-pmic-reboot-v7-0-18699d5dcd76@skidata.com> In-Reply-To: <20230327-tegra-pmic-reboot-v7-0-18699d5dcd76@skidata.com> To: Wolfram Sang <wsa@kernel.org>, Lee Jones <lee@kernel.org>, rafael.j.wysocki@intel.com, Wolfram Sang <wsa+renesas@sang-engineering.com> Cc: dmitry.osipenko@collabora.com, peterz@infradead.org, jonathanh@nvidia.com, richard.leitner@linux.dev, treding@nvidia.com, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, Benjamin Bara <benjamin.bara@skidata.com>, stable@vger.kernel.org, Nishanth Menon <nm@ti.com> X-Mailer: b4 0.12.2 Precedence: bulk List-ID: <linux-i2c.vger.kernel.org> X-Mailing-List: linux-i2c@vger.kernel.org |
Series |
mfd: tps6586x: register restart handler
|
expand
|
diff --git a/kernel/reboot.c b/kernel/reboot.c index 3bba88c7ffc6..6ebef11c8876 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -74,6 +74,7 @@ void __weak (*pm_power_off)(void); void emergency_restart(void) { kmsg_dump(KMSG_DUMP_EMERG); + system_state = SYSTEM_RESTART; machine_emergency_restart(); } EXPORT_SYMBOL_GPL(emergency_restart);