On Tue, 2017-08-29 at 10:57 +0200, Massimo Burcheri wrote:

> Thanks for the patch. I applied that to 4.12.0-pf7:
> 
> # rmmod uas
> # patch -p1 < 0001-USB-uas-force-UAS-probing-for-ASMedia-1153.patch 
> patching file drivers/usb/storage/uas-detect.h
> # make
> # make modules_install
> # modprobe uas
> 
> 
> But from syslog point of view, nothing changed:
> 
> Aug 29 10:41:34 [kernel] usbcore: registered new interface driver uas
> Aug 29 10:41:50 [kernel] usb 4-1: new SuperSpeed USB device number 23 using
> xhci_hcd
> Aug 29 10:41:50 [kernel] usb 4-1: New USB device found, idVendor=174c,
> idProduct=5106
> Aug 29 10:41:50 [kernel] usb 4-1: New USB device strings: Mfr=2, Product=3,
> SerialNumber=1
> Aug 29 10:41:50 [kernel] usb 4-1: Product: StoreJet Transcend
> Aug 29 10:41:50 [kernel] usb 4-1: Manufacturer: StoreJet Transcend
> Aug 29 10:41:50 [kernel] usb 4-1: SerialNumber: S36VJ9CH307FOO
> Aug 29 10:41:50 [kernel] usb-storage 4-1:1.0: USB Mass Storage device detected
> Aug 29 10:41:50 [kernel] scsi host7: usb-storage 4-1:1.0
> Aug 29 10:41:50 [mtp-probe] checking bus 4, device 23:
> "/sys/devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb4/4-1"_
> Aug 29 10:41:50 [mtp-probe] bus: 4, device: 23 was not an MTP device_
> Aug 29 10:41:51 [laptop-mode] enabled, not active
> Aug 29 10:41:51 [kernel] scsi 7:0:0:0: Direct-Access     StoreJet
> Transcend        0    PQ: 0 ANSI: 6
> Aug 29 10:41:51 [kernel] sd 7:0:0:0: Attached scsi generic sg3 type 0
> Aug 29 10:41:51 [kernel] sd 7:0:0:0: [sdd] 3907029168 512-byte logical blocks:
> (2.00 TB/1.82 TiB)
> Aug 29 10:41:51 [kernel] sd 7:0:0:0: [sdd] Write Protect is off
> Aug 29 10:41:51 [kernel] sd 7:0:0:0: [sdd] Write cache: enabled, read cache:
> enabled, doesn't support DPO or FUA
> Aug 29 10:41:51 [kernel] sd 7:0:0:0: [sdd] Attached SCSI disk
> Aug 29 10:41:52 [laptop-mode] Failed to re-set power saving mode for wireless
> card
> Aug 29 10:41:52 [laptop-mode] enabled, not active
> Aug 29 10:41:52 [laptop-mode] Failed to re-set power saving mode for wireless
> card
> 
> Here you get the full descriptor:
> 
> Bus 004 Device 023: ID 174c:5106 ASMedia Technology Inc. ASM1051 SATA 3Gb/s
> bridge
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               3.00
>   bDeviceClass            0 
>   bDeviceSubClass         0 
>   bDeviceProtocol         0 
>   bMaxPacketSize0         9
>   idVendor           0x174c ASMedia Technology Inc.
>   idProduct          0x5106 ASM1051 SATA 3Gb/s bridge
>   bcdDevice           80.00
>   iManufacturer           2 StoreJet Transcend
>   iProduct                3 StoreJet Transcend
>   iSerial                 1 S36VJ9CH307FOO
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           44
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          0 
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                0mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass         8 Mass Storage
>       bInterfaceSubClass      6 SCSI
>       bInterfaceProtocol     80 Bulk-Only
>       iInterface              0 
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0400  1x 1024 bytes
>         bInterval               0
>         bMaxBurst              15
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0400  1x 1024 bytes
>         bInterval               0
>         bMaxBurst              15
> Binary Object Store Descriptor:
>   bLength                 5
>   bDescriptorType        15
>   wTotalLength           22
>   bNumDeviceCaps          2
>   USB 2.0 Extension Device Capability:
>     bLength                 7
>     bDescriptorType        16
>     bDevCapabilityType      2
>     bmAttributes   0x00000002
>       HIRD Link Power Management (LPM) Supported
>   SuperSpeed USB Device Capability:
>     bLength                10
>     bDescriptorType        16
>     bDevCapabilityType      3
>     bmAttributes         0x00
>     wSpeedsSupported   0x000e
>       Device can operate at Full Speed (12Mbps)
>       Device can operate at High Speed (480Mbps)
>       Device can operate at SuperSpeed (5Gbps)
>     bFunctionalitySupport   1
>       Lowest fully-functional device speed is Full Speed (12Mbps)
>     bU1DevExitLat          10 micro seconds
>     bU2DevExitLat        2047 micro seconds
> Device Status:     0x0001
>   Self Powered


Was that patch applied successfully? I don't see any message from the UAS
module, neither success nor error message.

Regards,
Massimo

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to