[Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed May 6 05:24:41 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521
--- Comment #50 from Jesper Schmitz Mouridsen <jsm at FreeBSD.org> ---
Still does not work..
I looked into the bus width thing though.. it sets 1 bit even though capability
is 4 bit
in mmc.c
mmc_app_decode_scr(uint32_t *raw_scr, struct mmc_scr *scr)
{
unsigned int scr_struct;
memset(scr, 0, sizeof(*scr));
scr_struct = mmc_get_bits(raw_scr, 64, 60, 4);
if (scr_struct != 0) {
printf("Unrecognised SCR structure version %d\n",
scr_struct);
return;
}
scr->sda_vsn = mmc_get_bits(raw_scr, 64, 56, 4);
scr->bus_widths = mmc_get_bits(raw_scr, 64, 48, 4);
}
and in mmc_discover_cards function in mmc.c
if ((host_caps & MMC_CAP_4_BIT_DATA) &&
(ivar->scr.bus_widths & SD_SCR_BUS_WIDTH_4))
ivar->bus_width = bus_width_4;
but bus_width is 1 and iirc 4 on openbsd so ivar->scr.bus_widths &
SD_SCR_BUS_WIDTH_4 is false. Removing it sets the bus width to 4 bits, but
still controller timeout.
so perhaps mmc_app_decode_scr does not apply to Realteks way of doing things?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list