Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp175062rwo; Fri, 21 Jul 2023 10:05:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8m6jD5ToJHzIhai8IY3MPAGNiUCezNhvFbm7g4A+MuDWZdeU9GIT3S4E9Tk37W0gpBH0L X-Received: by 2002:a05:6a00:2185:b0:666:ecf4:ed6d with SMTP id h5-20020a056a00218500b00666ecf4ed6dmr710191pfi.18.1689959144196; Fri, 21 Jul 2023 10:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689959144; cv=none; d=google.com; s=arc-20160816; b=flhEeyPq9ktDXQhaD68Rq6UWYzw73sisfEjyOgq/C6en3Y5LUwHmu4MYUH7pLbvHDA uY8q/n0SLQapNfhrIAsM41RdMds6ubJz2y3Lf7Vx4L86+iN8WO+lIvJIMnxL+HO4EowD 8fikuuOjzoistOfrMdM2eyJFb/jVh2D+lZTXJMMyj/s0752P71ijQ/4uS/0vyaUYThsR NwQ7g3DW+cGcKGrqqCZ+k5h0iwVQ4jPQR1j5TPbAzby/JvccYWzsafCb/vwPGCOcSsZR GO01E4DtIMVDJt1aHqY4/m2RK1wbxqTJFV3mdOtv8SVw1WA5qcGk0k1D48gPYDSH/ybe vTdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=28LtIB/XRFBeH72a/yVCoMJAi87z9YlSvRF3RqpysB8=; fh=thJwGOIztJkBzixU3MCKh5ZXDkYcRa6EV7s504ufYIw=; b=JBPIReGTd/JVN5+uAKZyI3K+D1EaLyylHU+Y9KRYspgwxKJE0HawgSjkmNcJ0gs9Ji ojX1vtxTGzwkgZY4RBvIMsPdW6bsm42nmqqXeUCE1zG7y84bp2e/xX7COduPEjbSpwIb uneMmR+jm+y2vfoHeD7vVHKEeVtTGUw0bYvPy6FEK1ERcE25MwJU45uCrSxwaelGurQL X7OB3Mgm/XBPuOGU32R4x0eH58sdjnc3S2bld9SUpAwtKD11HHiAGIadxugd6fAMsd/z AKcnwFlr93R/NExiD5HnZ/B/6PQrbZeoL1LCEK/SriTr+Au8naKFyw+RP9ngAI10nOHr R4sw== ARC-Authentication-Results: i=1; mx.google.com; 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 j63-20020a638042000000b0055bda24a17fsi3184382pgd.541.2023.07.21.10.05.28; Fri, 21 Jul 2023 10:05:44 -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; 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 S231379AbjGUQkl (ORCPT + 99 others); Fri, 21 Jul 2023 12:40:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbjGUQkZ (ORCPT ); Fri, 21 Jul 2023 12:40:25 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB16E3C0A; Fri, 21 Jul 2023 09:39:50 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="364526929" X-IronPort-AV: E=Sophos;i="6.01,222,1684825200"; d="scan'208";a="364526929" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2023 09:38:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="760008775" X-IronPort-AV: E=Sophos;i="6.01,222,1684825200"; d="scan'208";a="760008775" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP; 21 Jul 2023 09:38:03 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qMt8h-00Cn64-1u; Fri, 21 Jul 2023 19:37:59 +0300 Date: Fri, 21 Jul 2023 19:37:59 +0300 From: Andy Shevchenko To: nikita.shubin@maquefel.me Cc: Hartley Sweeten , Lennert Buytenhek , Alexander Sverdlin , Russell King , Lukasz Majewski , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Daniel Lezcano , Thomas Gleixner , Alessandro Zummo , Alexandre Belloni , Wim Van Sebroeck , Guenter Roeck , Sebastian Reichel , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Mark Brown , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vinod Koul , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Damien Le Moal , Sergey Shtylyov , Dmitry Torokhov , Arnd Bergmann , Olof Johansson , soc@kernel.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Michael Peters , Kris Bahnsen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-pm@vger.kernel.org, linux-pwm@vger.kernel.org, linux-spi@vger.kernel.org, netdev@vger.kernel.org, dmaengine@vger.kernel.org, linux-mtd@lists.infradead.org, linux-ide@vger.kernel.org, linux-input@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v3 14/42] power: reset: Add a driver for the ep93xx reset Message-ID: References: <20230605-ep93xx-v3-0-3d63a5f1103e@maquefel.me> <20230605-ep93xx-v3-14-3d63a5f1103e@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230605-ep93xx-v3-14-3d63a5f1103e@maquefel.me> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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, Jul 20, 2023 at 02:29:14PM +0300, Nikita Shubin via B4 Relay wrote: > From: Nikita Shubin > > Implement the reset behaviour of the various EP93xx SoCS in drivers/power/reset. > > It used to be located in arch/arm/mach-ep93xx. ... > +// SPDX-License-Identifier: (GPL-2.0) Are you sure this is correct form? Have you checked your patches? ... > +#include Do you need this? Or maybe you need another (of*.h) one? ... > + /* Issue the reboot */ > + ep93xx_devcfg_set_clear(priv->map, EP93XX_SYSCON_DEVCFG_SWRST, 0x00); > + ep93xx_devcfg_set_clear(priv->map, 0x00, EP93XX_SYSCON_DEVCFG_SWRST); > + mdelay(1000); Atomic?! Such a huge delay must be explained, esp. why it's atomic. > + pr_emerg("Unable to restart system\n"); > + return NOTIFY_DONE; ... > + err = register_restart_handler(&priv->restart_handler); > + if (err) > + return dev_err_probe(dev, err, "can't register restart notifier\n"); > + return err; return 0; -- With Best Regards, Andy Shevchenko