From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Trumtrar Subject: Re: [PATCH 1/6] spi: imx: specify spi base for device tree probe Date: Fri, 9 Nov 2012 20:00:15 +0100 Message-ID: <20121109190015.GB3660@pengutronix.de> References: <1352469625-32024-1-git-send-email-s.trumtrar@pengutronix.de> <1352469625-32024-2-git-send-email-s.trumtrar@pengutronix.de> <20121109163830.GP23807@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, Sascha Hauer , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Liam Girdwood , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Mark Brown Return-path: Content-Disposition: inline In-Reply-To: <20121109163830.GP23807-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" List-Id: linux-spi.vger.kernel.org On Fri, Nov 09, 2012 at 04:38:30PM +0000, Mark Brown wrote: > On Fri, Nov 09, 2012 at 03:00:20PM +0100, Steffen Trumtrar wrote: > > > * This breaks compatibility with user space applications between non-DT and DT. > > > * On platforms that are in between DT and non-DT, it breaks registration of > > devices via spi_board_info. > > > Use the same method as 7e6086d9e54a159a6257c02bb7fc5805c614aad2 does for gpios: > > Use alias to identify the spi port, and then specify the base via the port id. > > If alias is not defined in DT, allocate the base dynamically. > > This sounds like a fix userspace and/or complete your DT conversion > problem... Well, it may lead to problems in userspace and does lead to problems with an incomplete DT support, but there are only so many hours in a day... -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |