Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3373406pxb; Mon, 9 Nov 2020 09:28:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCLc64DpVe3/suFi+3kWtHONSmjArHC4z+lYDIKtwZPm2LCBQebSirt5N9V4nJ/8DmW+oW X-Received: by 2002:aa7:d407:: with SMTP id z7mr16816547edq.234.1604942881824; Mon, 09 Nov 2020 09:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604942881; cv=none; d=google.com; s=arc-20160816; b=1HwdM/taFO6/CNn+gx0yAMui3Zu+58No/biK/pFguu0pINoR8JXqmg+JyUUKR7dAyc ArCFXWBHH0wW/EYu1HNr+d4LXcqPiXEooT5JEgMUizM50ybi1ANCwnFJsqthznFQETbU crB7yg1qSiz27tvutXlIzs18XrnalDSfz9CjtwTLfxY40renmX0yuedJ2LUt4vWtoonQ DHgCaEd540eNFZK5QPAX1rG4Xbd9CLQ2ugTtcWVa+CIOKhqNJTuzQ2BGEtHmtRAYfjEs Pq9aTlyuji8BjaYSHF8/m9DP8OsRRTsIEP3ljNjeSx2zcH5lIfBpmClrsWy192pQmh1C OOuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=3w4emGudi/FzHvShz5e0CrdaNFjfTXPkhIJLL1itqTM=; b=BFZXK80ecRkGKEcQGH63G0Vo6ENsOGIKoWqnZ0kh9rx1AwpZjCljFLi2+UH08eMQQD QTW0T3sKovDHp83WWmpNADHgfGogjXW7lHEXeUZl067oD41qzieA4muIMQQ18ZFBJDXy b5uUYa1sMMUKX8jd/S2pdwatoi317/8RGfA4U7hPeu9yxAo/JYyhYkqGdWbcE4ZrGjhU Ryl6TZ3LlhzWhtdkREHt2fFhoM9toh6bcskztnBv+j0Kkddx2qmd/XY70yXP5vTqrq1h o7KQ9Qe42zDEUrmhkLXs8lcX+OLLfwFhdwhZhcQZ86DWi6XeFBZQ+M1NBD0nwq9WVMWv bCtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw16si6835267ejb.430.2020.11.09.09.27.38; Mon, 09 Nov 2020 09:28:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731664AbgKIRZq convert rfc822-to-8bit (ORCPT + 99 others); Mon, 9 Nov 2020 12:25:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731502AbgKIRZp (ORCPT ); Mon, 9 Nov 2020 12:25:45 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3882C0613CF for ; Mon, 9 Nov 2020 09:25:45 -0800 (PST) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcAvF-0007PG-FW; Mon, 09 Nov 2020 18:25:41 +0100 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1kcAvE-0008DX-H5; Mon, 09 Nov 2020 18:25:40 +0100 Message-ID: <2ee2fb9170e127d583e19062a791f3b1767d44fc.camel@pengutronix.de> Subject: Re: [PATCH v2 1/2] reset: brcmstb rescal: implement {de}assert() instead of reset() From: Philipp Zabel To: Jim Quinlan , Amjad Ouled-Ameur Cc: Hans de Goede , Jens Axboe , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Florian Fainelli , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" , open list Date: Mon, 09 Nov 2020 18:25:40 +0100 In-Reply-To: References: <20201106191743.40457-1-james.quinlan@broadcom.com> <20201106191743.40457-2-james.quinlan@broadcom.com> <64aa1f860bf60ddac7a2015c87896c8a7b13b161.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-11-09 at 11:21 -0500, Jim Quinlan wrote: > On Mon, Nov 9, 2020 at 5:05 AM Philipp Zabel wrote: > > Hi Jim, > > > > On Fri, 2020-11-06 at 14:17 -0500, Jim Quinlan wrote: > > > Before, only control_reset() was implemented. However, the reset core only > > > invokes control_reset() once in its lifetime. Because we need it to invoke > > > control_reset() again after resume out of S2 or S3, we have switched to > > > putting the reset functionality into the control_deassert() method and > > > having an empty control_assert() method. > > > > > > Signed-off-by: Jim Quinlan > > > > You are switching to the wrong abstraction to work around a deficiency > > of the reset controller framework. Instead, it would be better to allow > > to "reactivate" shared pulsed resets so they can be triggered again. > > True. > > > > Could you please have a look at [1], which tries to implement this with > > a new API call, and check if this can fix your problem? If so, it would > > be great if you could coordinate with Amjad to see this fixed in the > > core. > > > > [1] https://lore.kernel.org/lkml/20201001132758.12280-1-aouledameur@baylibre.com/ > > Yes, this would work for our usage. Amjad please let me know if I can > help here. The only "nit" I have is that I favor the name 'unreset' > over 'resettable' but truly I don't care one way or the other. Both unreset and resettable are adjectives, maybe it would be better to have an imperative verb like the other API functions. I would have liked reset_control_trigger/rearm as a pair, but I can't find anything I like that fits with the somewhat unfortunate reset_control_reset name in my mind. In that sense, I don't have a preference one way or the other either. regards Philipp