From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH 1/3] spi/xilinx: Use automatic bus number on device tree Date: Wed, 21 Jan 2015 17:02:41 +0100 Message-ID: <54BFCDA1.4060205@metafoo.de> References: <1421855590-9210-1-git-send-email-ricardo.ribalda@gmail.com> <1421855590-9210-2-git-send-email-ricardo.ribalda@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Ricardo Ribalda Delgado , Mark Brown , Michal Simek , =?windows-1252?Q?S=F6ren_Brink?= =?windows-1252?Q?mann?= , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Return-path: In-Reply-To: <1421855590-9210-2-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org On 01/21/2015 04:53 PM, Ricardo Ribalda Delgado wrote: > If there is more than one spi device on a device tree, the second one > will fail to probe due to a duplicated bus_num. > [...] This should already be fixed. See commit 4b153a2137c5 ("spi: xilinx: Use pdev->id instead of pdev->dev.id for the SPI bus number")[1]. If the device was registered using devicetree pdev->id is -1, so dynamic numbers will be used. - Lars [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/spi/spi-xilinx.c?id=4b153a2137c5d2914794c8944d78c731c1b0ae9d