From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753392AbYJVCbf (ORCPT ); Tue, 21 Oct 2008 22:31:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751423AbYJVCb1 (ORCPT ); Tue, 21 Oct 2008 22:31:27 -0400 Received: from gate.crashing.org ([63.228.1.57]:35778 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbYJVCb0 (ORCPT ); Tue, 21 Oct 2008 22:31:26 -0400 Subject: Re: [PATCH 4/7] gpiolib: implement dev_gpiochip_{add,remove} calls From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: avorontsov@ru.mvista.com Cc: David Brownell , David Brownell , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, i2c@lm-sensors.org, Jean Delvare , David Miller In-Reply-To: <20081022014243.GA19362@oksana.dev.rtsoft.ru> References: <20081016171222.GA24812@oksana.dev.rtsoft.ru> <200810171324.42650.david-b@pacbell.net> <20081017212942.GA1919@oksana.dev.rtsoft.ru> <200810200029.58312.david-b@pacbell.net> <20081020154835.GA3234@oksana.dev.rtsoft.ru> <1224635360.7654.294.camel@pasglop> <20081022010347.GA7377@oksana.dev.rtsoft.ru> <20081022014243.GA19362@oksana.dev.rtsoft.ru> Content-Type: text/plain Date: Wed, 22 Oct 2008 13:28:17 +1100 Message-Id: <1224642497.7654.319.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2008-10-22 at 05:42 +0400, Anton Vorontsov wrote: > > Thinking about it more, I started recalling other issues. The bus > notifier chain doesn't replay previous events, so we also have to > register the notifier before the _devices_ are registered. And this > ruins the whole approach. :-/ Yeah, that's why I abandoned the bus > notifier idea. The notifier can be registered before the devices, though it's a little bit fishy and fragile. Easier I suppose to just have OF specific hooks in the bus code. Ben.