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...
This commit is contained in:
Warner Losh 2008-10-02 07:00:31 +00:00
parent f0fbd1c4a6
commit a84f3c7af9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183541

View File

@ -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);