Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3961129imb; Wed, 6 Mar 2019 01:40:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyixROwuITKl4kW313vmYatCeY9bVhpEra+S3+qnqUmkP5Jc09V3qkGBrDm96pi2al9zBBs X-Received: by 2002:a63:d70a:: with SMTP id d10mr5454117pgg.286.1551865237943; Wed, 06 Mar 2019 01:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551865237; cv=none; d=google.com; s=arc-20160816; b=ipjZ6lXvohH6NwDyQodmk6fL+ZRd0P2eDZ/cFvs2cLyomEit0UBZe5sE3AwdruVUJm DTDA/Dq3UT0PCtUYJQmlvAz5Mhrojxr4JcVNNOXGS2umAnmnSskagfgwkt02CbB6y8m6 b2cJm0gLsVyqhof2+xmCPY+YdAX27RGoXNhUuc3JZ8Xfxlh/+VfHvW5RRJJyd3JEh16+ vd7VLbWFIJ03vtAeVmgXool+F1MtjKKqXowkp8mmrzH1bJearPyZJFcJaPver9lPN8Sh W4wE4KkOcJmkNvhOS6HBcZsK+CswwCsQcMe0CeAfFCZXMbS0TxoK/caquK6erInLHVHb J2DA== 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=74LWoqMcrIgzO5zW5hv/iwy8y/sJS2X19LNC/kRx+vo=; b=WXd42wKaZyJNq0UNx2xze5Vg4IZQxnfP9kfPBP9sMNGjWI6xjDvGTWSIgRxwmFd6S0 MEIoLvx0IneRSdFX2yEA8zmntgiLaUW93w0H2MU4EvrNJer6hsHrti/5PWqpXemZPzda 4V5aqXb3uWwhrHGTNNG77TA/0lGZRtBi+je0HZklT+G7cjhhRayYPJv6m2bXpeNjc8Os GjB0u9o7pMxyFeMiY3xE6+QuyhDvGUtQX3hwSx+sbQ2q76XEjc7XV1Gff+6lNXSwYrvw zVwBIbGLrBLG7GdDRswIN/WPjkW9Pb3jADrzPz9q23JuzAcE7jfyPzJ+YRIlNKrLyfCh xwJQ== 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 y19si1231804pfc.229.2019.03.06.01.40.23; Wed, 06 Mar 2019 01:40:37 -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 S1729535AbfCFJ2Q (ORCPT + 99 others); Wed, 6 Mar 2019 04:28:16 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:54014 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCFJ2P (ORCPT ); Wed, 6 Mar 2019 04:28:15 -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 x269KEKP030353; Wed, 6 Mar 2019 03:28:12 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0b-001ae601.pphosted.com with ESMTP id 2r1v7xa23d-1; Wed, 06 Mar 2019 03:28:11 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 5C86A611E130; Wed, 6 Mar 2019 03:28:11 -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:10 +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 x269SA8T000931; Wed, 6 Mar 2019 09:28:10 GMT Date: Wed, 6 Mar 2019 09:28:10 +0000 From: Charles Keepax To: Steve Twiss CC: Liam Girdwood , Mark Brown , Support Opensource , LKML , Cirrus Patches Subject: Re: [PATCH 12/13] regulator: wm831x isink: Fix notifier mutex lock warning Message-ID: <20190306092810.GH46536@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=873 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:51:28PM +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: d4d6b722e780 ("regulator: Add WM831x ISINK support") > Suggested-by: Adam Thomson > Signed-off-by: Steve Twiss > --- Acked-by: Charles Keepax Thanks, Charles