diff mbox series

[meta-arago,master] udev-aragoconf: remove legacy usb rules

Message ID 20251119200836.362773-2-rs@ti.com
State New
Headers show
Series [meta-arago,master] udev-aragoconf: remove legacy usb rules | expand

Commit Message

Randolph Sapp Nov. 19, 2025, 8:08 p.m. UTC
From: Randolph Sapp <rs@ti.com>

These rules do not match the current structure of the USB DEVPATH and
are not actually fired.

They were initially cited as being help scripts, but I think users
should attempt to gracefully bring down the gadget interface on their
own instead of relying on a script that will attempt to reload it post
mode change.

Signed-off-by: Randolph Sapp <rs@ti.com>
---

Master version of: https://lists.yoctoproject.org/g/meta-arago/message/16788

 .../recipes-core/udev/udev-aragoconf/50-arago.rules         | 2 --
 .../recipes-core/udev/udev-aragoconf/usb1-rules.sh          | 3 ---
 .../recipes-core/udev/udev-aragoconf/usb2-rules.sh          | 3 ---
 meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb     | 6 ------
 4 files changed, 14 deletions(-)
 delete mode 100755 meta-arago-distro/recipes-core/udev/udev-aragoconf/usb1-rules.sh
 delete mode 100755 meta-arago-distro/recipes-core/udev/udev-aragoconf/usb2-rules.sh

Comments

PRC Automation Nov. 19, 2025, 8:42 p.m. UTC | #1
meta-arago / na / 20251119200836.362773-2-rs

PRC Results: PASS

=========================================================
  check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-arago][master][PATCH] udev-aragoconf: remove legacy usb rules
    WARN: Commit message should not include directory path to recipe: udev-aragoconf: remove legacy usb rules.
              udev-aragoconf: (COMMIT-MESSAGE-3)
        patch
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887



=========================================================
  apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH] udev-aragoconf: remove legacy usb rules
- Submitter: From: <rs@ti.com>
From: Randolph Sapp <rs@ti.com>
- Date: Date: Wed, 19 Nov 2025 14:08:37 -0600
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: d8faeeff0c68ec6c93fc13f450ce1f07c8169990

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-wip
- Commit Author: sadik <s-sadik@ti.com>
- Commit Subject: coremark: add Coremark CPU benchmark
- Commit SHA: 174dd3e5fc6920bfcf7ce267ff359ad2c302e469

Patches
----------------------------------------
All patches applied



=========================================================
  check-yocto-repo: PASS
=========================================================
master
=====================
PASS



=========================================================
  yocto-check-layers: PASS
=========================================================
master - PASS
=====================
All checks passed
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-core/udev/udev-aragoconf/50-arago.rules b/meta-arago-distro/recipes-core/udev/udev-aragoconf/50-arago.rules
index 4829ca14..3ff14eb0 100644
--- a/meta-arago-distro/recipes-core/udev/udev-aragoconf/50-arago.rules
+++ b/meta-arago-distro/recipes-core/udev/udev-aragoconf/50-arago.rules
@@ -22,5 +22,3 @@  SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLI
 # Auto-mount any SD cards
 ACTION=="add", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
 ACTION=="remove", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
-ACTION=="add", DEVPATH=="/devices/44000000\.ocp/48880000\.omap_dwc3_1/48890000\.usb/udc*", RUN+="/etc/udev/scripts/usb1-rules.sh"
-ACTION=="add", DEVPATH=="/devices/44000000\.ocp/488c0000\.omap_dwc3_2/488d0000\.usb/udc*", RUN+="/etc/udev/scripts/usb2-rules.sh"
diff --git a/meta-arago-distro/recipes-core/udev/udev-aragoconf/usb1-rules.sh b/meta-arago-distro/recipes-core/udev/udev-aragoconf/usb1-rules.sh
deleted file mode 100755
index 51dfd71a..00000000
--- a/meta-arago-distro/recipes-core/udev/udev-aragoconf/usb1-rules.sh
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!bin/sh
-/sbin/modprobe g_ncm -r
-/sbin/modprobe g_ncm
diff --git a/meta-arago-distro/recipes-core/udev/udev-aragoconf/usb2-rules.sh b/meta-arago-distro/recipes-core/udev/udev-aragoconf/usb2-rules.sh
deleted file mode 100755
index f00565e4..00000000
--- a/meta-arago-distro/recipes-core/udev/udev-aragoconf/usb2-rules.sh
+++ /dev/null
@@ -1,3 +0,0 @@ 
-#!bin/sh
-/sbin/modprobe g_zero -r
-/sbin/modprobe g_zero
diff --git a/meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb b/meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb
index e96e9d3e..e23688b1 100644
--- a/meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb
+++ b/meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb
@@ -5,8 +5,6 @@  LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
 inherit bin_package
 
 SRC_URI = " \
-    file://usb1-rules.sh \
-    file://usb2-rules.sh \
     file://50-arago.rules \
     file://37-can-j7.rules \
     file://37-can-am62.rules \
@@ -17,10 +15,6 @@  SRC_URI = " \
 S = "${UNPACKDIR}"
 
 do_install() {
-    install -d ${D}${sysconfdir}/udev/scripts
-    install -m 0755 ${UNPACKDIR}/usb1-rules.sh ${D}${sysconfdir}/udev/scripts/usb1-rules.sh
-    install -m 0755 ${UNPACKDIR}/usb2-rules.sh ${D}${sysconfdir}/udev/scripts/usb2-rules.sh
-
     install -d ${D}${libdir}/udev/rules.d
     install -m 0644 ${UNPACKDIR}/50-arago.rules ${D}${libdir}/udev/rules.d/
     install -m 0644 ${UNPACKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/