diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-29 09:44:50 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-29 09:44:50 +0000 |
commit | b0780212916419166a6fdd8caec2457cbd712e99 (patch) | |
tree | e706bafea61ac0a9a819c505a2265cc24bfe48b5 /sys/dev | |
parent | f1d26befc8e80364b3f19b8ad55d9a6e11506245 (diff) |
According to the SDIO Simplified Specification 3.0, a tuple length
(aka link field) of 0 specifies an empty tuple body. This implies
that a tuple length of 0 is actually allowed, so we don't need to
error out if we encounter one. Seen on an SDIO-connected ath10k.
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_cis.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/sdmmc/sdmmc_cis.c b/sys/dev/sdmmc/sdmmc_cis.c index 21cf530b24f..9c7bdf00863 100644 --- a/sys/dev/sdmmc/sdmmc_cis.c +++ b/sys/dev/sdmmc/sdmmc_cis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_cis.c,v 1.7 2016/04/23 14:15:59 kettenis Exp $ */ +/* $OpenBSD: sdmmc_cis.c,v 1.8 2020/04/29 09:44:49 patrick Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -76,12 +76,6 @@ sdmmc_read_cis(struct sdmmc_function *sf, struct sdmmc_cis *cis) continue; tpllen = sdmmc_io_read_1(sf0, reg++); - if (tpllen == 0) { - printf("%s: CIS parse error at %d, " - "tuple code %#x, length %d\n", - DEVNAME(sf->sc), reg, tplcode, tpllen); - break; - } switch (tplcode) { case SD_IO_CISTPL_FUNCID: |