Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3568908pxb; Mon, 4 Oct 2021 05:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAcYs5S/qKtdzhAuQSdSY0aEjh+Qef0OaQlAjD2mRrG+2RNt98JYWGT7tUrlKfEX9PyRog X-Received: by 2002:a17:906:144e:: with SMTP id q14mr16101695ejc.19.1633349783653; Mon, 04 Oct 2021 05:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633349783; cv=none; d=google.com; s=arc-20160816; b=p7nnv/FOJShJbwe3V9CqT24VBbvHpHHXiH6kpv3ioZh2YDDlurh8xMWi+j7LQg+Wkj 7lWdTOO+fHL2B67D/tcrRGYfIlsfEdPAXiGlHJOHqBuhP921CJP36zVLSeiJCHppGb2+ wwAF7V+OAil7mnFFQconxaSXJ+2/aOps2qlTxjY1PajJdKI/Bc7fpgKqjiYZh0UkDbhS 07EmYyP4ho2Rr/eVi+1FBqcdWCQdmQR8E7wIIPTnzj+z3dHNkRQ8y5sJm1qtlwLvgbia VjZyVMYPblllUVXKyo9qQOD8XK9Q5KcXP4k82REk0PyAFboQdr+wNp3NXw0wrB+J7Apo Ys0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y9gJFRgNrteitCd4kkOXtex5hLsUmIyfQnurIve3L0k=; b=fPeHZXWYA4beaRvNxfvcKaAEqu7stMjxG5LIGQ4lLp0E5Vf/8X97W1X0TCrJrAXTh/ h2Gn5GUf7KMYmr7fueiGnyDl0z/hWMXIQWPvS95Ffz9lpqKump9cKWlPU+2FRwIAhzp5 Uh2EbuMZ8nQb+IWvVPzmTYOplg1QZlC2QvkVbYudVMMxpqzBDmx6bUgs1QGtqTwK8w+b zdPgNnHND/3obkjacr/o5m8cOoWvPqJg/lFiZ9lmGsJlsW3ex3RKU6jk9v2SXlcuI/Xt 70Ec/N4Lsifvau8PXRL14Gz7eTTSF0qdacAtvnjvdaCCPVrMU0gwNSOTmuV0kzpQ0Fby wlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=W86s9xhZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si17842201edv.5.2021.10.04.05.15.57; Mon, 04 Oct 2021 05:16:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=W86s9xhZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbhJDMQB (ORCPT + 99 others); Mon, 4 Oct 2021 08:16:01 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47352 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhJDMQB (ORCPT ); Mon, 4 Oct 2021 08:16:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=y9gJFRgNrteitCd4kkOXtex5hLsUmIyfQnurIve3L0k=; b=W86s9xhZTbrqNDQ/5PEYGx3y6M brNvSwel+cHOSYVQ8n49TrO6WfrJLpScgYjbQC473yfhbn6GloWh77tiJCRwiZUDLgce8QMWjyi/S giUCTYFtIfH965Fq330ejem1rdPQv+Eat25tCbwA6JQSDXcWwp2sUgBo+D+Q/Ycx0Rmg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mXMr7-009XEZ-QU; Mon, 04 Oct 2021 14:14:05 +0200 Date: Mon, 4 Oct 2021 14:14:05 +0200 From: Andrew Lunn To: Greg Kroah-Hartman Cc: Pavel Machek , Marek =?iso-8859-1?Q?Beh=FAn?= , "linux-leds@vger.kernel.org" , netdev@vger.kernel.org, Jacek Anaszewski , linux-kernel@vger.kernel.org Subject: Re: are device names part of sysfs ABI? (was Re: devicename part of LEDs under ethernet MAC / PHY) Message-ID: References: <20211001133057.5287f150@thinkpad> <20211001144053.3952474a@thinkpad> <20211003225338.76092ec3@thinkpad> <20211004090438.588a8a89@thinkpad> <20211004073841.GA20163@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 04, 2021 at 10:30:25AM +0200, Greg Kroah-Hartman wrote: > On Mon, Oct 04, 2021 at 09:38:41AM +0200, Pavel Machek wrote: > > Hi! > > > > > > > > Are device names (as returned by dev_name() function) also part of > > > > > > sysfs ABI? Should these names be stable across reboots / kernel > > > > > > upgrades? > > > > > > > > > > Stable in what exact way? > > > > > > > > Example: > > > > - Board has an ethernet PHYs that is described in DT, and therefore > > > > has stable sysfs path (derived from DT path), something like > > > > /sys/devices/.../mdio_bus/f1072004.mdio-mii/f1072004.mdio-mii:01 > > > > > > None of the numbers there are "stable", right? > > > > At least f1072004 part is stable (and probably whole path). DT has > > advantages here, and we should provide stable paths when we can. > > The kernel should enumerate the devices as best that it can, but it > never has the requirement of always enumerating them in the same way > each time as many busses are not deterministic. And for this particular SoC, it is possible to map the memory mapped IO at a different address range. It is the bootloader which determines this. There are some Marvell uboot's which use 0xd0000000, not 0xf0000000. So strictly speaking, f1072004 is not stable, it is not hard wired in the silicon. Andrew