From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B3232C43334 for ; Thu, 30 Jun 2022 14:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z53XHqvYRArG5d0FhMc6D3P6lK6cKbEA7vCRO/6fn1I=; b=aS7cxAffzIP42Y o8gsMH2KCFM1H5+foR3ChGYxWJZj5qq6NvAqP88+9hFpZG5Asd0HFe4Aa44n5sMMw+qKkyWFvdfFI fRwHS0ngnggC/Rnie+t7d3z35i1u5qpsN7pB56ovYJJ6Z7VmsOwfKyrrZQuQR/TTgdNm4wa3rwJUo wV3bVI13iqny2u3IcWMHKftHpG5RxmoO/aK8lYGdPlxXm+usSA9OR35G8ssUH/ZVSy5TvW/5PkYQk cR8CE6PLYMv3W8giAmprcMsyP++XOgbrQLPASisk0zB6ZFV9w86nasgFLCyCh4DDomo8NOcjDCpg3 6ArbSEbIgZOHmzdKkwvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6vWU-000BHX-KH; Thu, 30 Jun 2022 14:52:02 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6vWM-000BDi-3i for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2022 14:52:00 +0000 Received: by mail-wr1-x42d.google.com with SMTP id s1so27676447wra.9 for ; Thu, 30 Jun 2022 07:51:51 -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=9Vy0Q0yOTMgozrHr/k/yV5yONhH9Zbt0a1EaEatVf+M=; b=r4J30h3bEqLpGViZoCt3O4Hu1A5Wj8yEoXJyszGfn/2GIs+kmRDBHulPLdUyC4Ipgf 511lhEjeX6IjV6aAfF4VgBZrNrJgHftDLZbVV7kyp+6VJtKdZ/CQfMINKKgXtPTKNGZt 5L2uSoPR4Ll1ZcvuB0Pp5zfWhANJGiUi77pZuSpTenN24NJaiedqX+Ma26654YC4zDcg +hbWPRjgQObK+W99vRfGDLVj3QX/o1hqIR+2AYQhIKXLEOV2e98MCtRtla8lQgWG9uDV BCYikfSKz9/5Et7f0xcWox2UNv/tFKLx+pSXweXdeRvtvKiRMe0thmxCDXTmS1TYJ6OK Pvaw== 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=9Vy0Q0yOTMgozrHr/k/yV5yONhH9Zbt0a1EaEatVf+M=; b=h43J/n474mJIuMrfUoPkibcIMgL2clzx3nw/EoJCso275GQ1sxnrmP77xVNdBSESZJ 16GKkQcFCn8HBjN66c/JPQHzts/nX8iITtKV5XwOVY9wzR4Yo/dPl/RZjtAaIzt0q6Ix EmzBtwFEcHV808E1fOSDCDVNbspHMgH4qzYlmPKnwKVGO7PanjkEgutrF3cwH8sNBDBq DmFHWaiE8j5tD71MuKdGmGQq91r+2Mo+5mj6LJj0EQNul6W+0D5N3FFscxPU27gX4mah uIe4UEukfwoRXvpt7+htVh/BgrD0F00YIvaH48LOoMOHyJR8ciCg+78LR9bIhCyIjbHY /C3Q== X-Gm-Message-State: AJIora+bKL3V1qkD4e+qyGvo6AqvL2lBW6ad96oVbJGl0VLWKpp8GwHv 0eBOxkFxysTMLWYWovIE9brg0A== X-Google-Smtp-Source: AGRyM1sZE6o0QXRdpPatXcWMIkBfS5RwTO5A1CXqWo9NWMsluuItsc+JQISfOGpvtoQ5/vBZ9B/ppA== X-Received: by 2002:a5d:47a1:0:b0:21d:1723:94f3 with SMTP id 1-20020a5d47a1000000b0021d172394f3mr8540807wrb.580.1656600710016; Thu, 30 Jun 2022 07:51:50 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id r16-20020a05600c35d000b003a0375c4f73sm7209219wmq.44.2022.06.30.07.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 07:51:49 -0700 (PDT) Date: Thu, 30 Jun 2022 16:51:47 +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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220630_075154_178490_5125DDE2 X-CRM114-Status: GOOD ( 26.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le Tue, Jun 21, 2022 at 02:37:35PM +0100, John Keeping a =E9crit : > 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 =E9crit : > > > 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 st= ate > > > of the hardware is unknown. > > > = > > > The original use of devm_add_action_or_reset() seems a bit weird alre= ady > > > since there doesn't seem to be any need to assert reset when the driv= er > > > 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. Thanks for the explanation, I will re-add the reset at probe. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel