From nobody Wed Jun 15 21:49:32 2022 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3A2C4839603 for ; Wed, 15 Jun 2022 21:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LNf8r0TJmz4fPG for ; Wed, 15 Jun 2022 21:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E151E265DF for ; Wed, 15 Jun 2022 21:49:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25FLnVHo017663 for ; Wed, 15 Jun 2022 21:49:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25FLnVGF017662 for usb@FreeBSD.org; Wed, 15 Jun 2022 21:49:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 263868] usb_msc_auto_quirk and usb memory card readers Date: Wed, 15 Jun 2022 21:49:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 8an@praha12.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655329772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GZ3VFhxnItfP6cj3vhVRpfbpTQEYolv1qMHltPHTlWM=; b=VWLUfNx8zYF1uATRCA/STSDT3n5Qu8/HhPrgzzXkwKXDOYeVgkaSLfUbdo4vRsEhfpWC5T woJpNQ8GW5ZOzFH1SS/OJ2YEiCWT91YBPfiV/puWjdNKGmbhPMYHmuXPWj4SXlhBj/5Rn4 aYuJpebMFf8V60Q8S7aVPUh4ohyEs9r+nxdmxjpJfmtw16ltaOBdrIvbksyr8wgewSt1hJ J6XiU+yVjtp9CBVz6dUbZSMKY/eXWNspgiDz0sN7xr4f0VpO39iHdFL/MLiLPtVdGglylK InbPJvrfcev7ACgGYgs13UiAfW2st/zzg0QpP1XEi0dZYnzRWa7LFjrIFMNVhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655329772; a=rsa-sha256; cv=none; b=YXnjss3TE5A1LneTjQesRUa5WPAvxiwcSAIw40eJULIlAtZiBWlzz7y5flMnQaHSgwtsok gAlcLiCyIb+ipddN6D+6ISiQqVfrWl6rxdFbsejIhvBPKvisLwuQgQ5j+sLUjb5puRgKcG URM18/kZAI/PtQx/JyM2h+N4+CEsGGzKwnViObvg5tkmzb+VJss03PowfKln3rfbCkN9At Q5yjvMXM/SD7y1OM4m8xa6C2y8GG3vMCMk9iQt4Hl3Qktkvh9fHDHV3/W93uwjitDt9yrN kUe5Bx/1GIiIaHOc4LsDRTFrjBcTIjJku7cGjBwBOW9yr17zeg0jqKJZtpR6kA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263868 Lukas Turek <8an@praha12.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |8an@praha12.net --- Comment #5 from Lukas Turek <8an@praha12.net> --- I have a similar problem with D30919, for me it broke InnoDisk Nano USB sti= ck. In 13.0 it was detected correctly: ugen0.7: at usbus0 umass1 on uhub0 umass1: on usbus0 umass1: SCSI over Bulk-Only; quirks =3D 0xc100 umass1:15:1: Attached to scbus15 da1 at umass-sim1 bus 1 scbus15 target 0 lun 0 da1: Removable Direct Access SCSI device da1: Serial Number 16E24A000014 da1: 40.000MB/s transfers da1: 976MB (2000895 512 byte sectors) da1: quirks=3D0x2 In 13.1 the USB stick freezes and won't reconnect even after reboot, it nee= ds to be physically unplugged and plugged back: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device InnoDisk Nano USB (0x196d:0x0201) usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage device InnoDisk Nano USB (0x196d:0x0201) usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACHE set for USB mass storage device InnoDisk Nano USB (0x196d:0x0201) ugen0.7: at usbus0 umass1 on uhub0 umass1: on usbus0 umass1: SCSI over Bulk-Only; quirks =3D 0xc100 umass1:15:1: Attached to scbus15 (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error (probe0:umass-sim1:1:0:0): Retrying command, 3 more tries remain (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error (probe0:umass-sim1:1:0:0): Retrying command, 2 more tries remain (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error (probe0:umass-sim1:1:0:0): Retrying command, 1 more tries remain (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error (probe0:umass-sim1:1:0:0): Retrying command, 0 more tries remain (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error (probe0:umass-sim1:1:0:0): Error 5, Retries exhausted The device doesn't actually need any dynamic quirk. In fact it's the detect= ed quirks that cause the device to stop responding because of this code: if (any_quirk) { /* Unconfigure device, to clear software data toggle. */ usbd_set_config_index(udev, USB_UNCONFIG_INDEX); /* Need to re-enumerate the device to clear its state. */ usbd_req_re_enumerate(udev, NULL); return (USB_ERR_STALLED); } When I commented it out, the USB stick worked correctly: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device InnoDisk Nano USB (0x196d:0x0201) usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage device InnoDisk Nano USB (0x196d:0x0201) usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACHE set for USB mass storage device InnoDisk Nano USB (0x196d:0x0201) ugen0.7: at usbus0 umass1 on uhub0 umass1: on usbus0 umass1: SCSI over Bulk-Only; quirks =3D 0xc100 umass1:15:1: Attached to scbus15 da1 at umass-sim1 bus 1 scbus15 target 0 lun 0 da1: Removable Direct Access SCSI device da1: Serial Number 16E24A000014 da1: 40.000MB/s transfers da1: 976MB (2000895 512 byte sectors) da1: quirks=3D0x2 --=20 You are receiving this mail because: You are the assignee for the bug.=