Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757167AbaFZLjv (ORCPT ); Thu, 26 Jun 2014 07:39:51 -0400 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:43627 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756355AbaFZLju (ORCPT ); Thu, 26 Jun 2014 07:39:50 -0400 Date: Thu, 26 Jun 2014 12:39:39 +0100 From: Russell King - ARM Linux To: Tomasz Figa Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Kukjin Kim , Marek Szyprowski , Rob Herring , Mark Rutland , Greg Kroah-Hartman , Jiri Slaby , Daniel Drake , Tomasz Figa Subject: Re: [PATCH 0/3] Deterministic UART numbering on Samsung SoCs Message-ID: <20140626113939.GP32514@n2100.arm.linux.org.uk> References: <1403781875-5425-1-git-send-email-t.figa@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1403781875-5425-1-git-send-email-t.figa@samsung.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 26, 2014 at 01:24:32PM +0200, Tomasz Figa wrote: > Current Samsung UART driver relies on probe order of particular > samsung-uart instances, which makes it impossible to get proper > initialization of ports when not all ports are available on board, > not even saying of deterministic device naming. > > This series intends to fix this situation by adding support to parse > aliases from device tree and use them to assign instance IDs to > particular port instances. How about instead exporting the path/id information so that userspace can create /dev/serial/by-{path,id}/... for internal devices instead? The problem you're raising is very much the same problem you have when there are multiple USB serial devices connected to the machine - you just get a bunch of /dev/ttyUSB* devices which are unordered (they can change on each boot, or change order if you disconnect and reconnect them.) /dev/serial/by-{path,id}/ allows for a much more stable path. -- FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it. -- 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/