Tag: The move is placed with here drive for connection record nconf
Mainly from DRIVER/USB/CORE/SYSFS.C:
1.Bconfigurationvalue
Rw,w called Usb_set_configuration () to set the configuration in real time. Depending on the USB specification (for example, section 9.1.1.5), the configuration values must be a non-0 value and a value of zero indicates that the device is in an unmanaged state. However, some devices incorrectly use 0 as a
One of the values. To help manage such devices, this function will accept @configuration =-1, indicating that the device should be in an not configured state.
Unauthorized devices (dev->authorized = = 0) will only be set to Not configured mode.
# echo 0 > Bconfigurationvalue device file disappears at this time
# echo 1 > Bconfigurationvalue a similar USB insert recognition process from the new
Configure this file can realize the USB flash drive simulation Plug and unplug!!
/sys/devices/platform/soc/ee080100.usb/usb1/1-1/bconfigurationvalue
Configure this file to achieve Android Carlife analog Plug and unplug!!
/sys/devices/platform/soc/ee080100.usb/usb1/(1-1/) bconfigurationvalue
2.# Cat./1-1/power/connected_duration
Records the events that persist from the USB device connection to the present
3.# Cat./1-1/power/active_duration
Duration of Active state
4.# Cat./1-1/power/ level
RW, set whether Autosuspend mode is on or auto
5.Authorized
RW, the same can play the effect of analog U disk Plug and pull
Move the USB device to a very basic state where interfaces was disabled and the device is in fact unconfigured and UNUSABL E.
6.Remove
W, safe removal of the device.
# echo 1 > Remove
UDEV [4921.100082] remove/devices/platform/soc/ee080100.usb/usb1/1-0:1.0 (USB)
Remove the Root-hub, and then the USB interface is not recognized, do not receive recovery, currently only power down. To remove a USB flash drive, you need to re-plug it to recognize it.
7.Modalias
R, this file only has an interface
usb1/1-1# Cat./1-1:1.0/modalias
Eg:u PLATE: usb:v0951p1666d0001dc00dsc00dp00ic08isc06ip50in00
Split as follows: v0951 p1666 d0001 dc00 dsc00 dp00 ic08 isc06 ip50 in00
Staticssize_t Modalias_show (structDevice *dev,structDevice_attribute *attr,Char*buf) { structUsb_interface *intf; structUsb_device *Udev; structUsb_host_interface *Alt; intf=to_usb_interface (Dev); Udev=Interface_to_usbdev (intf); Alt= Access_once (intf->cur_altsetting); returnsprintf (BUF,"usb:v%04xp%04xd%04xdc%02xdsc%02xdp%02xic%02xisc%02xip%02xin%02x\n", Le16_to_cpu (Udev-Descriptor.idvendor), Le16_to_cpu (Udev-descriptor.idproduct), Le16_to_cpu (Udev-descriptor.bcddevice), Udev-Descriptor.bdeviceclass, Udev-Descriptor.bdevicesubclass, Udev-Descriptor.bdeviceprotocol, Alt-Desc.binterfaceclass, Alt-Desc.binterfacesubclass, Alt-Desc.binterfaceprotocol, Alt-desc.binterfacenumber);} New USB device found, Idvendor=0951, idproduct=1666
USB-related SYSFS files