<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19760</bug_id>
          
          <creation_ts>2009-04-24 14:43:05 +0400</creation_ts>
          <short_desc>отключить: CONFIG_USB_DEVICE_CLASS=y</short_desc>
          <delta_ts>2010-07-05 17:23:05 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>kernel-image-std-def</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andriy Stepanov (stanv)">stanv</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>kernelbot</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90049</commentid>
    <comment_count>0</comment_count>
    <who name="Andriy Stepanov (stanv)">stanv</who>
    <bug_when>2009-04-24 14:43:05 +0400</bug_when>
    <thetext>При подключении устройства (token) к USB
создается /dev/bus/usb/002/054 но его нельзя открыть сразу, а нужно подождать

в логах сообщение: Unable to open USB device /dev/bus/usb/002/054: No such file or directory

Хотя файл устройства существует. test -e говорит что файл есть.

26417 open(&quot;/dev/bus/usb/002/061&quot;, O_RDWR) = -1 ENOENT (No such file or directory)


[17:44:25] &lt;vsu&gt; два события на один major:minor
[17:44:44] &lt;vsu&gt; второе из них в принципе лишнее
[17:45:24] &lt;vsu&gt; происходит из-за CONFIG_USB_DEVICE_CLASS=y
config USB_DEVICE_CLASS
	bool &quot;USB device class-devices (DEPRECATED)&quot;
	depends on USB
	default y
	---help---
	  Userspace access to USB devices is granted by device-nodes exported
	  directly from the usbdev in sysfs. Old versions of the driver
	  core and udev needed additional class devices to export device nodes.

	  These additional devices are difficult to handle in userspace, if
	  information about USB interfaces must be available. One device
	  contains the device node, the other device contains the interface
	  data. Both devices are at the same level in sysfs (siblings) and one
	  can&apos;t access the other. The device node created directly by the
	  usb device is the parent device of the interface and therefore
	  easily accessible from the interface event.

	  This option provides backward compatibility for libusb device
	  nodes (lsusb) when usbfs is not used, and the following udev rule
	  doesn&apos;t exist:
	    SUBSYSTEM==&quot;usb&quot;, ACTION==&quot;add&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, \
	    NAME=&quot;bus/usb/$env{BUSNUM}/$env{DEVNUM}&quot;, MODE=&quot;0644&quot;


А еще, предпологается что за этой опции не срабатывают правила HAL
&lt;match key=&quot;info.subsystem&quot; string=&quot;usb&quot;&gt; 
в нашем дистре оно работает только как:
&lt;match key=&quot;info.subsystem&quot; string=&quot;usb_device&quot;&gt; 

И имена всем переменным необходимо менять в обработчике правил:

PRODUCT=&quot;printf %x/%x/%x $HAL_PROP_USB_VENDOR_ID $HAL_PROP_USB_PRODUCT_ID \ $HAL_PROP_USB_DEVICE_REVISION_BCD&quot;

я должен заменить на:

PRODUCT=&quot;printf %x/%x/%x $HAL_PROP_USB_DEVICE_VENDOR_ID $HAL_PROP_USB_DEVICE_PRODUCT_ID \ $HAL_PROP_USB_DEVICE_DEVICE_REVISION_BCD&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90050</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2009-04-24 14:45:26 +0400</bug_when>
    <thetext>для 5.0 тоже исправьте, плз.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110359</commentid>
    <comment_count>2</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2010-07-05 17:23:05 +0400</bug_when>
    <thetext>в 2.6.32-alt15.1 исправлено</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>