Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3414203pxb; Mon, 4 Oct 2021 01:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqMzyd+MOR+QJGmYssOiJzwzzRttrQ9TntcxOoV2EzT2ECbzJoEi9RRBoi8pE5MsK2AAFN X-Received: by 2002:aa7:df89:: with SMTP id b9mr13149475edy.137.1633336925684; Mon, 04 Oct 2021 01:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633336925; cv=none; d=google.com; s=arc-20160816; b=qRWKRvImLBFVnaP5Be3/F0b/0t6G74JCloj4NVxaavM8RtNlHoDYHznjiqqqWuMUhq +W0DJTKE424rrQ7LcuoEEJVMTPmGTMcu6+JoSU7H8KUWwk3rfOP8RdNbCPVDGBw5FrOE DdpmhSXInPvR6XVDveiWO1geqziq/2/UISU17ohk/9VzXYjykafYzZKimczUKw2Y/sXR RK1ZRhXcLumdoipEkTWHzuD0ZIKg/O4fCnPrRLfI4SK3xJKzfx/B7ERkfqusvgW56u8o V/WFGnzRyAqA4Cx20iQb2psSD+SPP4zHdIlOiPWaCIS51ttMmFPCvegwPOBXMOFYlFnZ 6Anw== 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=rD0CEf1j4PEceiR8D9NksCV8MXYvw0oggbfNyl4w2wk=; b=x+QEwk4v1nx8x4efX79Y2FKcfkWHCkksKcykDxNBpbnPyz1GQfsLMuI5Z/ATB8HTfP CD54FW3fWdRl8cyZXc8oX2Mg3kBvkW04LehEQl6VDlyBPH2ipzuVAtppWSrznoJbjqR8 UWQFy6k7x+I8uoZer1XCVKP7vxmub+67bSYW+FiUAmrm6LDvvpocx23PnJGIoysc1HFe C9fJxvehtUCgUY7/mbwG8hpt5cdEl6sg48YHGLj4jK3AIgFnh8gKUDMlm5l52IsDTjdN Wamkw6ieR8hPJvDhCafmL0AbK8l0y62ifpc2S8IogEgPsqLBlPXXpfDTCOtWjHy6JiNE gqlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xu8068la; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si3015526edk.276.2021.10.04.01.41.42; Mon, 04 Oct 2021 01:42:05 -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=@linuxfoundation.org header.s=korg header.b=Xu8068la; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231444AbhJDIcT (ORCPT + 99 others); Mon, 4 Oct 2021 04:32:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:42406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbhJDIcS (ORCPT ); Mon, 4 Oct 2021 04:32:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 639EC6124D; Mon, 4 Oct 2021 08:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633336228; bh=AGIgwoQNBBt0ACT2Oa703+VXilss9u/HArqWzTXe+jM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xu8068laLv4h09QdbkgWqg1+Hsrt2pB2Y69WPnlP903fWNJN40bLPIgUB8fTcTLUC x4BGct5hBdnnFcBypf8x7utNBSs6iaKRodKX5yHA39OhoKUatmYRx9HNOrxSXBJi2M GnVRK9NTnZXWHkEyIDE4zSMdlENcN2Uc92Wr0amA= Date: Mon, 4 Oct 2021 10:30:25 +0200 From: Greg Kroah-Hartman To: Pavel Machek Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Andrew Lunn , "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: <20211004073841.GA20163@amd> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.