[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-bugs
Subject: Re: Samsung USB Harddisk attaches as serial cable
From: Mark Kettenis <mark.kettenis () xs4all ! nl>
Date: 2018-04-26 20:11:12
Message-ID: 24596406412bbb8a () bloch ! sibelius ! xs4all ! nl
[Download RAW message or body]
> Date: Thu, 26 Apr 2018 22:01:01 +0200
> From: Theo Buehler <tb@openbsd.org>
>
> I have an USB-to-SATA cable with a samsung disk attached. When I plug it
> in, the disk tries to attach as a uplcom0. mpi saw that this is due to a
> re-used id and cooked the diff below with which it attaches as umass and
> is properly usable. lsusb output below.
That device doesn't show up as uplcom in dmesglog, so this is fine
with me.
> Index: sys/dev/usb/uplcom.c
> ===================================================================
> RCS file: /var/cvs/src/sys/dev/usb/uplcom.c,v
> retrieving revision 1.70
> diff -u -p -r1.70 uplcom.c
> --- sys/dev/usb/uplcom.c 30 Dec 2017 20:47:00 -0000 1.70
> +++ sys/dev/usb/uplcom.c 26 Apr 2018 19:41:03 -0000
> @@ -158,7 +158,6 @@ static const struct usb_devno uplcom_dev
> { USB_VENDOR_RADIOSHACK, USB_PRODUCT_RADIOSHACK_PL2303 },
> { USB_VENDOR_RATOC, USB_PRODUCT_RATOC_REXUSB60 },
> { USB_VENDOR_SAGEM, USB_PRODUCT_SAGEM_SERIAL },
> - { USB_VENDOR_SAMSUNG2, USB_PRODUCT_SAMSUNG2_I330 },
> { USB_VENDOR_SIEMENS3, USB_PRODUCT_SIEMENS3_SX1 },
> { USB_VENDOR_SIEMENS3, USB_PRODUCT_SIEMENS3_X65 },
> { USB_VENDOR_SIEMENS3, USB_PRODUCT_SIEMENS3_X75 },
>
> Here's the output of lsusb -v -s 0:2
>
> Bus 000 Device 002: ID 04e8:8001 Samsung Electronics Co., Ltd Handheld
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 3.00
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 9
> idVendor 0x04e8 Samsung Electronics Co., Ltd
> idProduct 0x8001 Handheld
> bcdDevice 1.00
> iManufacturer 2 Samsung
> iProduct 3 Portable SSD T1
> iSerial 1 1234567890AA12121235
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 121
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> (Bus Powered)
> MaxPower 224mA
> 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
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 1
> bNumEndpoints 4
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 6 SCSI
> bInterfaceProtocol 98
> 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
> MaxStreams 32
> Data-in pipe (0x03)
> 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
> MaxStreams 32
> Data-out pipe (0x04)
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x83 EP 3 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0400 1x 1024 bytes
> bInterval 0
> bMaxBurst 15
> MaxStreams 32
> Status pipe (0x02)
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x04 EP 4 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0400 1x 1024 bytes
> bInterval 0
> bMaxBurst 0
> Command pipe (0x01)
> 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
> 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: 0x0000
> (Bus Powered)
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic