diff options
author | imp <imp@FreeBSD.org> | 2008-10-02 07:00:31 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-10-02 07:00:31 +0000 |
commit | fa4528e966e99bf0a083fd49cdb060b34bb8804a (patch) | |
tree | 4fb083340ce91029f4bf08bd1b0bb3730c988ec2 /sys | |
parent | e775ff8588b0ffb1130e19ff54ed713c2b2ad94f (diff) | |
download | FreeBSD-src-fa4528e966e99bf0a083fd49cdb060b34bb8804a.zip FreeBSD-src-fa4528e966e99bf0a083fd49cdb060b34bb8804a.tar.gz |
MAXPHYS seems more stable on the AT91RM9200 boards that I have. We
may need to ask the host controller for the right number to use
here...
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mmc/mmcsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mmc/mmcsd.c b/sys/dev/mmc/mmcsd.c index 08a69f2..948df18 100644 --- a/sys/dev/mmc/mmcsd.c +++ b/sys/dev/mmc/mmcsd.c @@ -126,7 +126,7 @@ mmcsd_attach(device_t dev) // sc->disk->d_dump = mmcsd_dump; Need polling mmc layer sc->disk->d_name = "mmcsd"; sc->disk->d_drv1 = sc; - sc->disk->d_maxsize = 256*1024; /* This is completely empirical */ + sc->disk->d_maxsize = MAXPHYS; /* Maybe ask bridge? */ sc->disk->d_sectorsize = mmc_get_sector_size(dev); sc->disk->d_mediasize = ((off_t)mmc_get_media_size(dev)) * mmc_get_sector_size(dev); |