July 19, 20232 yr As the title says, I'm looking to disable a PCI slot or USB via software because of log pollution. Version: 6.12.3 The log pollution is as follows: kernel: usb usb8-port1: Cannot enable. Maybe the USB cable is bad? Due to the inability to test/remove hardware issues at the present time, I will do whatever necessary via software to stop the messages. Including disabling the individual PCI port altogether (since USB control I've seen is likely impossible). Below is relative hardware info. IOMMU group 23: [1033:0194] 09:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) Bus 007 Device 001 Port 7-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001 Port 8-0 ID 1d6b:0003 Linux Foundation 3.0 root hub Thanks for the help!
July 25, 20232 yr Author Solution To help others that may need it, disabling per USB is not allowed since a kernel came out some time ago disabling that. However one can disable the PCI slot altogether by using the following command: echo 1 > /sys/bus/pci/devices/(Your PCI device here)/remove Use "lspci -vv" To locate your PCI device, mine above was "0000:00:09.0"
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.