[U-Boot] [PATCH v4] mmc-uclass: correct the device number

Simon Glass sjg at chromium.org
Thu Jul 28 05:33:37 CEST 2016


On 24 July 2016 at 23:11, Jaehoon Chung <jh80.chung at samsung.com> wrote:
> On 07/23/2016 11:08 AM, Simon Glass wrote:
>> On 22 July 2016 at 03:22, Kever Yang <kever.yang at rock-chips.com> wrote:
>>> Not like the mmc-legacy which the devnum starts from 1, it starts from 0
>>> in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num().
>>>
>>> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
>>> ---
>>>
>>> Changes in v4:
>>> - call blk_find_max_devnum() in mmc_get_next_devnum for error return.
>>>
>>> Changes in v3:
>>> - apply comments from Jaehoon Chung
>>>
>>> Changes in v2:
>>> - add comment for get_mmc_num() in mmc.h
>>> - update mmc_get_next_devnum()
>>>
>>>  drivers/mmc/mmc-uclass.c | 6 +++---
>>>  include/mmc.h            | 6 ++++++
>>>  2 files changed, 9 insertions(+), 3 deletions(-)
>>
>> Acked-by: Simon Glass <sjg at chromium.org>
>>
>
> Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>
>
>>
>>
>

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list