Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2426192iog; Sun, 26 Jun 2022 15:55:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spgEkzCJpMMLZOtPZnbG7+Ipq0ofeoMIyD2MJWc7WwiGB9aSjH+yrktSFZz3sGM8Lh6Uzf X-Received: by 2002:a17:903:2347:b0:16a:44fa:995b with SMTP id c7-20020a170903234700b0016a44fa995bmr11271632plh.89.1656284150051; Sun, 26 Jun 2022 15:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656284150; cv=none; d=google.com; s=arc-20160816; b=dQpoHBw0OQ+SejKUzE09BbN83s+LiZDlmnAxYe2FsSZdEDEuPD0j7hmCUziJPwLY3p THBu3IhIDMvXZXbumh7crJskpEV2iM590LH4KsBiqsLvLZcAaUO6eQBxuM6RcWYpMRF5 JSIlypTNah631ZMacq/yU8P9Dx7VgZ+76dHZpchOPIIXm6IvaoxAsnn7jaIjlqqSJUhQ y+d7r8bYhuAe/QTfJm/IwaosrF35loOFP4NEjsrOT6Pn/CdFvEbjaSUhwB7Ut41QF//1 n2xnRK88ZqXIiY/jDhgFYLG0G5zk6QTmH6uuc/LCYwEebdn+ooiW2dP2EfTm0p2STxYx yoRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3JsiawPMp5/LbLqfuA8IKby2HOUgZS03CJy60KMEhiY=; b=Wzfrhv4G/soPJRInwaAxCKXc37S8UfvuapnJjyb1gJdPQ3oE3HEPasYO+bzNatwEwn WWniOQWGqBki2LXn9hNDreUXpLDlw377h4tFKw88QlGKpHCOxdZlWH8euudWo5L8KsyV pxGgGbA/UQHeR7kM8byz9Vg8BQwAc2lhHI3txv8aAmt6yzRuuY3PGZREBr6eTvd9zq9K gS/Vsgw2OemHFq62MSzUCKmoKR6Dn77/W/37OJTBY82hDNPaJ+bIeSz+NB+JvvoG3IiH PPMe7YG5PPWH5t59g41Oy472OWfPkMwYrd6x8YzASpGeTmAESwQZeByw7FYO3tU9Vg9x 0/dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HnSsbwGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a656c0d000000b0040c8b464f0esi12324269pgu.107.2022.06.26.15.55.08; Sun, 26 Jun 2022 15:55:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HnSsbwGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229801AbiFZWfh (ORCPT + 99 others); Sun, 26 Jun 2022 18:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbiFZWff (ORCPT ); Sun, 26 Jun 2022 18:35:35 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AECCC2DDF; Sun, 26 Jun 2022 15:35:34 -0700 (PDT) Received: from [192.168.2.145] (unknown [109.252.118.164]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 68E1A66016B4; Sun, 26 Jun 2022 23:35:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656282932; bh=8rXxTlcstkFQNootjbn8QCtpfVmztVI0c8pZei6dYig=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HnSsbwGcG6ht6Oy6ED05gqtbxf+0uxcp+BlKnAnY6X92UXaHhlp5D+WFj7oS1omfW XPzwyc8giZ4MR2G2QGGxNOCgP3o+ZvYAc8jb3oW5xB+xbbuYPUZb3hdEb9FswAg9nJ hrrPvwSkSi5zi3zxYsLPs0wT8Z5J9JXvJD4tlto0lO9kABRM7RcA/iZMTLDgeBwcyF UD3k25W8bZteJs+aPq1pHzC1gGQZzEGzISYKENM458W5x0VK8mXXAjLGipla6r3GdJ Vo/gb9JUrz1oZet2hKhj88s2nJQHBR3j9s32avttlqrdESPJN4t3M3FBVUK1asaq8u +JwWCTbmsGGZw== Message-ID: Date: Mon, 27 Jun 2022 01:35:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH RESEND v5 1/8] reset: Fix devm bulk optional exclusive control getter Content-Language: en-US To: Serge Semin , Stephen Boyd , Philipp Zabel , Michael Turquette , Dmitry Osipenko , Mark Brown Cc: Serge Semin , Alexey Malahov , Pavel Parkhomenko , Thomas Bogendoerfer , linux-clk@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220624141853.7417-1-Sergey.Semin@baikalelectronics.ru> <20220624141853.7417-2-Sergey.Semin@baikalelectronics.ru> From: Dmitry Osipenko In-Reply-To: <20220624141853.7417-2-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/24/22 17:18, Serge Semin wrote: > Most likely due to copy-paste mistake the device managed version of the > denoted reset control getter has been implemented with invalid semantic, > which can be immediately spotted by having "WARN_ON(shared && acquired)" > warning in the system log as soon as the method is called. Anyway let's > fix it by altering the boolean arguments passed to the > __devm_reset_control_bulk_get() method from > - shared = true, optional = false, acquired = true > to > + shared = false, optional = true, acquired = true > That's what they were supposed to be in the first place (see the non-devm > version of the same method: reset_control_bulk_get_optional_exclusive()). > > Fixes: 48d71395896d ("reset: Add reset_control_bulk API") > Signed-off-by: Serge Semin > > --- > > Changelog v4: > - This is a new patch added on v4 lap of the series. > --- > include/linux/reset.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/reset.h b/include/linux/reset.h > index 8a21b5756c3e..514ddf003efc 100644 > --- a/include/linux/reset.h > +++ b/include/linux/reset.h > @@ -731,7 +731,7 @@ static inline int __must_check > devm_reset_control_bulk_get_optional_exclusive(struct device *dev, int num_rstcs, > struct reset_control_bulk_data *rstcs) > { > - return __devm_reset_control_bulk_get(dev, num_rstcs, rstcs, true, false, true); > + return __devm_reset_control_bulk_get(dev, num_rstcs, rstcs, false, true, true); > } > > /** Good catch, Reviewed-by: Dmitry Osipenko Although, this patch should be sent as standalone since it's unrelated to the rest of the clk patches. -- Best regards, Dmitry