From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932386AbcIPK4i (ORCPT ); Fri, 16 Sep 2016 06:56:38 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:44267 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752629AbcIPK43 (ORCPT ); Fri, 16 Sep 2016 06:56:29 -0400 Date: Fri, 16 Sep 2016 12:56:26 +0200 From: Peter Zijlstra To: Bartosz Golaszewski Cc: Linus Walleij , Alexandre Courbot , Ingo Molnar , LKML , linux-gpio Subject: Re: lockdep: incorrect deadlock warning with two GPIO expanders Message-ID: <20160916105626.GH5020@twins.programming.kicks-ass.net> References: <20160912120938.GR10153@twins.programming.kicks-ass.net> <20160912153356.GD10121@twins.programming.kicks-ass.net> <20160915075150.GO5008@twins.programming.kicks-ass.net> <20160915133922.GE5016@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160915133922.GE5016@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 15, 2016 at 03:39:22PM +0200, Peter Zijlstra wrote: > In any case, if this fails, we can always punt and simply count the > total number of instances of this driver on the system and go with that. One caveat with that approach is that if this is s module, someone doing rmmod, insmod a number of times gets tricky.