All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Hans de Goede <hdegoede@redhat.com>,
	linux-usb <linux-usb@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: uas: module not loaded automatically
Date: Sun, 05 Oct 2014 11:31:43 +0200	[thread overview]
Message-ID: <54310FFF.10504@web.de> (raw)
In-Reply-To: <54310DF9.8070904@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 4308 bytes --]

On 2014-10-05 11:23, Hans de Goede wrote:
> Hi,
> 
> On 10/05/2014 11:14 AM, Jan Kiszka wrote:
>> On 2014-10-05 11:08, Hans de Goede wrote:
>>> Hi,
>>>
>>> On 10/04/2014 08:35 PM, Jan Kiszka wrote:
>>>> Hi,
>>>>
>>>> my Delock external USB drive stopped working after updating from a
>>>> UAS-disabled distro kernel to latest 3.17-rc7 with UAS on. That UAS was
>>>> key became clear to me only after looking at storage_probe(): the device
>>>> is ignored by usb-storage if it is UAS-capable. However, nothing causes
>>>> uas.ko to be loaded when the drive is plugged here. How is this supposed
>>>> to work in the normal case?
>>>
>>> Is the uas.ko module installed, and was depmod run after installing it ?
>>
>> Definitely. Just retried after another depmod -a, and only modprobe uas
>> made it work.
>>
>>>
>>> uas.c has the following:
>>>
>>>         { USB_INTERFACE_INFO(USB_CLASS_MASS_STORAGE, USB_SC_SCSI, USB_PR_BULK) },
>>>         { USB_INTERFACE_INFO(USB_CLASS_MASS_STORAGE, USB_SC_SCSI, USB_PR_UAS) },
>>>
>>> Which should make it load automatically on your device.
>>
>> Should this match with what lsusb -v reports for the device? 
> 
> Yes, and it does, for both alt settings of your device:
> 
>       bInterfaceClass         8 Mass Storage
>       bInterfaceSubClass      6 SCSI
>       bInterfaceProtocol     80 Bulk-Only
> 
>       bInterfaceClass         8 Mass Storage
>       bInterfaceSubClass      6 SCSI
>       bInterfaceProtocol     98
> 
> Where 98 == USB_PR_UAS, seems you have an quite old lsusb if it does not

It says "007".

> know that though. Could it be the rest of your userspace is old too, and is
> not smart enough to load all matching drivers, instead only loading the first matching
> driver (which happens to be usb-storage) ?

OpenSUSE 13.1, all updates installed. Which components are involved?
udev - Version 208? Below is the udevadm monitor output.

Jan

PS: Let me know if I should carry this to a different list.


KERNEL[33578.169824] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
ACTION=add
BUSNUM=002
DEVNAME=/dev/bus/usb/002/008
DEVNUM=008
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-2
DEVTYPE=usb_device
MAJOR=189
MINOR=135
PRODUCT=174c/5136/100
SEQNUM=3702
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[33578.170171] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0
DEVTYPE=usb_interface
INTERFACE=8/6/80
MODALIAS=usb:v174Cp5136d0100dc00dsc00dp00ic08isc06ip50in00
PRODUCT=174c/5136/100
SEQNUM=3703
SUBSYSTEM=usb
TYPE=0/0/0

UDEV  [33578.171899] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
ACTION=add
BUSNUM=002
DEVNAME=/dev/bus/usb/002/008
DEVNUM=008
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-2
DEVTYPE=usb_device
ID_BUS=usb
ID_MODEL=42514
ID_MODEL_ENC=42514
ID_MODEL_ID=5136
ID_REVISION=0100
ID_SERIAL=Delock_42514_200000000CB4
ID_SERIAL_SHORT=200000000CB4
ID_USB_INTERFACES=:080650:080662:
ID_VENDOR=Delock
ID_VENDOR_ENC=Delock
ID_VENDOR_FROM_DATABASE=ASMedia Technology Inc.
ID_VENDOR_ID=174c
MAJOR=189
MINOR=135
PRODUCT=174c/5136/100
SEQNUM=3702
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=578169821

KERNEL[33578.173903] add      /module/usb_storage (module)
ACTION=add
DEVPATH=/module/usb_storage
SEQNUM=3704
SUBSYSTEM=module

KERNEL[33578.174036] add      /bus/usb/drivers/usb-storage (drivers)
ACTION=add
DEVPATH=/bus/usb/drivers/usb-storage
SEQNUM=3705
SUBSYSTEM=drivers

UDEV  [33578.174093] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0
DEVTYPE=usb_interface
ID_VENDOR_FROM_DATABASE=ASMedia Technology Inc.
INTERFACE=8/6/80
MODALIAS=usb:v174Cp5136d0100dc00dsc00dp00ic08isc06ip50in00
PRODUCT=174c/5136/100
SEQNUM=3703
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=8170188

UDEV  [33578.174319] add      /module/usb_storage (module)
ACTION=add
DEVPATH=/module/usb_storage
SEQNUM=3704
SUBSYSTEM=module
USEC_INITIALIZED=578173906

UDEV  [33578.174448] add      /bus/usb/drivers/usb-storage (drivers)
ACTION=add
DEVPATH=/bus/usb/drivers/usb-storage
SEQNUM=3705
SUBSYSTEM=drivers
USEC_INITIALIZED=578174131



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2014-10-05  9:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04 18:35 uas: module not loaded automatically Jan Kiszka
2014-10-05  9:08 ` Hans de Goede
2014-10-05  9:14   ` Jan Kiszka
2014-10-05  9:23     ` Hans de Goede
2014-10-05  9:31       ` Jan Kiszka [this message]
2014-10-05  9:43         ` Hans de Goede
2014-10-05  9:48           ` Jan Kiszka
2014-10-05  9:54             ` Hans de Goede
2014-10-05 11:03               ` uas " Jan Kiszka
2014-10-06  6:39                 ` [solved] " Jan Kiszka
2014-10-06 22:43                   ` Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54310FFF.10504@web.de \
    --to=jan.kiszka@web.de \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.