From owner-freebsd-usb@freebsd.org Sun Jul 5 01:33:01 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0F5135D275 for ; Sun, 5 Jul 2020 01:33:01 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49zrmr2ndcz4L6W for ; Sun, 5 Jul 2020 01:32:59 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id 0651WnNK005403 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 5 Jul 2020 11:32:55 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id 0651WhrW066244 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 5 Jul 2020 11:32:44 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id 0651Wh4f066243 for freebsd-usb@freebsd.org; Sun, 5 Jul 2020 11:32:43 +1000 (AEST) (envelope-from peter) Date: Sun, 5 Jul 2020 11:32:43 +1000 From: Peter Jeremy To: freebsd-usb@freebsd.org Subject: Realtex 0x0129 Card Reader problems Message-ID: <20200705013243.GF30039@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7CZp05NP8/gJM8Cl" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp X-Rspamd-Queue-Id: 49zrmr2ndcz4L6W X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of peter@rulingia.com designates 2001:19f0:5801:ebe:5400:1ff:fe53:30fd as permitted sender) smtp.mailfrom=peter@rulingia.com X-Spamd-Result: default: False [-4.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.979]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.04)[-1.042]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[rulingia.com]; NEURAL_HAM_SHORT(-0.03)[-0.028]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5800::/38, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 01:33:01 -0000 --7CZp05NP8/gJM8Cl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have a laptop with the following card reader: ugen1.3: at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH (480M= bps) pwr=3DON (500mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x00ff bDeviceSubClass =3D 0x00ff=20 bDeviceProtocol =3D 0x00ff=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0bda=20 idProduct =3D 0x0129=20 bcdDevice =3D 0x3960=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 <20100201396000000> bNumConfigurations =3D 0x0001=20 and I'm trying to get it working. I've found several previous threads: https://lists.freebsd.org/pipermail/freebsd-usb/2013-July/012200.html https://lists.freebsd.org/pipermail/freebsd-usb/2014-April/012874.html https://lists.freebsd.org/pipermail/freebsd-usb/2016-February/014128.html that suggest various quirks but none of those threads mention success and the suggested quirks don't work for me - in particular, unless I force both the wire and command protocol, nothing works and even with both UQ_MSC_FORCE_WIRE_BBB and UQ_MSC_FORCE_PROTO_SCSI, I also need UQ_MSC_NO_INQUIRY and UQ_MSC_NO_GETMAXLUN - which just moves the error to: (da0:umass-sim0:0:0:0): got CAM status 0x44 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device That all makes me wonder if FreeBSD is actually communicating with the device at all. Can anyone offer a set of quirks that will actually work with this reader? --=20 Peter Jeremy --7CZp05NP8/gJM8Cl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE2M6l8vfIeOACl4uUHZIUommfjLIFAl8BLbVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQ4 Q0VBNUYyRjdDODc4RTAwMjk3OEI5NDFEOTIxNEEyNjk5RjhDQjIACgkQHZIUommf jLI1mA/6A1or6okb15PcAv3u4COIyBnUC3QSm6x8ZLIhHSJ7uTd6JPODtKOaXfce L+JaGLyKVM2qZpAAE8D3J5G7tZm5J8N5zbusBADHp4ZbsIKm3hGTQwVlbC4L4sel upFgjvZNEvT0oVqiEmzaJzVX8EWzEqBlg35X9SXMU3UntuEeB97vC/nayQiAlGc4 fA0NTDQI8/eKnttIOJPCcoJ2ZwGEMYRGgiP0Wrw6iu3m977wkAyD5ORiymN5Or/i CDCz5s3kp/pWwJ7RrPPBHxMMuSn1YMcntxNYgMJA4CO/WuGL9sAX+Jp3giKBgRa9 g5+Us/Kao1uV77df2wjcrG6K9ZY49ha/Ft25IOCv5/rz6C40DlNM9Z0gDV+AB9xm fSZ7q21qqSm/wSgSKnMCsMkNDmGZcddLHyRzhQjl81kPEHQTtKtc4LV7TS/DGCtV fbXab5JSMq5XEUbUA6Mz6L3jLYdJmhf4YD6yAWMPFtUFtrVd6wWswS1S+miA01mx zpq3cqrYY64N7gJHi37/s0wIdhkH53eCgYX1pJIHh9H2YcLZHgZQbwnwtLKeYVDv zU1xXzm1mOPoxIvkmzpsFEIJRkdmsgVcaWo74NDBljuPd0nlaVxQgAgQYGzPPYAc 8KVWYYdiPUxEAt7qokWIW/s+a7lQNYUmpGJPFMjXVXENx8LL4Cg= =WiHm -----END PGP SIGNATURE----- --7CZp05NP8/gJM8Cl--