Date: Mon, 1 Jul 2019 21:50:54 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r349584 - head/sys/dev/mmc/host Message-ID: <201907012150.x61LosRF028198@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Mon Jul 1 21:50:53 2019 New Revision: 349584 URL: https://svnweb.freebsd.org/changeset/base/349584 Log: 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) Modified: head/sys/dev/mmc/host/dwmmc.c Modified: head/sys/dev/mmc/host/dwmmc.c ============================================================================== --- head/sys/dev/mmc/host/dwmmc.c Mon Jul 1 21:06:10 2019 (r349583) +++ head/sys/dev/mmc/host/dwmmc.c Mon Jul 1 21:50:53 2019 (r349584) @@ -1096,6 +1096,10 @@ dwmmc_read_ivar(device_t bus, device_t child, int whic 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); } @@ -1133,6 +1137,14 @@ dwmmc_write_ivar(device_t bus, device_t child, int whi break; 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907012150.x61LosRF028198>