Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4004388imb; Wed, 6 Mar 2019 02:58:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzYg7Cc1AWcUZTH9WwJPgHOidND7mt8BJkYffKHHRb0Hmk7uBmsr/Tw92ycmYlqkM8WJVAF X-Received: by 2002:a62:76c9:: with SMTP id r192mr6758462pfc.251.1551869889060; Wed, 06 Mar 2019 02:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551869889; cv=none; d=google.com; s=arc-20160816; b=TRMQmnVkk+yN/GfhIYvtUM3PzEC7DIEBy8jxVp4K4C3DFGg5b5aXKx7gUSa82y56Vt 4d7mhF1Li286eNpwZBU1csgDdmKItoEPy4nl2XnWN1eknMxJ7q1maDqfZ1tMzfLbIg2f 87lWHtjH5UXZOJE9CBhZWcO7uk/bDkQQvPF8B+D71/LwLb4Ii1v6IWe99Skhx8Df/nDB o+s7+ZDX1vq1kNz56VgIHRjMylEUpnQjZw75kllHQC3qpmUordHVYHjL+Y+45k7hQ2TQ Q+LznBaY0WZUlJ8FRW+xzUanISdcWoXVIDiZxD89LNkRp+ObrWYL7HTWQt2gffP2wG6c E0iA== 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=4q4o5Ji8/SfC7Bdyn+M2XKx6fGnJHk/8vfPv9v8yp14=; b=fH11ynVgf5jB4BrFwtSHFti6fVQDxMXKPQ8GVykewS9UcJvIQWseerfMxBMc71pt4i iOqVyRPhgMHF3IYd0dExUYkUGTosBRYKkU8naPCd3kxMp9sWledcym7HVYfp4ieNP62k zpZoFtqkXw+8LYyHOYqwUQSDmgepzsN0NzH08+HlNbzKUxFnqVCVr9monmTXUseK1sBN Iwn2Auh4f5Sss2k3hBT3h5PqjQUCqOfCXL/1mkNvZPrnimFss031s5gU1We3mlYxuOYb WtG/Dbb0JzSNRaJxQ2C71ptq4ooxSAfkX/5ycJr7hBrsSZLgYIQWg3sxoAftbB7JbopQ vKpw== 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 bi9si1180658plb.174.2019.03.06.02.57.51; Wed, 06 Mar 2019 02:58:09 -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 S1729113AbfCFJ2J (ORCPT + 99 others); Wed, 6 Mar 2019 04:28:09 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:53992 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCFJ2I (ORCPT ); Wed, 6 Mar 2019 04:28:08 -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 x269K5ZX029929; Wed, 6 Mar 2019 03:28:01 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail4.cirrus.com ([87.246.98.35]) by mx0b-001ae601.pphosted.com with ESMTP id 2r1v7xa22x-1; Wed, 06 Mar 2019 03:28:01 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail4.cirrus.com (Postfix) with ESMTP id 7B634611C8AF; Wed, 6 Mar 2019 03:28:51 -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:00 +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 x269RxZC000421; Wed, 6 Mar 2019 09:27:59 GMT Date: Wed, 6 Mar 2019 09:27:59 +0000 From: Charles Keepax To: Steve Twiss CC: Liam Girdwood , Mark Brown , Support Opensource , LKML , Cirrus Patches Subject: Re: [PATCH 11/13] regulator: wm831x: Fix notifier mutex lock warning Message-ID: <20190306092759.GG46536@ediswmail.ad.cirrus.com> References: <08948a3fe926ba9fbae124fa972df766820d3289.1551808797.git.stwiss.opensource@diasemi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <08948a3fe926ba9fbae124fa972df766820d3289.1551808797.git.stwiss.opensource@diasemi.com> 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=884 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:48:46PM +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: e4ee831f949a ("regulator: Add WM831x DC-DC buck convertor support") > Suggested-by: Adam Thomson > Signed-off-by: Steve Twiss > --- Acked-by: Charles Keepax Thanks, Charles