Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3346784pxb; Sun, 3 Oct 2021 23:39:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdSlrSnpcJdgKQuTjCYpa+eF0Bx5ZnCiUnPXzTchtazU2gxAuwztFRb2yWvTzSRkUSIJnX X-Received: by 2002:a17:90b:3909:: with SMTP id ob9mr5322332pjb.244.1633329592335; Sun, 03 Oct 2021 23:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633329592; cv=none; d=google.com; s=arc-20160816; b=sYFU6nhRMNz1VQ499xdxVfmIniK7A8RHzCUHGKtE4UBpblYZaAM+opevaXybmkf/lP 35p1kafDYWK4bm5TLHyZEDVnK7blfdN0D/w0qobstDqg7Rt2RAGaPv6Nf0n8qT8qls3v TeRFAmjJ2dqmfwjDuZ7/GjPmCM7WB5zeR4ZtsLRtuJvDzpUKICeY4ef4nLIsjwGRZJ+B qYDDEYwjQgiuYWArBccYxywv+GQ3yguYV0Z/5SkPZiJIFJGw4+WHE8GvKL97uyUM3alF a8kx1aZFCqWfkYLOOYjqds50f4Is7kZW8Vb3Fwu9/HnbrcVIoavABfXO7a5pP4spdb3Y 1I5Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4raOTOBY61ZhTWy4a8YlpxiyhsbNx4COvDepMPTgqCM=; b=Qux/6ze8u56co+jL6PRCa92tdRmrCALawvgKzB1XLibdxv3Y/Nvm+KqJGSWveyxJDW JFaTwnyFXUbl7q+BkIrHaSIjVp/UNt6wSR7wbcEUyq+WmDocHslURaEY+RJl8J/PSWqa j1qASjuBxCBWaiF6Y3wu0pKf4S17/eyeaFus0MtXZAjJnIn6YFkjX1MMysQiCY3TNZJ0 ky+U90QrLmAJIlOncYnbEiV9QjXNjYmeS4lm/dKyo/DK0e3dYXj31uGvFSj6/1PbGCaJ DDlpEiWFicFakk6DdMlaZIbWrIPUAIvS71EXtJwggetSqdIo8LkLU24ujD58uvqFnXBM Lfkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RY8bUxVw; 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 m8si3756402pll.49.2021.10.03.23.39.36; Sun, 03 Oct 2021 23:39:52 -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=RY8bUxVw; 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 S232789AbhJDGja (ORCPT + 99 others); Mon, 4 Oct 2021 02:39:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:59132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232536AbhJDGja (ORCPT ); Mon, 4 Oct 2021 02:39:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E126B6120F; Mon, 4 Oct 2021 06:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633329461; bh=nUn5+lxliX8C9iNQcew76Wqvp8zRRWbU1gAS2vMx6Tw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RY8bUxVwd24wkuMiaf5/1WwFCQALhuUE8dk7ypc+K2sBhVV7IdS1YCq+drJTSSbDY HRj1RzMqaXdRQcbqv0PhJI5L67gtuzDjpx9NyDv0bBjeaSZGBXODwE4bsUftvAV4pl qvl3vWo4ZOYQ+LEs3CEzf8PQDiHYBV3uJKb38kio= Date: Mon, 4 Oct 2021 08:37:37 +0200 From: Greg Kroah-Hartman To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Andrew Lunn , Pavel Machek , "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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211003225338.76092ec3@thinkpad> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 03, 2021 at 10:53:38PM +0200, Marek Beh?n wrote: > Hello Greg, > > could you give your opinion on this discussion? What discussion? Top posting ruins that :( > 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? Numbering of devices (where a dynamic value is part of a name, like the "42" in "usb42"), is never guaranteed to be stable, but the non-number part of the name (like "usb" is in "usb42") is stable, as that is what you have properly documented in the Documentation/ABI/ files defining the bus and class devices, right? The very reason we export all of this information to userspace is so that userspace can figure it all out in ways it wants to, if it wants to, and no naming scheme that has to be static and deterministic is forced into the kernel, where it does NOT belong. That is 1/2 of the reason why we created the whole "unified device/driver model" in the kernel in the first place all those years ago. Does that help? I can't figure out what the "problem" is here... thanks, greg k-h