From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760264Ab0JZTGy (ORCPT ); Tue, 26 Oct 2010 15:06:54 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:61116 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756909Ab0JZTGx (ORCPT ); Tue, 26 Oct 2010 15:06:53 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.188.36.105 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/1T7ZaecCyoCiGY1k+X+dn Date: Tue, 26 Oct 2010 12:06:46 -0700 From: Tony Lindgren To: Ohad Ben-Cohen Cc: Kevin Hilman , Balaji T K , "Kamat, Nishant" , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, Greg KH , Benoit Cousson , Grant Likely , Hari Kanigeri , Suman Anna Subject: Re: [PATCH 3/3] omap: add hwspinlock device Message-ID: <20101026190645.GH3012@atomide.com> References: <87r5fmxghm.fsf@deeprootsystems.com> <87bp6pviwf.fsf@deeprootsystems.com> <8739s0sobc.fsf@deeprootsystems.com> <20101022165612.GF9149@atomide.com> <20101025190221.GC7206@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ohad Ben-Cohen [101026 04:45]: > On Mon, Oct 25, 2010 at 9:02 PM, Tony Lindgren wrote: > >> if you feel that (2) is justifiable/desirable, I would be more > >> than happy to submit that version. > > > > Yes (2) please. I would assume there will be more use of this. And then > > we (or probably me again!) don't have to deal with cleaning up the drivers > > again in the future. > > Sounds good. > > >> Or do you mean a variation of (2) with only the specific locking bits > >> coming from pdata func pointers ? I guess that in this case we just > >> might as well go with the full (2). > > > > Yes variation of (2) where you only pass the locking function via > > platform data would be best. > > It feels a bit funky to me because we would still have code that is > omap-specific inside the "common" probe()/remove() calls. > > I suggest to move everything that is omap-specific to a small omap > module that, once probed, would register itself with the common > hwspinlock framework (after initializing its hardware). > > That small platfom-specific module probably doesn't have to sit in the > arch/ folder; we can follow established conventions like > mmc/i2c/gpio/spi/etc.. > > With that in hand, the hwspinlock would really be hardware-agnostic, > and then applying s/omap_hwspin/hwspin/ would be justified. > > Does this sound reasonable to you ? Sounds good to me. Tony