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 X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17780C55ABD for ; Fri, 13 Nov 2020 15:13:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7A2D22261 for ; Fri, 13 Nov 2020 15:13:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="FBvYqur0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgKMPNj (ORCPT ); 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-Google-Smtp-Source: ABdhPJwd+fiAbK8NZOBUneQcMTjdFObaHBrUXLOnyyZOiG6lbkh9XW68EclIsNXhMD8e3AYxJpBepw== 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