Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3819987iog; Tue, 21 Jun 2022 06:39:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tLMWtHQZGoIuu5sAOsquNF0qp7iEOR4moIViSn3qlqvxYNVU8GYVYCC22On1DWuTyLl7qT X-Received: by 2002:a17:906:6a1c:b0:70a:fd95:ee6a with SMTP id qw28-20020a1709066a1c00b0070afd95ee6amr26344720ejc.36.1655818781866; Tue, 21 Jun 2022 06:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655818781; cv=none; d=google.com; s=arc-20160816; b=nMOsWErxVDoIvTpsG96dsN1QrMtXWOAQP9fV4LWL6dwKoAS+CZdVfVNlkPTGfXw4Ao PgmkSIK2eoiAl416ldt8F8NNEfcnk+BHug0/lN2nmTM3vXk1uH9D/5Y4UZn/AAU1UJDx QLY5PmyQaoB+jV97/VSEghGrXSdVtBG56R2R+lGXTfCAxvLazW8aonLQG+XX/W8dI4e9 SvWhk09mUapokhc5MV/Oz9YxfanRBoJs+9eqbBseN6Xjt+sCYxspm1gEl4+FbX8Jd5mu 1u2x0w0KE1U136I8r13p40/CPN5DfVlK4Zkb11xjrwAR4j6tDITtSmlsJshj8MrvR1pj dzpA== 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=DC4ZEyWBHqB8Ee7U3iV5pXPcACu5mfk1YFIKPVvFHL0=; b=sEKnM+NYGnB6vvvKA8K6oN34RSfoEw93SKaIca6BubapyzDuM/EqTjpQ0QNnC2l5At bSzjLn/WDh0pliThlI7CyyAmNBgunGfomPjROXi3qzzQT2jsATGTxBQ0yqAblk2rjN9Q UynuB1wSXEDczVPe+IPNoDOLk7XwsGR+s2QeAoM8q53rGYjBcnWFuDjqeCvqz9CxFMhR BqtxojFHauM0SNYGe45uVhvrBuogytAS0+zmJliypB71igrc/NaZPxlSP1VIkT9w7Yh6 VXUZ5d2LwfZrrltMBY3rQ8CybkfK2GADHA5dSdoWQh1V5owXDYy3O77GfOqfYImvPjB2 TYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@metanate.com header.s=stronger header.b=lbBCVFbO; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=metanate.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a056402248b00b0043560f8ee60si12502279eda.542.2022.06.21.06.39.00; Tue, 21 Jun 2022 06:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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 (test mode) header.i=@metanate.com header.s=stronger header.b=lbBCVFbO; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=metanate.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349972AbiFUNiv (ORCPT + 99 others); Tue, 21 Jun 2022 09:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351841AbiFUNig (ORCPT ); Tue, 21 Jun 2022 09:38:36 -0400 Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E13AF26; Tue, 21 Jun 2022 06:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-ID:Content-Description; bh=DC4ZEyWBHqB8Ee7U3iV5pXPcACu5mfk1YFIKPVvFHL0=; b=lbBCVFbO79ungOcgVG+jyWLNrM /KOz1ugytuFjXsCl890ONimeyORTPAQUXBUIjHvM+X177APV2JZaL57SPVVwzPSV8sYu/AsVywSKx h36eglYOvSj+A+72OyE4ORJArfNcTeceSS97vUxpu/hOTBsGgoL55w72ktvIfHGZrT4dKQ31b7fQ5 eb0emxr7GEA9U44eUsGxzEnodv9kPHcIZ8MhCDVSrbtmt/aIPrOZRX+JhIQft+ft7W8B6DM8VsVHV vDKEyyI75GWBzNoaDTKDO6QXfcmFEoHFXk8mJXlKwmD+q0fSf//m8h5rohnn4eLPq+fGEWexxN66h R+RDMOZg==; Received: from [81.174.171.191] (helo=donbot) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1o3e4X-00032a-3U; Tue, 21 Jun 2022 14:37:37 +0100 Date: Tue, 21 Jun 2022 14:37:35 +0100 From: John Keeping To: LABBE Corentin Cc: heiko@sntech.de, ardb@kernel.org, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v7 14/33] crypto: rockchip: handle reset also in PM Message-ID: References: <20220508185957.3629088-1-clabbe@baylibre.com> <20220508185957.3629088-15-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Authenticated: YES X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_PASS, SPF_PASS,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-crypto@vger.kernel.org On Tue, Jun 21, 2022 at 10:05:54AM +0200, LABBE Corentin wrote: > Le Mon, Jun 20, 2022 at 12:04:24PM +0100, John Keeping a ?crit : > > On Sun, May 08, 2022 at 06:59:38PM +0000, Corentin Labbe wrote: > > > reset could be handled by PM functions. > > > > Is there any further rationale for this? > > > > After this change there is no longer a guaranteed reset pulse on probe > > since the reset control may already be de-asserted. This is normally > > the most important case for a reset as it's the only time when the state > > of the hardware is unknown. > > > > The original use of devm_add_action_or_reset() seems a bit weird already > > since there doesn't seem to be any need to assert reset when the driver > > is unloaded. > > > > I am not an hw engineer, so my knowledge on reset is low. > So why not having a reset pulse on probe is a problem ? The point of the reset is to bring the hardware back to a known state. Since we don't know what state the hardware will be in following the bootloader or previous OS, I think the reset in probe is the only place that it is important. If this patch isn't fixing anything, I suggest just dropping it.