Re: [PATCH 0/2 v3] mmc: dw_mmc: Fix DTO/STO timeout overflow calculation

2018-02-26 Thread Jisheng Zhang
On Mon, 26 Feb 2018 17:34:11 +0300 Evgeniy Didin wrote: > For some 32-bit architectures calculation of DTO and STO timeout can be > incorrect > due to multiply overflow. Lets prevent this by casting multiply and result to > u64. > > Suggested by Jisheng Zhang. > Switch DIV_ROUND_UP macro to DI

[PATCH 0/2 v3] mmc: dw_mmc: Fix DTO/STO timeout overflow calculation

2018-02-26 Thread Evgeniy Didin
For some 32-bit architectures calculation of DTO and STO timeout can be incorrect due to multiply overflow. Lets prevent this by casting multiply and result to u64. Suggested by Jisheng Zhang. Switch DIV_ROUND_UP macro to DIV_ROUND_UP_ULL is not reasonable because overflow happens on multiply an