Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4004400imb; Wed, 6 Mar 2019 02:58:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwWLGmtftgV3hh2cHg0S6btL0aUKOKihkIyMLWBAETriHiNeoRFntG6e9xbRNQab6VU8sVp X-Received: by 2002:a63:535d:: with SMTP id t29mr5809100pgl.251.1551869890059; Wed, 06 Mar 2019 02:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551869890; cv=none; d=google.com; s=arc-20160816; b=Dqlt6ZMsqHRIfiaOic63/gk/BswxikJT5ZGaKKpf+Py1GuVLtawkN1kVfsF+PNUcIE dqKmD1CiBnRlqRIkPCHAgxQ57eGeZNoudX8ngkp3CyN3hVc7RS5/RwzLO+uvLrX4XEv6 ADgRjVoOUztgSP0axEUWVnyw1YeAvo5pTBQoB2Gyji6hLEpz2xkAoKwyzder1HJrSHMD 6RatJL6bW3BqV5pFMwfKIRV2oww2lENoFEsxfEyQI1kP4IJdurTWHOLY+UiDsOXyvXR/ OYMx1B1l1TocGb9lT9sh68P6jjUd6SJJa/AeuDVAZUH7kk7MqNRgO/3us282yDuirHCH 4K3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=weqAPA25+lQq7vYpO6BSANjSRTJozhKhMaeC0kUW41I=; b=vSmr7L8WMWXu4g6wqrP3B8Hl2x0I6Jp9iKO9LMxozMMCKYQwi9CbpWBAVamyEk6dX+ dV5cRMh8SQK/MEDhh2Pi26qutf/cwLDQCWGzgb8MyjF1XsbZ1y7MLwNYd5yQZF9rwi4l MABhBkiJCOTL64BRAaN4hHrqsBUys6d0Eu4Iq9TWYYPb1HaVKkQU/Vi7BsppWQ4pgLDh djDqVSLvRqvzEclPK6yEX4h3BG1NjZOwIR6PAYT9GLF7E4YTpNYiZg2ZC2mYPBYwVgCb xWTGo1UjSoOxdaakqfjQ4v4qfhLH1nveOieVnp1rm43KuNnt8J3u6hSr7WCzKLuA2c1M UcoQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si1167314plt.77.2019.03.06.02.57.55; Wed, 06 Mar 2019 02:58:10 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729575AbfCFJ21 (ORCPT + 99 others); Wed, 6 Mar 2019 04:28:27 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:54034 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729078AbfCFJ20 (ORCPT ); Wed, 6 Mar 2019 04:28:26 -0500 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x269Jkjv029768; Wed, 6 Mar 2019 03:28:22 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail3.cirrus.com ([87.246.76.56]) by mx0b-001ae601.pphosted.com with ESMTP id 2r1v7xa23p-1; Wed, 06 Mar 2019 03:28:22 -0600 Received: from EX17.ad.cirrus.com (ex17.ad.cirrus.com [172.20.9.81]) by mail3.cirrus.com (Postfix) with ESMTP id 570A9611C8B2; Wed, 6 Mar 2019 03:28:38 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Wed, 6 Mar 2019 09:28:21 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id x269SLw0001936; Wed, 6 Mar 2019 09:28:21 GMT Date: Wed, 6 Mar 2019 09:28:21 +0000 From: Charles Keepax To: Steve Twiss CC: Liam Girdwood , Mark Brown , Support Opensource , LKML , Cirrus Patches Subject: Re: [PATCH 13/13] regulator: wm831x ldo: Fix notifier mutex lock warning Message-ID: <20190306092821.GI46536@ediswmail.ad.cirrus.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=850 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903060064 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 03:54:01PM +0000, Steve Twiss wrote: > The mutex for the regulator_dev must be controlled by the caller of > the regulator_notifier_call_chain(), as described in the comment > for that function. > > Failure to mutex lock and unlock surrounding the notifier call results > in a kernel WARN_ON_ONCE() which will dump a backtrace for the > regulator_notifier_call_chain() when that function call is first made. > The mutex can be controlled using the regulator_lock/unlock() API. > > Fixes: d1c6b4fe668b ("regulator: Add WM831x LDO support") > Suggested-by: Adam Thomson > Signed-off-by: Steve Twiss > --- Acked-by: Charles Keepax Thanks, Charles