13.0-RELEASE fails to detect SD card reader

From: Mike Clarke <jmc-freebsd2_at_milibyte.co.uk>
Date: Tue, 24 May 2022 16:09:20 UTC
I have an Akasa AK-ICR-01B card reader connected to a USB header on the motherboard

With previous versions of FreeBSD the reader was detected at boot time and device nodes 
are created for da0, da1, da2 and da3. Since upgrading from 13.0 to 13.1-RELEASE this 
device is no longer detected.

These are the relevant sections from dmesg with 13.0 when booting with no cards in the 
reader:

---------------------------------------------------------------------------------
ugen1.1: <Intel EHCI root HUB> at usbus1
uhub0 on usbus1
ugen2.1: <Intel EHCI root HUB> at usbus2
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <0x8086 XHCI root HUB> at usbus0
uhub1 on usbus2
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
uhub2 on usbus0
uhub2: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0


uhub1: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub2: 21 ports with 21 removable, self powered
ugen1.2: <vendor 0x8087 product 0x8009> at usbus1
uhub3 on uhub0
uhub3: <vendor 0x8087 product 0x8009, class 9/0, rev 2.00/0.00, addr 2> on usbus1
ugen2.2: <vendor 0x8087 product 0x8001> at usbus2
uhub4 on uhub1
uhub4: <vendor 0x8087 product 0x8001, class 9/0, rev 2.00/0.00, addr 2> on usbus2
ugen0.2: <Generic USB2.0-CRW> at usbus0
umass0 on uhub2
umass0: <Bulk-In, Bulk-Out, Interface> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:6:0: Attached to scbus6
uhub3: 6 ports with 6 removable, self powered
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Generic- Compact Flash 1.00> Removable Direct Access SCSI device
da0: Serial Number 20060413092100000
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
da1 at umass-sim0 bus 0 scbus6 target 0 lun 1
da1: <Generic- SM/xD-Picture 1.00> Removable Direct Access SCSI device
da1: Serial Number 20060413092100000
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da1: quirks=0x2<NO_6_BYTE>
uhub4: 8 ports with 8 removable, self powered
da2 at umass-sim0 bus 0 scbus6 target 0 lun 2
da2: <Generic- SD/MMC 1.00> Removable Direct Access SCSI device
da2: Serial Number 20060413092100000
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da2: quirks=0x2<NO_6_BYTE>
da3 at umass-sim0 bus 0 scbus6 target 0 lun 3
da3: <Generic- MS/MS-Pro 1.00> Removable Direct Access SCSI device
da3: Serial Number 20060413092100000
da3: 40.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
da3: quirks=0x2<NO_6_BYTE>
---------------------------------------------------------------------------------

But with 13.1 I only get this:

---------------------------------------------------------------------------------
ugen0.1: <Intel XHCI root HUB> at usbus0
ugen1.1: <Intel EHCI root HUB> at usbus1
uhub0 on usbus0
uhub0: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1 on usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen2.1: <Intel EHCI root HUB> at usbus2
uhub2 on usbus2
uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2


uhub2: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub0: 21 ports with 21 removable, self powered
ugen1.2: <vendor 0x8087 product 0x8009> at usbus1
uhub3 on uhub1
uhub3: <vendor 0x8087 product 0x8009, class 9/0, rev 2.00/0.00, addr 2> on usbus1
ugen2.2: <vendor 0x8087 product 0x8001> at usbus2
uhub4 on uhub2
uhub4: <vendor 0x8087 product 0x8001, class 9/0, rev 2.00/0.00, addr 2> on usbus2
uhub3: 6 ports with 6 removable, self powered
uhub4: 8 ports with 8 removable, self powered
usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored)
ugen0.2: <Generic USB2.0-CRW> at usbus0
umass0 on uhub0
umass0: <Bulk-In, Bulk-Out, Interface> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:6:0: Attached to scbus6
---------------------------------------------------------------------------------

-- 
Mike Clarke