Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1223294pxb; Fri, 13 Nov 2020 07:18:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2ChCPPwaCfT6V6YsFK6CQSo4vFo8zW3vXlftpCXIrYh5vDb1e1aFif2l1JD7bbJxu9Z5s X-Received: by 2002:a05:6402:755:: with SMTP id p21mr2982568edy.349.1605280688212; Fri, 13 Nov 2020 07:18:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605280688; cv=none; d=google.com; s=arc-20160816; b=R4yguePOr+EXUApcAYwYYzEFKqKdI3WaELGRiSJFGlwa6XiT0TvT8W1B3OE3cvwmlD r8n2OgE96x3/f3eYbT54twAVOhiXZ2we9g/itwF/K9nsHHtB121DiXBS1tWV4Rkc8O3J /xKSqdX+yRwLNrZYdwnvX5GeIf30bQaWVML7KRhj+tBL2qH+gIMd4cZzkkl75gDgeewM JuGvPvF15MXSwucqXdBt09/a+SHXxIkVrdStYdrazFVTYz+57iR46qJWFjCR6BABIgx3 jFokLXq9YaH7zJJlyb7EI3gG3HMkCw1BrPnUW2nCOcrkHjnfdxCgiv6UQxL+D5gdiE6p 4ccg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:date:message-id:in-reply-to:subject :cc:to:from:user-agent:references:dkim-signature; bh=g2eWYS/TuIBg2trIPFi3kCqzhwEAZYnEwoucxK7S/uM=; b=Dls1l7hmazorvou/RfpOtl9pFZuB/XURSkblMocNYfrfM9W5+YmtoVToSYDHv3WaFT E67r4dg5tKNqnlg3QdvOAvS1ATo75hklEelNyuR/OL11L4TIADbB8yA8n0oAcQ1+5Yjl xEyfvTEXRC7Xx1gkTDJEe5jwKfIcuD8cixjtAUM6nUOUB/bS1YNdTXQNN1SBmPFh3YCv 5lyorA6iPKGs9Uk/kuXsr64rrkiHS2sr15SwVI0EVLwNBqeJaB6+r3XkUQNGN+1eCVHm k+sDTRQUwuMoVcEt8j0bR+ergnxdvSWTiBG/aWtlWs/uScxqE+kMiqr2vK+dvhlQAK1g vN/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FBvYqur0; 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 v14si6249514edb.336.2020.11.13.07.17.38; Fri, 13 Nov 2020 07:18:08 -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=FBvYqur0; 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 S1726701AbgKMPNj (ORCPT + 99 others); Fri, 13 Nov 2020 10:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbgKMPNj (ORCPT ); Fri, 13 Nov 2020 10:13:39 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15DC1C0613D1 for ; Fri, 13 Nov 2020 07:13:35 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id r17so10316037wrw.1 for ; Fri, 13 Nov 2020 07:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=g2eWYS/TuIBg2trIPFi3kCqzhwEAZYnEwoucxK7S/uM=; b=FBvYqur0Qp9aKH4Savqs1DxgrKDoYMnR8YWxDPAVxtuXYCqgWdpzIWhWu/JwsCt0EE beqnmgnC2p8nLAoRTgy3jaFQ7Ffu9zPIx+qyJTmgHy/TbMRRunssqjjYWp1L+hF1GbBP smn55I2OgBZ8S6VUw6LunUkpQ40IXDnz4dNz5QYSR64PN/OwxCXh3A0ArU1KN8yoU5gM ffxa5co8uGs3dcOR0LmIr0syzogK4JhoGAqiPwGO7IZPzVnKg7jYnk2wr3U4aA+W8rbC 7wBCheQRpyaL7YYAxgsVz9kDS5oTndz9WoEXfW64zphyNmpiUhCw6UEnyKT0LkuWYs5l VipA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=g2eWYS/TuIBg2trIPFi3kCqzhwEAZYnEwoucxK7S/uM=; b=kkM7BX5PEbg/14jdLMp8uYeeuooJV2F/fgYgRJ0dqrks/W91TEjvIYDpgZhyNtQR5o 3SLvYdxI+X/a21wN/P1rrqlmo9XY0EJ3NxBRCijkziZqYv2iq8AA06iJ/8uTMbDRyQ5w n12sEqG425zJBfDOvavK1dPmczh2/AdcVvOSHbFWzT+/RYdWPN+uLUfGRQ7dsts8D3L8 Yvjvb1AWEVctvSBMj2FjtgJPQdgErK+YaIQnlIpDJbA+JsO8/2fZ8OFhxGIMh3lCeEE+ pVftm1bteV8f2B23VNC0qmWVbRErR8OBzyYzdVYaw6pfN13hJzYHEllcTzKdsJUkLiAp K99w== X-Gm-Message-State: AOAM533IHBIQq1XqMWG0FXmNHiimYAZZm+sPdFUyhUDmMpJtaAJp5u7y kqX1VS+ruqOsptvtSdHNVbq+LQ== X-Received: by 2002:a5d:5048:: with SMTP id h8mr4074266wrt.135.1605280411764; Fri, 13 Nov 2020 07:13:31 -0800 (PST) Received: from localhost (253.35.17.109.rev.sfr.net. [109.17.35.253]) by smtp.gmail.com with ESMTPSA id i6sm10790839wma.42.2020.11.13.07.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 07:13:31 -0800 (PST) References: <20201112230043.28987-1-aouledameur@baylibre.com> <0f679c62aa48603ea43a8fa4819d688baa802d73.camel@pengutronix.de> User-agent: mu4e 1.4.10; emacs 27.1 From: Jerome Brunet To: Philipp Zabel , Amjad Ouled-Ameur Cc: linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, "Kevin Hilman" , Jim Quinlan Subject: Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable In-reply-to: <0f679c62aa48603ea43a8fa4819d688baa802d73.camel@pengutronix.de> Message-ID: <1jima91e92.fsf@starbuckisacylon.baylibre.com> Date: Fri, 13 Nov 2020 16:13:29 +0100 MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 13 Nov 2020 at 16:04, Philipp Zabel wrote: > On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: >> The current reset framework API does not allow to release what is done by >> reset_control_reset(), IOW decrement triggered_count. Add the new >> reset_control_rearm() call to do so. >> >> When reset_control_reset() has been called once, the counter >> triggered_count, in the reset framework, is incremented i.e the resource >> under the reset is in-use and the reset should not be done again. >> reset_control_rearm() would be the way to state that the resource is >> no longer used and, that from the caller's perspective, the reset can be >> fired again if necessary. >> >> Signed-off-by: Amjad Ouled-Ameur >> Reported-by: Jerome Brunet >> --- >> Change since v1: [0] >> * Renamed the new call from reset_control_(array_)resettable to >> reset_control_(array_)rearm >> * Open-coded reset_control_array_rearm to check for errors before >> decrementing triggered_count because we cannot roll back in case an >> error occurs while decrementing one of the rstc. >> * Reworded the new call's description. > > Thank you, applied to reset/next. Hi Philipp, Would it be possible to get an immutable branch/tag with this ? It would allow to move forward on the USB side, without waiting for the next rc1. Thx Jerome > > regards > Philipp