From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbaJEJtB (ORCPT ); Sun, 5 Oct 2014 05:49:01 -0400 Received: from mout.web.de ([212.227.17.12]:64531 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbaJEJs5 (ORCPT ); Sun, 5 Oct 2014 05:48:57 -0400 Message-ID: <543113FF.7050900@web.de> Date: Sun, 05 Oct 2014 11:48:47 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Hans de Goede , linux-usb , Linux Kernel Mailing List Subject: Re: uas: module not loaded automatically References: <54303DF6.4050203@web.de> <54310A74.3090404@redhat.com> <54310C04.5060008@web.de> <54310DF9.8070904@redhat.com> <54310FFF.10504@web.de> <543112A6.8070503@redhat.com> In-Reply-To: <543112A6.8070503@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HgEan26EhvxtgCw3w6fO5Spqn4vnTTgeb" X-Provags-ID: V03:K0:Xc1nfw9FCEmVSJytcTUZD71Tfk96iTOXnvWQxubUWihmK8mdq90 5hXCRsusFTmaN5GoGGs31OltH7Hdz8lQL9HPGia2okkxiOeWa8jN4IN+wCH7/cM8I56VzV1 17iKakrOXGEVwAAQtZyWVxKQjxw5UbOw+I/YpXlEuOLMrUFv8vrVx+N1dkhaBJvGuQ2w4rV 4hYNXquCoQIuKSM/a6rvA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HgEan26EhvxtgCw3w6fO5Spqn4vnTTgeb Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2014-10-05 11:43, Hans de Goede wrote: > Hi, >=20 > On 10/05/2014 11:31 AM, Jan Kiszka wrote: >> 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 UA= S 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 c= auses >>>>>> uas.ko to be loaded when the drive is plugged here. How is this su= pposed >>>>>> 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, U= SB_PR_BULK) }, >>>>> { USB_INTERFACE_INFO(USB_CLASS_MASS_STORAGE, USB_SC_SCSI, U= SB_PR_UAS) }, >>>>> >>>>> Which should make it load automatically on your device. >>>> >>>> Should this match with what lsusb -v reports for the device?=20 >>> >>> 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 =3D=3D USB_PR_UAS, seems you have an quite old lsusb if it d= oes 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 t= he 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. >=20 > Hmm, that is not all that old, I would expect that to work. >=20 > Here is how things "work" on my system: >=20 > [hans@shalem ~]$ lsmod | grep uas > uas 22414 0 > usb_storage 65065 1 uas > [hans@shalem ~]$ sudo rmmod uas > [hans@shalem ~]$ lsmod | grep uas > [hans@shalem ~]$ sudo modprobe usb:v174Cp5136d0100dc00dsc00dp00ic08isc0= 6ip50in00 > [hans@shalem ~]$ lsmod | grep uas > uas 22414 0 > usb_storage 65065 1 uas >=20 > So as you can see the modalias taken from your udev debug output causes= > uas to get loaded, can you try the above ? That command sequence doesn't cause uas to be reloaded. Anything I need to customize for my setup? >=20 > Also what does "modinfo uas" say? For me it says: >=20 > [hans@shalem ~]$ modinfo uas > filename: /lib/modules/3.17.0-rc6+/kernel/drivers/usb/storage/uas= =2Eko > author: Hans de Goede , Matthew Wilcox and= Sarah Sharp > license: GPL > alias: usb:v*p*d*dc*dsc*dp*ic08isc06ip62in* > alias: usb:v*p*d*dc*dsc*dp*ic08isc06ip50in* > alias: usb:v174Cp5106d*dc*dsc*dp*ic*isc*ip*in* > alias: usb:v152Dp0567d*dc*dsc*dp*ic*isc*ip*in* > alias: usb:v0BC2pAB20d*dc*dsc*dp*ic*isc*ip*in* > alias: usb:v0BC2p3312d*dc*dsc*dp*ic*isc*ip*in* > alias: usb:v0BC2p2312d*dc*dsc*dp*ic*isc*ip*in* > depends: usb-storage > vermagic: 3.17.0-rc6+ SMP mod_unload > signer: Magrathea: Glacier signing key > sig_key: 9B:56:00:B2:C4:97:8D:4A:A9:B3:0B:54:32:F7:B7:B2:2F:3E:F= B:D8 > sig_hashalgo: sha256 >=20 > Note the alias-es with vendor and product ids are from quirks, and your= version > will likely not have these. But the first 2 generic ones should be ther= e, and > match the modalias from the udev output. filename: /lib/modules/3.17.0-rc7-homebrewed+/kernel/drivers/usb/st= orage/uas.ko author: Hans de Goede , Matthew Wilcox and S= arah Sharp license: GPL srcversion: 597B27EF314ADC559827CBD alias: usb:v*p*d*dc*dsc*dp*ic08isc06ipAAin* alias: usb:v*p*d*dc*dsc*dp*ic08isc06ip62in* alias: usb:v*p*d*dc*dsc*dp*ic08isc06ip50in* depends: usb-storage intree: Y vermagic: 3.17.0-rc7-homebrewed+ SMP preempt mod_unload modversions= =20 Jan --HgEan26EhvxtgCw3w6fO5Spqn4vnTTgeb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlQxFAIACgkQitSsb3rl5xS0pACeJ6SsHXeNrbdd2FJ5th/sD4nI +J4AnRD8MnUq+uZ7edxQQ7mWIHwDVqKu =V3Zs -----END PGP SIGNATURE----- --HgEan26EhvxtgCw3w6fO5Spqn4vnTTgeb--