Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031138AbbD1OME (ORCPT ); Tue, 28 Apr 2015 10:12:04 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:35210 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030419AbbD1OMA (ORCPT ); Tue, 28 Apr 2015 10:12:00 -0400 MIME-Version: 1.0 In-Reply-To: <28a25eda-bba0-4a2e-9890-b3d3bef7ac7e@googlegroups.com> References: <20150426103257.GJ22845@sirena.org.uk> <20150426110144.GK22845@sirena.org.uk> <553CCABA.3090504@redhat.com> <12F80B18-7418-430E-94F7-5A20C133BA9A@martin.sperl.org> <20150426125113.GF5627@lukather> <20150427101601.GN22845@sirena.org.uk> <20150427173036.GA10950@lukather> <20150427180728.GW22845@sirena.org.uk> <28a25eda-bba0-4a2e-9890-b3d3bef7ac7e@googlegroups.com> From: Michal Suchanek Date: Tue, 28 Apr 2015 16:11:17 +0200 Message-ID: Subject: Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example. To: "Eric D." Cc: linux-sunxi , Hans de Goede , Jonathan Corbet , Martin Sperl , Mark Brown , Maxime Ripard , Linux Kernel Mailing List , linux-spi Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1070 Lines: 31 On 28 April 2015 at 16:03, Eric D. wrote: > Hi, > > I give Maxime's patch a try and got 4 spidev devices : > /dev/spidev32766.[0-3] > > root@bpi:~# ls -lh /dev/spidev* > crw------- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 > crw------- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 > crw------- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2 > crw------- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3 > > Shouldn't they be numbered from like spidev0.[0-3]. > Is this an udev problem ? any clues ? I don't know where the 32766 comes from but it's normal. It seems to be the same number every time for the same port. If you really wanted you could probably rename the device nodes with udev. Or with only one spi bus enabled /dev/spidev*.0 should work too. Thanks Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/