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=-5.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 4CCB8C388F7 for ; Thu, 12 Nov 2020 13:14:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCDB2221E9 for ; Thu, 12 Nov 2020 13:14:52 +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="1zVzCwCx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728144AbgKLNOw (ORCPT ); Thu, 12 Nov 2020 08:14:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727932AbgKLNOv (ORCPT ); Thu, 12 Nov 2020 08:14:51 -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 4851CC0613D4 for ; Thu, 12 Nov 2020 05:14:51 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id c16so5476888wmd.2 for ; Thu, 12 Nov 2020 05:14:51 -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=khPl32PaFPajgxudIFCV/7sE6sgZ8s6VEPeuzuAOnEE=; b=1zVzCwCxFFXqYgDMR+7zq6ldvSgivUZwoIVw+3QpkMWattNCrYHkxfqRrbis9t75W+ +jx3575UFW2mfONslpRiJ0DnVMBMdcCd7OhTlxOsd6hg8CirCgDcLbCcKzRwm1KLifJ8 t689RF+x1EGSMpBUKV46lZ5CJSyiTPlPKTxhmhUeMtsgNCGJCE8KSWTsQQnKkuNIiJk1 wbwtO4YPH8Lb2DhLXgIh+yhm6AN6CZRUZbaRLaPGFaszc6WLYhq8FXW/aqwYGQtBwCfi dxZCb/HwcMckBcP4yr7nCYBUk7XBHQjg/4RuNQsPMA1O6OxpbFhkvaTKcO2EOWcIpqiX g0wA== 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=khPl32PaFPajgxudIFCV/7sE6sgZ8s6VEPeuzuAOnEE=; b=r/CgtwQUFmtYt3E/Spiqth7A8jihqnnQbKdmAzORWLeAv9bFetj3np6QlQF2vaFdhF bvTYeB0Sjb0ofLlqybVM+sNAt4iWsUuJ1BMyUxuLSqZsnCYLiUlMCUK6O4NWNPAagBVi Tzk1OLVNK/W14UJTDcvQRqUlNssWcDhhcEXdcxuu9V07FVHso3ejnWqc8fexa6TsKgqB 6Qy9+MvvESMepRVEDMWVyt/94OElIL5uSzfQBn1AI4RxJ9qskNGJxF5SbblIvL/FL3gl IjCQ4IDsSgntC9/mfhMB7C8i62TrYvl1CwzhgUu86EQkliJl2nY6eYiDHkkXr17OCXQh rKVA== X-Gm-Message-State: AOAM531KXsj65CGxXR9yTjmr0jZynQmAMe0tQSch6yzwJoQMCaV2zX6T 55sddiP8va2Olp4j3vQweczO4Q== X-Google-Smtp-Source: ABdhPJwlyquafBA/bq5q5PHiBAXBvMonzm+44o0cAS17O1FWvKLTP5sVXAIPengBqmJGJ5w3SP6lmg== X-Received: by 2002:a1c:240a:: with SMTP id k10mr9330800wmk.173.1605186888876; Thu, 12 Nov 2020 05:14:48 -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 o10sm6769550wma.47.2020.11.12.05.14.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Nov 2020 05:14:48 -0800 (PST) Subject: Re: [PATCH] reset: Add reset controller API To: Kevin Hilman , Philipp Zabel Cc: linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, Jerome Brunet References: <20201001132758.12280-1-aouledameur@baylibre.com> <7hh7rckzcr.fsf@baylibre.com> From: Amjad Ouled-Ameur Message-ID: Date: Thu, 12 Nov 2020 14:14:46 +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: <7hh7rckzcr.fsf@baylibre.com> 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 On 03/10/2020 01:00, Kevin Hilman wrote: > Amjad Ouled-Ameur writes: > >> 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_resettable() 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_resettable() 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. >> >> This patch will fix a usb suspend warning seen on the libretech-cc >> related to the shared reset line. This warning was addressed by the >> previously reverted commit 7a410953d1fb ("usb: dwc3: meson-g12a: fix shared >> reset control use") > Could you also send a patch that shows how your new feature can be used > to fix the problem that was originally fixed by that patch (and still > exists, now that it was reverted.) > > Thanks, > > Kevin Hello Kevin, Will do soon ! Sincerely, Amjad