Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp529392pxb; Thu, 12 Nov 2020 09:32:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJymvP6OHMwqp+XUpno01bBCRjOgpuqrdNalgOhqqXo2CRxPQjLnT24dFeN8UTtH8HujA3Mj X-Received: by 2002:a17:906:b202:: with SMTP id p2mr306443ejz.483.1605202359376; Thu, 12 Nov 2020 09:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605202359; cv=none; d=google.com; s=arc-20160816; b=w/OsxP4p08BD7n6aWPFGUhKMKonTRxqLq2+57KClx+pF1NQjdIBQOva02w/7via5a3 kgEC9DS110IV1DWdn76DWZFlyLRS4678WplPewG8b5qnp1UdZMfoazP7+zn3+2ooyalO 1efbe3z10iGB6XJbObGAd+++ehOubsSCaTxjnk77PZnzLy3HcGPvsd1zyxSW/nvsXhCC m6fvjjjCq5Ubt5jzbpSnycDD7LR6ty/RIfYsnQ6/QEdLNKPw5C1JRiHHiPLIxah9PoIT uGonSM2PSEAQhO61oIFX92raQN2bPRzguwX73noIDnzVoUD0T7ZjsmD6oIe2+4A1e57l ezeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8acZiaXncTb/Z6bOtXPMVOr+zZt2ayoyTGtTR+SBy+o=; b=Sdw53ZRQ0Fwr71qm8LG2PsgO0YAaR+gQ4ibeWIr+r7gEwO0Aw8/WvxI+/arM6J98aO E+DvK02ipgVfj/bOTISCG+T9Wcmh77TJ5kDeP03N2IdjAL5KMbD40j9EZcnIfZQo89mf 0O6VDWNOGI7qPQaDWu8D5rHFYUgK6SAvrYH5FIjwuh5WW7ieDgl6v+wcNljFcbZftEF8 v8Im3qahLKeSG3fmTWnGQia6V2Wg7Yun9jGr0PESqLeqejmKBD1OY4kOBRt673wq3Z+c xu5N11DwK0QsB/p+6ro+X9Byl4EUTW7ovW5y/H6TDOarx1GkWBEq7rVHWgp5A//Gfe9B McJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=f8+XOJzu; 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 lf3si4118567ejb.78.2020.11.12.09.32.14; Thu, 12 Nov 2020 09:32:39 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=f8+XOJzu; 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 S1726201AbgKLR2k (ORCPT + 99 others); Thu, 12 Nov 2020 12:28:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgKLR2j (ORCPT ); Thu, 12 Nov 2020 12:28:39 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D01C0613D1 for ; Thu, 12 Nov 2020 09:28:37 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id 23so6608818wmg.1 for ; Thu, 12 Nov 2020 09:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=8acZiaXncTb/Z6bOtXPMVOr+zZt2ayoyTGtTR+SBy+o=; b=f8+XOJzu9FadXhtbFyLtZpTMBGKvuS39pcu07GyR3xRGVslBPzT4zwsMtjVdQEjW/R zMJklQYYbvze0KsVez9vcOU3uOKvDQfoLnsAMGiRCSR8qqQW48ViOFgOu+SAebYynzgb qqeCqtLO+DbKlGPr6fEAHsACwiTl7eOJhKSfnwSAQA4rOJDET1Gm+wI7i3N3oezSFcCF HCvEX1j9nZL/9i2KAr8g4TboIZloNgDeR6tTpNJzbGuDltzHME6847oUC/omcjwFkKbd F4dqyitT6fEmOYOCCMuH35YZcsOMDErtPZklzCE5wxUPYPh8jylHJB5vA4RT6g/245Me mzrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=8acZiaXncTb/Z6bOtXPMVOr+zZt2ayoyTGtTR+SBy+o=; b=Lfcjg06bFLMQgsGhhtr8FVzPgycVWubj+T8bXlB71gR56b3Sgxa5mhU0DbkcugTQXj mn0C9Easa7G4iDZ7HXpz9D3A3Kw1lac+4MUDNfTmtWznTDu5joDNpcoU5UVf2TCye0Ff Q3sqylniSJvDXbBXlXBYpVjMV/cXMuL26c4IUfw1B4ZuCsqJT9MmkfD6UlR2vSkCu4j8 9+5ysNSBENZV2UR6nlenCK0Z9nInTzc3tjDjrk0qDjQaSr5M9zJ8MpiOXOAamF0fTSuV gzFBUwosEJU5OHe7PhP51IaESopJPxcr4Odbtds+/bmp4WLD8umwLzazDiUBLfOBAIpa AobA== X-Gm-Message-State: AOAM5310yMMX/Wo9wxUsZjhEV2qbU7iJi349kEuR9buvID0URQ9Zt1ss vcJESnVNOg8FR3DqNKOupvrpRP6EjNn0M/xq X-Received: by 2002:a05:600c:286:: with SMTP id 6mr636483wmk.125.1605202116205; Thu, 12 Nov 2020 09:28:36 -0800 (PST) Received: from ?IPv6:2001:861:3a84:7260:5d3c:83d5:8524:33ca? ([2001:861:3a84:7260:5d3c:83d5:8524:33ca]) by smtp.gmail.com with ESMTPSA id f17sm7060158wmh.10.2020.11.12.09.28.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Nov 2020 09:28:35 -0800 (PST) Subject: Re: [PATCH v2 1/2] reset: brcmstb rescal: implement {de}assert() instead of reset() To: Philipp Zabel , Jim Quinlan Cc: Hans de Goede , Jens Axboe , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Florian Fainelli , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" , open list References: <20201106191743.40457-1-james.quinlan@broadcom.com> <20201106191743.40457-2-james.quinlan@broadcom.com> <64aa1f860bf60ddac7a2015c87896c8a7b13b161.camel@pengutronix.de> <2ee2fb9170e127d583e19062a791f3b1767d44fc.camel@pengutronix.de> From: Amjad Ouled-Ameur Message-ID: Date: Thu, 12 Nov 2020 18:28:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <2ee2fb9170e127d583e19062a791f3b1767d44fc.camel@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, On 09/11/2020 18:25, Philipp Zabel wrote: > 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. My pleasure, I will send a V2 soon of the patch, when it is done, please let me know if I can add anything that would suit best your use case as well. > 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. I think reset_control_rearm would be a very good candidate, resettable is quite representative but I think it is best to keep using verbs for the sake of homogeneity > > regards > Philipp Sincerely, Amjad