ac3a84
From 35ec16bfef92d072edacad892fc138b3595ee69b Mon Sep 17 00:00:00 2001
ac3a84
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ac3a84
Date: Thu, 3 Nov 2022 09:43:14 +0900
ac3a84
Subject: [PATCH] udev: drop redundant call of usb_id and assignment of
ac3a84
 ID_USB_INTERFACE_NUM
ac3a84
ac3a84
The usb_id builtin command is already called in the above, and the
ac3a84
command sets the ID_USB_INTERFACE_NUM property.
ac3a84
ac3a84
(cherry picked from commit b2e53f5a0f12db65c88404477fedee5c57d201ba)
ac3a84
ac3a84
Related #2138081
ac3a84
---
ac3a84
 rules.d/60-serial.rules | 2 --
ac3a84
 1 file changed, 2 deletions(-)
ac3a84
ac3a84
diff --git a/rules.d/60-serial.rules b/rules.d/60-serial.rules
ac3a84
index c133f26109..2c1488e930 100644
ac3a84
--- a/rules.d/60-serial.rules
ac3a84
+++ b/rules.d/60-serial.rules
ac3a84
@@ -17,9 +17,7 @@ IMPORT{builtin}="path_id"
ac3a84
 ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="", SYMLINK+="serial/by-path/$env{ID_PATH}"
ac3a84
 ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{.ID_PORT}"
ac3a84
 
ac3a84
-IMPORT{builtin}="usb_id"
ac3a84
 ENV{ID_SERIAL}=="", GOTO="serial_end"
ac3a84
-SUBSYSTEMS=="usb", ENV{ID_USB_INTERFACE_NUM}="$attr{bInterfaceNumber}"
ac3a84
 ENV{ID_USB_INTERFACE_NUM}=="", GOTO="serial_end"
ac3a84
 ENV{.ID_PORT}=="", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}"
ac3a84
 ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}-port$env{.ID_PORT}"