Fix 32bit bit fields handling. This fixes card serial number fetching.
It was just a cosmetic issue, because that number is only reported in logs. Reported by: Michael Butler on current@
This commit is contained in:
parent
44e46b9e53
commit
8b09b5b170
@ -749,7 +749,7 @@ mmc_get_bits(uint32_t *bits, int bit_len, int start, int size)
|
||||
uint32_t retval = bits[i] >> shift;
|
||||
if (size + shift > 32)
|
||||
retval |= bits[i - 1] << (32 - shift);
|
||||
return (retval & ((1 << size) - 1));
|
||||
return (retval & ((1llu << size) - 1));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user