Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1013345imm; Wed, 8 Aug 2018 09:17:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyAs2X+6bLicsIvgAA4ub/r7Q/vkZJtPp4Lkdm2YJel6NgJY2aUE6AMxZNZ6NIzgiFmbBm9 X-Received: by 2002:a62:49cf:: with SMTP id r76-v6mr3583924pfi.235.1533745041760; Wed, 08 Aug 2018 09:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533745041; cv=none; d=google.com; s=arc-20160816; b=Y0Ouz9oVs4jpevanYPT6uqdoib9UvLU+dNUZ/v5r8rcmUxML252B1U0J43CnU9kUqc J/UWnEHrwtwP/k+XP2DocBIZ0KvOwV8ppgZBcwQ7Y+Z5bMXHExydUGjK4HW6ttSjCrm3 5pzgMsusAJB4PQuOu/hMa5tgEjpEvYnnAuQA2Xo0BT+f8qXzLIMBsuNGt1EpwjspKLbG 4Qap9Z2HUii5zRqCCebrl1OM8n++SRBWJ5x09IDWNpYsL+Bqb8ua6T/9oJqSPjmFPm8Q mL6jnlPHPCMKlrXWfffiZeZ14QYwjIu7at2z73yNFkkyVsMFwQr5ZeZKC9e8xvfLyNj7 h7YA== 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:dkim-signature:arc-authentication-results; bh=Z8Ky+5gXzYnaq2MBzxV20ahONgBUDtpNrpCMSUQiEhI=; b=hjfbFarlAXM/ffSGaWZAT2NdwOimklEYSIGaBZ1hgIYSonwE9cRtzcQtcw7yYyMCDO w40iOwGQEV+jArbrIoRRkP6A9k9bc6XVnsUfni1BpFCfPslMUPSEumHYker4pUaDxXv+ NUeFCbOKWWtwuYzregpL0zSciVAw/IHXZHtCJ74E7l5aBRRpTw84s2br7V6isLPAqplL BHGXUDhkb65JIZhc8caWY0qNs5Wvnd/ew/LqO4jr2nuQn3ksGWC5zBDgkE4CP54OMe7f TQqpGka2TB+jmaTn1xqwZr+L8/Vj3Yt6ncZCKQRH5bzFT6vqt8oLgKqAzkvUH8rsJYcr ak6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3GCshXzG; 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 d19-v6si5141291pfm.226.2018.08.08.09.17.07; Wed, 08 Aug 2018 09:17:21 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3GCshXzG; 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 S1730616AbeHHSgD (ORCPT + 99 others); Wed, 8 Aug 2018 14:36:03 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58650 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727749AbeHHSgC (ORCPT ); Wed, 8 Aug 2018 14:36:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=Z8Ky+5gXzYnaq2MBzxV20ahONgBUDtpNrpCMSUQiEhI=; b=3GCshXzG1aylFJ/WV7OaFsLzVg01YcYeu/dErP9n73z3F/Xey7nxywIZuDlh9SPTr9uwmIU2jymu9fwrcJxeyKgMMo3irVJli2+os2zy36K25R+62rQwnvVrY27ROY8DX2r+rUZuQfYFN4kykODz57Fx/Q9gOWE0yv/H7xuhq7A=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fnR5t-00077y-PJ; Wed, 08 Aug 2018 18:13:53 +0200 Date: Wed, 8 Aug 2018 18:13:53 +0200 From: Andrew Lunn To: Bartosz Golaszewski Cc: Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 03/28] nvmem: add a notifier chain Message-ID: <20180808161353.GF7275@lunn.ch> References: <20180808153150.23444-1-brgl@bgdev.pl> <20180808153150.23444-4-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180808153150.23444-4-brgl@bgdev.pl> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 08, 2018 at 05:31:25PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add a blocking notifier chain with two events (add and remove) so that > users can get notified about the addition of nvmem devices they're > waiting for. > > We'll use this instead of the at24 setup callback in the mityomapl138 > board file. Hi Bartosz What context is this notifier chain called in? I did something similar using the i2c notifier to try to work around the impending disappearing of the setup callback. But i got lockdep splats, because the notifier was called while some locks were being held, so it was not possible to register other i2c devices. The at24 setup callback is done as part of probe, so no important locks are held. Are any locks held when this notifier chain is called? Thanks Andrew