changeset 6 | 0173bcd7697c |
parent 0 | a41df078684a |
child 26 | c734af59ce98 |
--- a/kernel/eka/include/drivers/mmc.inl Wed Dec 23 11:43:31 2009 +0000 +++ b/kernel/eka/include/drivers/mmc.inl Thu Jan 07 13:38:45 2010 +0200 @@ -1136,7 +1136,11 @@ * @internalTechnology */ { - return(0x20000 << ((iMachineInfo.iFlags & TMMCMachineInfo::EMaxTransferLength_16M) >> 8)); + TUint32 r = (iMachineInfo.iFlags & TMMCMachineInfo::EMaxTransferLength_16M) >> 8; + if (r) + r = 0x20000 << r; + + return r; } inline TUint32 DMMCSocket::DmaAlignment()