Since r349571 we need all the accessor to be present for set or get

otherwise we panic.
dwmmc don't handle VCCQ (voltage for the IO line of the SD/eMMC) or
TIMING.
Add the needed accessor in the {read,write}_ivar functions.

Reviewed by:	imp (previous version)
This commit is contained in:
Emmanuel Vadot 2019-07-01 21:50:53 +00:00
parent d80439b9b0
commit a4e0b5a471
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349584

View File

@ -1096,6 +1096,10 @@ dwmmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
break;
case MMCBR_IVAR_MAX_DATA:
*(int *)result = sc->desc_count;
break;
case MMCBR_IVAR_TIMING:
*(int *)result = sc->host.ios.timing;
break;
}
return (0);
}
@ -1134,6 +1138,14 @@ dwmmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
case MMCBR_IVAR_VDD:
sc->host.ios.vdd = value;
break;
case MMCBR_IVAR_TIMING:
sc->host.ios.timing = value;
break;
/* Not handled */
case MMCBR_IVAR_VCCQ:
return (0);
break;
/* These are read-only */
case MMCBR_IVAR_CAPS:
case MMCBR_IVAR_HOST_OCR: