Sean Anderson
65c2ad985a
udev: net_id: Use devicetree aliases when available
...
Devicetree firmware contains an "aliases" node, containing various
aliases for devices described by the firmware. For ethernet devices,
these are named "ethernet0", "ethernet1", etc. They provide a convenient
means of numbering ethernet devices, especially on systems with no other
stable number other than the address. In particular, U-Boot already uses
these aliases to name its ethernet devices.
Previously, there have been attempts (such as [1]) to add support for
these aliases to Linux. However, these patches have been rejected
because it is the maintainers' view that naming policy be left to
userspace. Well, systemd is userspace, so here we are.
In terms of implementation, apparently there can be multiple device
trees at once. I have decided to dodge this problem for now, and just
use /proc/device-tree. If it is desired to support multiple device trees
later, then the scheme can be modified to include the device tree's
index. For example, /sys/firmware/devicetree/base2/aliases/ethernet3
might be named enb2d3.
For the moment we only support "ethernetX" aliases. Future patches might
want to also handle "canX" and "wifiX".
It is common on boards with only one ethernet device to use an alias of
just "ethernet". In this case, the index is an implicit 0. In case the
author of the firmware made a mistake, we check to ensure that aliases
of "ethernet" and "ethernet0" do not both exist.
[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/1399390594-1409-1-git-send-email-boris.brezillon@free-electrons.com/
Closes : #17625
2022-08-12 11:15:16 +02:00
..
2022-08-02 10:28:49 +02:00
2021-10-01 17:27:34 +01:00
2021-12-12 21:13:50 +01:00
2021-10-01 17:27:34 +01:00
2022-07-04 19:56:53 +02:00
2022-07-08 16:58:51 +01:00
2022-01-07 17:37:37 +01:00
2022-06-28 13:10:05 +02:00
2022-02-28 09:52:17 +00:00
2022-02-28 09:52:17 +00:00
2021-10-01 17:27:34 +01:00
2022-01-23 13:29:28 +09:00
2022-02-08 11:55:13 +01:00
2021-10-07 22:13:12 +02:00
2022-08-08 17:03:28 +01:00
2022-05-13 02:34:07 +09:00
2022-06-28 16:05:31 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-06-29 10:44:18 +02:00
2021-07-12 12:09:20 +01:00
2020-11-09 13:23:58 +09:00
2022-01-05 15:19:13 +01:00
2021-10-01 17:27:34 +01:00
2022-06-28 13:10:05 +02:00
2021-10-04 11:05:22 +02:00
2022-02-15 14:58:03 +01:00
2022-05-26 14:29:50 +02:00
2020-11-09 13:23:58 +09:00
2020-12-16 10:54:57 +01:00
2022-06-28 13:10:05 +02:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2020-11-09 13:23:58 +09:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2022-02-23 08:56:03 +01:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2020-11-09 13:23:58 +09:00
2021-06-14 11:16:38 +02:00
2022-08-05 16:13:07 +01:00
2021-05-10 23:10:44 +02:00
2022-07-04 19:56:53 +02:00
2022-07-20 13:15:37 +09:00
2020-11-09 13:23:58 +09:00
2022-04-12 12:28:24 +02:00
2022-08-04 10:03:48 +02:00
2022-01-07 17:37:37 +01:00
2021-03-01 13:40:52 +01:00
2020-12-21 12:39:18 +00:00
2021-05-25 17:42:34 +02:00
2022-04-05 16:10:26 +02:00
2022-03-23 12:25:01 +01:00
2022-06-28 13:10:05 +02:00
2022-07-27 08:41:03 -07:00
2021-10-01 17:27:34 +01:00
2022-05-04 16:11:34 +02:00
2020-11-09 13:23:58 +09:00
2022-05-04 14:44:13 +01:00
2021-04-21 21:00:11 +09:00
2021-08-18 13:36:14 +02:00
2021-05-26 12:45:20 +01:00
2022-02-23 08:56:03 +01:00
2021-07-27 09:43:29 +02:00
2020-11-09 13:23:58 +09:00
2021-06-30 03:51:05 -07:00
2022-05-05 11:48:22 +02:00
2022-05-05 11:48:22 +02:00
2022-05-05 11:48:22 +02:00
2022-05-05 11:48:22 +02:00
2020-11-09 13:23:58 +09:00
2022-06-22 22:34:29 +02:00
2022-07-27 08:41:03 -07:00
2022-05-05 11:48:22 +02:00
2022-08-11 09:53:55 +02:00
2022-05-05 11:48:22 +02:00
2022-05-05 11:48:22 +02:00
2022-08-08 15:32:55 +02:00
2022-05-05 11:48:22 +02:00
2022-07-20 13:15:37 +09:00
2022-07-13 14:00:54 +01:00
2022-06-28 13:10:05 +02:00
2021-10-01 17:27:34 +01:00
2022-01-24 00:21:15 +09:00
2021-10-01 17:27:34 +01:00
2022-07-04 19:56:53 +02:00
2021-11-11 14:36:50 +01:00
2022-07-07 13:02:06 +02:00
2021-12-20 10:56:14 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-03-07 02:54:33 +09:00
2021-06-15 11:29:44 +01:00
2020-11-09 13:23:58 +09:00
2022-03-07 15:32:22 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-17 11:13:10 +01:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2022-07-04 19:56:53 +02:00
2020-11-09 13:23:58 +09:00
2020-12-16 17:21:48 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-11-23 08:01:22 +01:00
2022-05-26 14:29:50 +02:00
2022-06-30 10:35:27 +02:00
2020-11-09 13:23:58 +09:00
2021-12-06 11:21:48 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2021-04-08 14:59:10 +02:00
2020-11-09 13:23:58 +09:00
2022-06-28 13:10:05 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 13:10:05 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-06-30 10:55:39 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2022-04-12 15:33:05 +02:00
2020-11-30 12:21:20 +01:00
2020-11-09 13:23:58 +09:00
2022-01-11 10:47:31 +00:00
2022-06-30 10:35:27 +02:00
2022-01-11 10:47:31 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-04-12 12:35:44 +02:00
2020-11-12 17:10:36 +09:00
2021-01-04 11:01:17 +00:00
2021-03-02 12:18:53 +01:00
2020-11-12 17:10:32 +09:00
2021-02-20 13:44:02 +09:00
2021-03-07 02:54:33 +09:00
2021-02-21 20:26:51 +01:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-01-12 16:05:59 +01:00
2020-11-09 13:23:58 +09:00
2021-06-30 23:33:00 +09:00
2020-11-09 13:23:58 +09:00
2021-07-10 13:19:50 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-04-12 15:33:05 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2021-01-04 11:01:17 +00:00
2022-04-04 18:25:18 +02:00
2022-04-12 15:33:05 +02:00
2022-01-05 15:19:13 +01:00
2022-01-05 15:19:13 +01:00
2022-01-06 22:20:11 +09:00
2022-01-05 15:19:13 +01:00
2022-01-05 15:19:13 +01:00
2022-01-05 15:19:13 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-06-30 10:35:27 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2021-11-30 12:30:07 +00:00
2020-11-12 17:10:36 +09:00
2022-04-12 15:33:05 +02:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-12 17:10:32 +09:00
2022-05-27 09:40:54 -04:00
2021-06-15 20:58:56 +02:00
2021-08-20 11:09:48 +02:00
2022-02-14 15:13:23 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2021-02-16 22:16:17 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2021-12-17 11:45:55 +01:00
2020-11-09 13:23:58 +09:00
2022-03-11 11:32:20 +01:00
2021-02-25 05:54:11 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-11-30 13:54:27 +01:00
2021-04-19 12:20:29 -04:00
2020-11-09 13:23:58 +09:00
2022-07-14 19:25:15 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2022-06-28 13:10:05 +02:00
2021-12-06 12:39:03 +01:00
2020-11-12 17:10:36 +09:00
2021-10-01 17:27:34 +01:00
2021-10-01 17:27:34 +01:00
2020-11-09 13:23:58 +09:00
2021-03-12 10:58:16 +01:00
2020-11-09 13:23:58 +09:00
2022-04-12 12:35:44 +02:00
2020-12-01 15:15:39 +01:00
2020-11-09 13:23:58 +09:00
2022-06-30 10:35:27 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-10-01 17:27:34 +01:00
2022-05-26 14:29:50 +02:00
2021-02-19 14:05:42 +09:00
2021-02-17 21:09:14 +01:00
2022-04-11 13:51:28 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-07-18 13:54:51 +01:00
2022-08-03 18:51:45 +02:00
2022-05-19 09:07:34 +02:00
2020-11-09 13:23:58 +09:00
2022-06-28 13:10:05 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-12-14 00:08:55 +00:00
2021-12-14 00:08:55 +00:00
2020-11-09 13:23:58 +09:00
2021-12-14 00:08:55 +00:00
2022-08-04 10:03:48 +02:00
2020-11-09 13:23:58 +09:00
2021-10-07 11:50:52 +02:00
2020-11-09 13:23:58 +09:00
2022-01-12 16:05:59 +01:00
2022-07-19 10:41:13 +01:00
2022-08-02 10:28:49 +02:00
2020-12-17 20:02:32 +01:00
2021-05-07 21:36:27 +01:00
2022-03-17 19:02:10 +01:00
2020-11-09 13:23:58 +09:00
2022-02-16 21:15:14 +09:00
2022-08-03 20:55:32 +02:00
2021-05-19 10:25:26 +09:00
2020-11-09 13:23:58 +09:00
2021-07-27 09:43:29 +02:00
2021-11-10 11:58:12 +01:00
2022-07-15 15:48:05 +02:00
2022-07-04 19:56:53 +02:00
2021-08-31 13:52:52 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-07-04 19:56:53 +02:00
2020-11-09 13:23:58 +09:00
2020-12-16 10:54:57 +01:00
2020-11-09 13:23:58 +09:00
2021-09-10 13:39:16 +02:00
2021-04-30 16:55:50 +09:00
2021-03-01 13:40:52 +01:00
2020-11-09 13:23:58 +09:00
2022-07-19 10:41:13 +01:00
2022-07-04 19:56:53 +02:00
2022-01-12 16:05:59 +01:00
2022-01-12 16:05:59 +01:00
2022-02-09 20:34:29 +00:00
2021-12-17 11:45:55 +01:00
2020-11-09 13:23:58 +09:00
2022-01-12 16:05:59 +01:00
2020-11-09 13:23:58 +09:00
2021-10-13 02:21:44 +09:00
2022-05-21 14:28:03 +02:00
2021-11-16 13:55:50 +01:00
2022-08-02 10:28:49 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-12-16 01:55:37 +09:00
2022-01-28 12:52:52 +00:00
2020-11-09 13:23:58 +09:00
2021-12-12 21:13:50 +01:00
2022-07-12 13:14:11 +02:00
2022-04-28 15:46:44 +02:00
2020-11-09 13:23:58 +09:00
2021-07-27 09:43:29 +02:00
2021-01-29 08:42:39 +01:00
2020-11-09 13:23:58 +09:00
2022-03-23 12:25:01 +01:00
2021-03-12 11:22:58 +01:00
2020-11-09 13:23:58 +09:00
2021-04-19 23:16:02 +02:00
2022-07-23 11:18:23 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-04-12 11:02:16 +02:00
2022-08-02 02:43:38 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2022-02-04 17:43:44 +00:00
2022-08-02 10:28:49 +02:00
2021-07-07 11:08:21 +02:00
2022-07-25 10:15:43 +02:00
2022-07-22 15:09:21 +02:00
2020-11-09 13:23:58 +09:00
2022-08-05 15:55:44 +02:00
2022-03-21 20:06:13 +00:00
2022-07-16 00:47:22 +09:00
2021-09-27 09:19:02 +02:00
2020-12-28 10:52:33 +01:00
2020-11-09 13:23:58 +09:00
2021-08-09 21:06:28 +02:00
2022-07-20 23:53:22 +02:00
2021-05-31 19:22:51 +02:00
2020-11-09 13:23:58 +09:00
2021-12-16 09:56:13 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-07-27 09:43:29 +02:00
2020-11-09 13:23:58 +09:00
2022-03-30 23:45:26 +02:00
2022-07-04 19:56:53 +02:00
2020-11-09 13:23:58 +09:00
2022-01-14 16:20:45 +09:00
2022-05-26 14:29:50 +02:00
2021-09-29 22:18:38 +01:00
2021-06-29 10:44:18 +02:00
2021-05-19 10:25:26 +09:00
2022-07-30 13:48:36 +01:00
2022-07-15 13:10:39 +02:00
2022-03-04 16:44:02 +01:00
2020-11-09 13:23:58 +09:00
2022-07-15 10:53:45 +02:00
2022-08-03 23:17:25 +01:00
2022-08-12 11:15:16 +02:00
2022-07-19 10:41:13 +01:00
2022-07-22 21:28:20 +09:00
2022-02-23 08:56:03 +01:00
2020-12-31 11:43:44 +00:00
2022-02-23 08:56:03 +01:00
2021-07-27 09:43:29 +02:00
2022-08-11 14:25:58 +02:00
2022-05-21 14:28:03 +02:00
2022-07-04 19:56:53 +02:00
2022-05-21 14:28:03 +02:00
2022-07-04 19:56:53 +02:00
2022-07-05 22:12:08 +02:00
2021-09-27 09:19:02 +02:00
2022-06-28 13:10:05 +02:00
2021-09-27 09:19:02 +02:00
2020-11-09 13:23:58 +09:00
2021-09-27 09:19:02 +02:00
2022-07-15 10:53:45 +02:00
2022-07-15 08:31:34 +09:00
2022-07-22 20:00:08 +01:00
2021-03-31 10:46:22 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-09-24 18:35:42 +01:00
2021-08-09 21:06:28 +02:00
2022-07-20 23:53:22 +02:00
2021-10-01 17:27:34 +01:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-04-12 13:03:26 +02:00
2022-03-13 18:30:57 +00:00
2022-07-22 20:04:14 +09:00
2020-12-16 17:21:48 +01:00
2020-11-09 13:23:58 +09:00
2022-02-23 08:56:03 +01:00
2022-01-07 17:37:37 +01:00
2022-03-30 23:45:26 +02:00
2022-05-11 19:12:24 +01:00
2022-06-28 13:10:05 +02:00
2021-10-01 17:27:34 +01:00