I have an USB stick that will output a lot of lines in syslog:
keel: [------.------] usb 2-3: reset high-speed USB device number 2 using ehci-pci
I have found that there is a file called avoid_reset_quirk in:
/sys/devices/pci0000:00/0000:00:13.2/usb2/2-3
and when I put 1 into it, the logging will stop.
Two questions:
- should this be fixed by default by someone?
- should I use a udev rule or something similar to "fix" this putting 1 into the file? (And how do I do that?)
I am confused though:
Bus 002 Device 003: ID 0951:1665 Kingston Technology Digital DataTraveler SE9 64GB
Bus 002 Device 002: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader
The first seems to belong to:
P: /devices/pci0000:00/0000:00:13.2/usb2/2-4
N: bus/usb/002/003
So device 2-3 is at 2-4.
And device 2-2 is at 2-3.
And I changed the one at 2-3.
Which would mean the reset-quirk results from the Flash Card Reader, not the USB stick.
At which point you get:
Code:
looking at device '/devices/pci0000:00/0000:00:13.2/usb2/2-3':
KERNEL=="2-3"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{authorized}=="1"
ATTR{avoid_reset_quirk}=="1"
ATTR{bConfigurationValue}=="1"
ATTR{bDeviceClass}=="00"
ATTR{bDeviceProtocol}=="00"
ATTR{bDeviceSubClass}=="00"
ATTR{bMaxPacketSize0}=="64"
ATTR{bMaxPower}=="500mA"
ATTR{bNumConfigurations}=="1"
ATTR{bNumInterfaces}==" 1"
ATTR{bcdDevice}=="9451"
ATTR{bmAttributes}=="80"
ATTR{busnum}=="2"
ATTR{configuration}==""
ATTR{devnum}=="2"
ATTR{devpath}=="3"
ATTR{idProduct}=="0723"
ATTR{idVendor}=="05e3"
ATTR{ltm_capable}=="no"
ATTR{manufacturer}=="Generic "
ATTR{maxchild}=="0"
ATTR{product}=="USB Storage"
ATTR{quirks}=="0x10"
ATTR{removable}=="unknown"
ATTR{speed}=="480"
ATTR{urbnum}=="3669463"
ATTR{version}==" 2.00"
Code:
P: /devices/pci0000:00/0000:00:13.2/usb2/2-3 N: bus/usb/002/002 E: BUSNUM=002 E: DEVNAME=/dev/bus/usb/002/002 E: DEVNUM=002 E: DEVPATH=/devices/pci0000:00/0000:00:13.2/usb2/2-3 E: DEVTYPE=usb_device E: DRIVER=usb E: ID_BUS=usb E: ID_MODEL=USB_Storage E: ID_MODEL_ENC=USBx20Storage E: ID_MODEL_FROM_DATABASE=GL827L SD/MMC/MS Flash Card Reader E: ID_MODEL_ID=0723 E: ID_REVISION=9451 E: ID_SERIAL=Generic_USB_Storage E: ID_USB_INTERFACES=:080650: E: ID_VENDOR=Generic E: ID_VENDOR_ENC=Genericx20 E: ID_VENDOR_FROM_DATABASE=Genesys Logic, Inc. E: ID_VENDOR_ID=05e3 E: MAJOR=189 E: MINOR=129 E: PRODUCT=5e3/723/9451 E: SUBSYSTEM=usb E: TYPE=0/0/0 E: USEC_INITIALIZED=2928615
Code:
udevadm info -a --name=bus/usb/002/002 udevadm info --name=bus/usb/002/002
برچسب:
نویسنده: استخدام کار