Re: [U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file
On Isn, 2017-10-23 at 09:24 -0500, Dinh Nguyen wrote: > > On 10/23/2017 03:19 AM, Chee, Tien Fong wrote: > > > > On Jum, 2017-10-20 at 09:39 -0500, Dinh Nguyen wrote: > > > > > > > > > On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee> > > > > > > > Enable function visible to other file, so it can be used by > > > > other > > > > functions from other file. > > > Huh? What function? What other file? Why? > > > > > > Please bear in mind for future patches, when reading the commit > > > message, > > > you should have a good idea of what the patch is doing without > > > even > > > looking at the patch. > > > > > > Need to include more people listed in get_maintainer.pl > > > > > > Maybe Marek has already commented, but this patch can be > > > separated > > > out > > > from the A10 series. > > > > > > Also, the commit header "arm:socfpga: Enable function visible to > > > other > > > file" is horrible and this patch has nothing to do with socfpga. > > > > > This patch is required by later patches, so this patch can't be > > separated out. This function is static declaration, but this > > function > > is required by the caller from other file(later patches). So, this > > patch is to remove ths static declaration so it is accessible by > > the > > caller from other file. > yes, I know what it means to remove the static declaration. Ok, I > understand the need for this patch in this series. Please fix up the > commit header and message. > Okay. > Dinh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file
On 10/23/2017 03:19 AM, Chee, Tien Fong wrote: > On Jum, 2017-10-20 at 09:39 -0500, Dinh Nguyen wrote: >> >> On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee>>> >>> Enable function visible to other file, so it can be used by other >>> functions from other file. >> Huh? What function? What other file? Why? >> >> Please bear in mind for future patches, when reading the commit >> message, >> you should have a good idea of what the patch is doing without even >> looking at the patch. >> >> Need to include more people listed in get_maintainer.pl >> >> Maybe Marek has already commented, but this patch can be separated >> out >> from the A10 series. >> >> Also, the commit header "arm:socfpga: Enable function visible to >> other >> file" is horrible and this patch has nothing to do with socfpga. >> > This patch is required by later patches, so this patch can't be > separated out. This function is static declaration, but this function > is required by the caller from other file(later patches). So, this > patch is to remove ths static declaration so it is accessible by the > caller from other file. yes, I know what it means to remove the static declaration. Ok, I understand the need for this patch in this series. Please fix up the commit header and message. Dinh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file
On Jum, 2017-10-20 at 09:39 -0500, Dinh Nguyen wrote: > > On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee> > > > Enable function visible to other file, so it can be used by other > > functions from other file. > Huh? What function? What other file? Why? > > Please bear in mind for future patches, when reading the commit > message, > you should have a good idea of what the patch is doing without even > looking at the patch. > > Need to include more people listed in get_maintainer.pl > > Maybe Marek has already commented, but this patch can be separated > out > from the A10 series. > > Also, the commit header "arm:socfpga: Enable function visible to > other > file" is horrible and this patch has nothing to do with socfpga. > This patch is required by later patches, so this patch can't be separated out. This function is static declaration, but this function is required by the caller from other file(later patches). So, this patch is to remove ths static declaration so it is accessible by the caller from other file. > Dinh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file
On 10/13/2017 03:08 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee> > Enable function visible to other file, so it can be used by other > functions from other file. Huh? What function? What other file? Why? Please bear in mind for future patches, when reading the commit message, you should have a good idea of what the patch is doing without even looking at the patch. Need to include more people listed in get_maintainer.pl Maybe Marek has already commented, but this patch can be separated out from the A10 series. Also, the commit header "arm:socfpga: Enable function visible to other file" is horrible and this patch has nothing to do with socfpga. Dinh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH v3 18/20] arm: socfpga: Enable function visible to other file
From: Tien Fong CheeEnable function visible to other file, so it can be used by other functions from other file. Signed-off-by: Tien Fong Chee --- common/spl/spl_mmc.c | 2 +- include/spl.h| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index b26..159443f 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -113,7 +113,7 @@ static int spl_mmc_get_device_index(u32 boot_device) return -ENODEV; } -static int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device) +int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device) { #if CONFIG_IS_ENABLED(DM_MMC) struct udevice *dev; diff --git a/include/spl.h b/include/spl.h index ce4cf0a..e24433d 100644 --- a/include/spl.h +++ b/include/spl.h @@ -10,6 +10,7 @@ /* Platform-specific defines */ #include #include +#include /* Value in r0 indicates we booted from U-Boot */ #define UBOOT_NOT_LOADED_FROM_SPL 0x13578642 @@ -68,6 +69,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image, void preloader_console_init(void); u32 spl_boot_device(void); u32 spl_boot_mode(const u32 boot_device); +int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device); /** * spl_set_header_raw_uboot() - Set up a standard SPL image structure -- 2.2.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot