Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-20392

[usbstor] Card reader's last device unit is not reported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    Description

      (From Mattermost chat - tracking activity with @Zombiedeth that has the actual card reader)

      The issue seems it misinterprets the Usb_Get_Max_Lun result from the controller - in the case of Zombiedeth's card reader, the controller. returns MAX LUN = 3 (SD, Card Reader, xD-Picture and MS-PRO) - but the controller itself is LUN = 0 so in https://github.com/reactos/reactos/blob/master/drivers/usb/usbstor/fdo.c#L252 the code misses the last one. As a workaround to verify this, I have simply added a +1 and the device appeared with ROS usbstor.
      So technically that loop should count +1 or skip the controller as storage

      Attachments

        1. IMG_1875.jpeg
          3.02 MB
          simonelombardo
        2. Usbstor_debug_after.txt
          107 kB
          simonelombardo
        3. usbstor_debug_before.txt
          108 kB
          simonelombardo

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simonelombardo simonelombardo
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: