Properly implement read only. Also, the caps implementation is wrong
here, so I'm backing it out.
This commit is contained in:
parent
cc2238d333
commit
5a8e6d3572
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user