Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp729737imm; Wed, 17 Oct 2018 07:27:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61VprlIHbKd0ljGMtMoEtsQoh7OScH5uGPopxgQ31zBCfAMqU1+kr3cxRUdin+rcMfNWxBf X-Received: by 2002:a63:1a1c:: with SMTP id a28-v6mr24077799pga.157.1539786456054; Wed, 17 Oct 2018 07:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539786456; cv=none; d=google.com; s=arc-20160816; b=Wx6RxFJsCMqtDexesSFvKmvap3XBxp7vTjM1eF6cdkvqbLA7o3w6DNiwPD1pKMLVQ+ sGXi6tQdtGirSYcOTFZrcvimstUDAILUVilGDqYEZLXJ/wWQt3QZwcxqA05hLs5ucMHW rnjhzbhiYrwAdZdxD98TJyao6OVpqtINvJy2bYkIE3gBRXykIQzQi3YtWl9IoyIwKkgJ MT8rV8qNCvMaSQbgu9r0SRjWNo15yZNY/rEM67esMfqjBktigRCichLJHoDGEQS8QTHv dAFoUsRJmufFAgIaJ+KaNzIlSFA1H8SSAQ3r/sXQM8tsSBtSSggH4+Ec8HZl/Ji0gf1f eytA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=R8FONiZt3iivTNehL63J41wVEB4N+jGJmNY70QCEifc=; b=ql6KLt7YsDguLzXFYgXTGpQ75JcP6J/UzE33LxmyxHAfg6a70aJeNW2XVsgQVbIpA5 TictjLw2yPuL2B9T11jGrlxhZMVG8IAv36JG8rX4NWm9TdQV2CDapm4MaRUE/UHrWSbC jf8jfcJAgUlNX2WW1VJ1m7mMZsHyFTl6S/5/yu0HOXD2hLMYCpbqjnP4Gjh4UfAIP+Y7 5JvQvyVnAdFf2wdCAJsBeppIqnNlb+rYiaYQf9JRcmlmeXcgpMDZIZ0ReCcYLEJBgcaz LTCgANYYi1FGPM2khtvv6v15g4xG0fCvLcn38pN8vnq1PFNSaSFfnLehuYhLhwN46zLI 03HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189-v6si17290568pgd.429.2018.10.17.07.27.20; Wed, 17 Oct 2018 07:27:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727612AbeJQWVX (ORCPT + 99 others); Wed, 17 Oct 2018 18:21:23 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:46699 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQWVW (ORCPT ); Wed, 17 Oct 2018 18:21:22 -0400 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gCmlG-0002By-Uk; Wed, 17 Oct 2018 16:25:22 +0200 Message-ID: <1539786321.4729.8.camel@pengutronix.de> Subject: Re: [PATCH v3] ARC: HSDK: improve reset driver From: Philipp Zabel To: Eugeniy Paltsev Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, Alexey Brodkin Date: Wed, 17 Oct 2018 16:25:21 +0200 In-Reply-To: <20181017140552.7331-1-Eugeniy.Paltsev@synopsys.com> References: <20181017140552.7331-1-Eugeniy.Paltsev@synopsys.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-10-17 at 17:05 +0300, Eugeniy Paltsev wrote: > As for today HSDK reset driver implements only .reset() callback. > > In case of driver which implements one of standard > reset controller usage pattern > (call *_deassert() in probe(), call *_assert() in remove()) > that leads to inoperability of this reset driver. > > Improve HSDK reset driver by calling .reset() callback inside of > .deassert() callback to avoid each reset controller > user adaptation for work with both reset methods > (reset() and {.assert() & .deassert()} pair) > > Signed-off-by: Eugeniy Paltsev > --- > Changes v2->v3: > * Drop dummy .assert callback. > > drivers/reset/reset-hsdk.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c > index 8bce391c6943..4c7b8647b49c 100644 > --- a/drivers/reset/reset-hsdk.c > +++ b/drivers/reset/reset-hsdk.c > @@ -86,6 +86,7 @@ static int hsdk_reset_reset(struct reset_controller_dev *rcdev, > > static const struct reset_control_ops hsdk_reset_ops = { > .reset = hsdk_reset_reset, > + .deassert = hsdk_reset_reset, > }; > > static int hsdk_reset_probe(struct platform_device *pdev) Thank you, applied to reset/next regards Philipp