Return-path: Received: from mail-yx0-f174.google.com ([209.85.213.174]:38548 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776Ab0HBQke convert rfc822-to-8bit (ORCPT ); Mon, 2 Aug 2010 12:40:34 -0400 MIME-Version: 1.0 In-Reply-To: References: <1279733634-21974-1-git-send-email-ohad@wizery.com> <20100726193028.GG3903@tuxdriver.com> <1280736987.17809.18.camel@chilepepper> <20100802114256.GE12293@atomide.com> From: Ohad Ben-Cohen Date: Mon, 2 Aug 2010 19:40:12 +0300 Message-ID: Subject: Re: [PATCH v2 00/20] native support for wl1271 on ZOOM To: Vitaly Wool , Luciano Coelho Cc: Tony Lindgren , Kalle Valo , Pandita Vikram , "linux@arm.linux.org.uk" , "Quadros Roger (Nokia-MS/Helsinki)" , "linux-wireless@vger.kernel.org" , Nicolas Pitre , "linux-mmc@vger.kernel.org" , "ext John W. Linville" , San Mehat , Chikkature Rajashekar Madhusudhan , "akpm@linux-foundation.org" , "linux-omap@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Vitaly, On Mon, Aug 2, 2010 at 7:19 PM, Vitaly Wool wrote: > On Mon, Aug 2, 2010 at 5:59 PM, Ohad Ben-Cohen wrote: >> >> Check out patch no. 9: > > sorry for the confusion. However, I guess if the platform doesn't > supply this value, we'll just consider it 0? Without any warning, > right? > > The problem is, we can't really distinguish between this field not set > and value zero, and that means something is wrong with the design. The > easiest way is probably changing the clock ids to start with 1. I don't think it's a huge deal as adding new devices on board files is anyway something that is done carefully and not so often. Btw, we have this kind of mechanism in other locations of the kernel as well and it doesn't seem to be problematic (e.g. spi->chip_select, spi->mode, spi->irq, ...). Having said that I don't mind applying your proposal either and pushing those defines by 1 in the driver. Luca what do you think ? Thanks, Ohad. > > Thanks, > ? Vitaly >