Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1006830rwb; Fri, 28 Jul 2023 03:22:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGT7l2V91L3HzhErSGCknosVfb1InagOJxl7eEkwr/TvA5K4X9MLkaclBRpMJYfyPX1yXzN X-Received: by 2002:a17:907:1dc2:b0:98e:3b89:5dc6 with SMTP id og2-20020a1709071dc200b0098e3b895dc6mr2335624ejc.48.1690539754302; Fri, 28 Jul 2023 03:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690539754; cv=none; d=google.com; s=arc-20160816; b=sQ8ZiFqv5A+7jRyrcT0R9YZmATERm8WQTHGvxDbe7Bocecad+g5tMaRNhrF2RQFgF7 qm+KpfZveMDdZsKOplcpH5JiqSqrDXG8YDd0ahlNQV7agiUIjNDrxjpqd672yTztE3R7 jmqdW2+61vysoNMEHiVWMJzwGoiRaxGl0GmXKnWZnasiTF0RsTwxBTRbLh6SMdj607QT CPZ+XRxOAfmg5ywu4NwFhYeF2xVS1IlN+gY8iqxNDYY//wKYePBzp7uolEK3JyxNfu7d 7Xul8ZiOv0uaxDiR5WvqgR5Shh4FmivMyd7Ii2THwXm8QEwKIntEhjyOavcvworg4KZx sDeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FnUukzll+1W5taYdsnuHyB3p9O9PJTaZDBs2JUBI4oE=; fh=1e7flKjyncdHoZq6SPttPJXy7wkbD+Uvpi3ZHjfB1IY=; b=zwEepXD1ZIRGdfPIxGXahTFecmB7FgIUfnSDaftE+Y+4gfsgXPTKqNnA0/m+zJeltU G8kMIWjAwaw/wCUe5TKT7PHJSCcljFw/V18nW9ZkskDYeLjePjyAcylCYBg9A/L1Dg8s WwdDG/ynJR/jOv9OVlzTkUuXgDnwIGg5kmW2xxiZw+jkAaAJpDFLV5RNmbIElKY+3HZQ SNWJecKPVgZKtxG8ZjsC0bR95wEDGcQkfml0GjSuwFPUxDJvlb6bws6nMFarNLoqYGA1 8g/SS30MbbwVpJBWhjE5zRDrIex/yYx6Yaf4TuXpZmk7Rw6gRVDWsel6aIyeZ2p94FZs EqXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lF0oPOxP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a1709060c0d00b0099bc9896c74si2357278ejf.175.2023.07.28.03.22.09; Fri, 28 Jul 2023 03:22:34 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lF0oPOxP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234422AbjG1J7n (ORCPT + 99 others); Fri, 28 Jul 2023 05:59:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbjG1J7l (ORCPT ); Fri, 28 Jul 2023 05:59:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D2671FC9; Fri, 28 Jul 2023 02:59:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1A03F62099; Fri, 28 Jul 2023 09:59:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A05C0C433C9; Fri, 28 Jul 2023 09:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690538379; bh=HfFbszyOKjVnbQrQRzUOs7y1BwB5d6vKlmyH1txlQ5g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lF0oPOxPue7tbTceV7yKoljL4gLjeSl1AeXZ6oRFM0lCtehkimlY/6Td/0mwOsFeD 6WHapNogJ8B3YLvlAcCRlo5thpeqdmfTKCektkk3gCkN8HN99nLF5zgdWddHX85mQY agi881tjsGvQJhoAjwqCqGAS/Ud2wSIn4DXp9VPJPfNvwbuXfsHoKCa4k2xgqoJonz BcOBq+4rcDIfGQQYV+mEyXOnU8mN9oNPeLcLGuohZJ8dpCNuF1Vk/Ff9WRJF15Svwy Khj8fT0JMibIk6XdfHa51UmrnPygXJmzZ2iUeTMcS3Z+YYJCJkxwM0TYQhH4tnyojl BfVJPBqIBOE/A== Date: Fri, 28 Jul 2023 10:59:33 +0100 From: Lee Jones To: Benjamin Bara Cc: Thierry Reding , Jonathan Hunter , Tony Lindgren , Liam Girdwood , Mark Brown , Dmitry Osipenko , Robin Gong , Jerome Neanne , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Benjamin Bara Subject: Re: [PATCH 2/6] mfd: rk8xx: Specify restart mode Message-ID: <20230728095933.GG8175@google.com> References: <20230727-pca9450-reboot-v1-0-c8edb27bf404@skidata.com> <20230727-pca9450-reboot-v1-2-c8edb27bf404@skidata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230727-pca9450-reboot-v1-2-c8edb27bf404@skidata.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Thu, 27 Jul 2023, Benjamin Bara wrote: > From: Benjamin Bara > > Specify the implemented restart handler as a cold one. * The current implementation is an issue because ... * If this is not fixed, the following will happen ... * By fixing this in this way and not another way has ... advantages ... > Signed-off-by: Benjamin Bara > --- > drivers/mfd/rk8xx-core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c > index e8fc9e2ab1d0..15e8e6a9943a 100644 > --- a/drivers/mfd/rk8xx-core.c > +++ b/drivers/mfd/rk8xx-core.c > @@ -697,7 +697,8 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap > case RK809_ID: > case RK817_ID: > ret = devm_register_sys_off_handler(dev, > - SYS_OFF_MODE_RESTART, SYS_OFF_PRIO_HIGH, > + SYS_OFF_MODE_RESTART_COLD, > + SYS_OFF_PRIO_HIGH, > &rk808_restart, rk808); > if (ret) > dev_warn(dev, "failed to register rst handler, %d\n", ret); > > -- > 2.34.1 > -- Lee Jones [李琼斯]