From 5a8e6d35724e8df2ff4dcb2547a9a7473a217fdb Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 30 Sep 2008 02:32:41 +0000 Subject: Properly implement read only. Also, the caps implementation is wrong here, so I'm backing it out. --- sys/arm/at91/at91_mci.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys') diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c index 8daeedd..3c49b9d 100644 --- a/sys/arm/at91/at91_mci.c +++ b/sys/arm/at91/at91_mci.c @@ -455,7 +455,7 @@ at91_mci_request(device_t brdev, device_t reqdev, struct mmc_request *req) static int at91_mci_get_ro(device_t brdev, device_t reqdev) { - return (-1); + return (0); } static int @@ -642,9 +642,6 @@ at91_mci_read_ivar(device_t bus, device_t child, int which, u_char *result) case MMCBR_IVAR_VDD: *(int *)result = sc->host.ios.vdd; break; - case MMCBR_IVAR_CAPS: - *(int *)result = sc->host.ios.caps; - break; } return (0); } @@ -685,7 +682,6 @@ at91_mci_write_ivar(device_t bus, device_t child, int which, uintptr_t value) case MMCBR_IVAR_HOST_OCR: case MMCBR_IVAR_F_MIN: case MMCBR_IVAR_F_MAX: - case MMCBR_IVAR_CAPS: return (EINVAL); } return (0); -- cgit v1.1