With the introduction of high capacity SD card support, there are two ways device size is returned from the CSD register. When dealing with a high capacity SD card the device size is returned in Blocks, not bytes. If this situation is not handled, for cards that are small in size, the total sectors on the card will become very large because overflow will occur in the buffer that stores the total sectors.