Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3577455iog; Tue, 21 Jun 2022 01:23:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tC1IaPmMva4byXB+JxApK45l2q9V85lZY/W842KmCedFnwkiqz7YJHyxKcKYTFCf7h5oVC X-Received: by 2002:a63:cc09:0:b0:3fb:aae7:4964 with SMTP id x9-20020a63cc09000000b003fbaae74964mr24963464pgf.118.1655799825393; Tue, 21 Jun 2022 01:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655799825; cv=none; d=google.com; s=arc-20160816; b=rlX6q0Pgp1DgEY2KResUlbgUQIXPLRNCp+ZNNMYSuG6bx3APESzTgerXi/7nrfvFZE 17DUr1MtT/4MGbYTGdXnatRx6NRl2H3+F7GYnVielRXyd9x/cQbyUwIUg9A3/1SyCafC Cq5Va+ggWefH2H0utJ327/sU1F7rpgRuqdARuUCeXApXyWlxKzX4O8TeKButTWfolMGy gW2bB2Z9pX6Kb90amOAGkA5xo0DCUxlEd5htQXBarP2Wcy4t5vDJq9/ZtaVlITotI5xR w4b7AXN+lDYTBS1VyyvR835pv1H8xv72UPh0f/MyVhBjb75r/SMKgXKd3wUMOKRoxpcB jJ9A== 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=GsCQyeSS9WqgWVTSCSRei8+jKy0pNjIeX7QnW7mozH8=; b=lsKh4wEkSEoOaHgxQNpKSTjvl7uWCoLqrmYw+ziZXX6qdjJ1lXXN8KCO2XV6B3KTfq pYRVQ2HFXIkUcimuvjE530w8wzXnAOUArSsB1/9zHtbV4tVU9XLlehrB++/O38Fmox0l gDLaVa1PQ5OIyiZkVTRSNqiJ95yu2qWu3UxQxfmH2ESG9WWo3XtjU8qLJyPqku95LDIO /DHO2gT/Oos+XzjTyfmK/H/4NZSTJYEePLTHyoWpYkFblLCmiceBOsJ/iI9RAqCv5Riw iO7dX0tv/3zlAubL1TNdMZnh0mVw/LNtFOK16p0cgyad0CR9SE3DCCqRPPH2VnGgCbHP TjMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jibc9DU0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i136-20020a639d8e000000b003fabebb91b0si18520225pgd.753.2022.06.21.01.23.25; Tue, 21 Jun 2022 01:23:45 -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 header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jibc9DU0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347295AbiFUIGC (ORCPT + 99 others); Tue, 21 Jun 2022 04:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345991AbiFUIGB (ORCPT ); Tue, 21 Jun 2022 04:06:01 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C09359598 for ; Tue, 21 Jun 2022 01:05:59 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id z9so6998409wmf.3 for ; Tue, 21 Jun 2022 01:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=GsCQyeSS9WqgWVTSCSRei8+jKy0pNjIeX7QnW7mozH8=; b=jibc9DU08V3+hmlKpMeuFBDRViUNOmAqhLv6bBMBvot6Y1y5fIwWhHP50ijPfYjSkP dofNHKktUMXyQWgFL3kXgkNcCMI2EyGV7jpxsE895xWHEcXseYPy3ALYyk3QO/N0mUp0 vdtIIlaM3jdF4mNnqhGbeiMjdwIE1RoqzlR0jkpN01OXtm8YiT2z6tDuzLLchasFD2w2 Mkh6LtyCFJWejhKMxgykZsEQj/x8fiEINVD1qJbJOxZgN2YH/UWuZMuMZW32iBeGtvQq /lW7BLRvhMJx91EGYj8g/3IgB34BAKrk4wE5Qh21ccOj72gocm1+GPBZgzZ2TTnx2Dna r2Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=GsCQyeSS9WqgWVTSCSRei8+jKy0pNjIeX7QnW7mozH8=; b=mql7bxd9SqrCbfmDOApu2HScVpW02taXZRL2InLpeCDWl1MbBa+asHHIBcEDF2thq7 xaEmGcTsBtB80Vp1jo1sWcyDO80yemhcg6QlKDIISb/xMq2myN5x/ijCfNDDwd1rBk52 NkrcXnAfnYDLuJIRFDGFemAHtZD2DhUc1XpjGxwLpBgCcIKJiYp23wGHbXRGB65QVBeX SGkDexII8Rvug/rG0Y08bez+/IFB5No5pCCDgRpG8ZOD59fjl2Pk9X0HOq9ewL5jzpHS fsTLSeAc1NIn8yyuYpPL1OXcMJE6IndFgbYhYrCBN0WrwZCw5n08mgKK50Np3jpDK+H0 /o0Q== X-Gm-Message-State: AJIora9eANrtmbAwtIEvOFcqcVa6UtPZxRT1grlG7EpRp527oXs3XySn kJ/OOeQ5b0NoH2zuqVZTEePkfEzjFsxRIQ== X-Received: by 2002:a05:600c:1c10:b0:39c:4708:648d with SMTP id j16-20020a05600c1c1000b0039c4708648dmr28938957wms.85.1655798758346; Tue, 21 Jun 2022 01:05:58 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id t5-20020a05600001c500b0020d106c0386sm7043231wrx.89.2022.06.21.01.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 01:05:57 -0700 (PDT) Date: Tue, 21 Jun 2022 10:05:54 +0200 From: LABBE Corentin To: John Keeping 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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-crypto@vger.kernel.org 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 ? Do you mean I must put reset asserted on probe ?