Re: [U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

2014-05-23 Thread Pantelis Antoniou
Hi Stephen, On May 7, 2014, at 9:19 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This enables specifying which eMMC HW partition to target for any U-Boot command that uses the generic get_partition() function to parse its command-line arguments. Signed-off-by:

Re: [U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

2014-05-23 Thread Stephen Warren
On 05/23/2014 03:21 AM, Pantelis Antoniou wrote: Hi Stephen, On May 7, 2014, at 9:19 PM, Stephen Warren wrote: This enables specifying which eMMC HW partition to target for any U-Boot command that uses the generic get_partition() function to parse its command-line arguments. Applied, but

Re: [U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

2014-05-23 Thread Pantelis Antoniou
Hi Stephen, On May 23, 2014, at 6:58 PM, Stephen Warren wrote: On 05/23/2014 03:21 AM, Pantelis Antoniou wrote: Hi Stephen, On May 7, 2014, at 9:19 PM, Stephen Warren wrote: This enables specifying which eMMC HW partition to target for any U-Boot command that uses the generic

[U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

2014-05-07 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com This enables specifying which eMMC HW partition to target for any U-Boot command that uses the generic get_partition() function to parse its command-line arguments. Signed-off-by: Stephen Warren swar...@nvidia.com --- disk/part.c | 6 +-

Re: [U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

2014-05-07 Thread Fabio Estevam
On Wed, May 7, 2014 at 3:19 PM, Stephen Warren swar...@wwwdotorg.org wrote: +int mmc_select_hwpart(int dev_num, int hwpart) +{ + struct mmc *mmc = find_mmc_device(dev_num); + int ret; + + if (!mmc) + return -1; + + if (mmc-part_num == hwpart) +

Re: [U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

2014-05-07 Thread Stephen Warren
On 05/07/2014 12:22 PM, Fabio Estevam wrote: On Wed, May 7, 2014 at 3:19 PM, Stephen Warren swar...@wwwdotorg.org wrote: +int mmc_select_hwpart(int dev_num, int hwpart) ... + ret = mmc_switch_part(dev_num, hwpart); + if (ret) + return -1; Can't you return more