Re: [PATCH] MIPS: ralink: add missing SZ_1M multiplier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/6/6 John Crispin <blogic@xxxxxxxxxxx>:
> On RT5350 the memory size is set to Bytes and not MegaBytes due to a missing
> multiplier.

You might want to mention that the regression got introduced in
dd63b008 ("MIPS: ralink: make use of the new memory detection code").
This also needs to be in a future 3.10-rc pull request to Linus.

Cheers
>
> Signed-off-by: John Crispin <blogic@xxxxxxxxxxx>
> ---
>  arch/mips/ralink/of.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
> index f916774..b25c1f2 100644
> --- a/arch/mips/ralink/of.c
> +++ b/arch/mips/ralink/of.c
> @@ -88,7 +88,7 @@ void __init plat_mem_setup(void)
>         __dt_setup_arch(&__dtb_start);
>
>         if (soc_info.mem_size)
> -               add_memory_region(soc_info.mem_base, soc_info.mem_size,
> +               add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
>                                   BOOT_MEM_RAM);
>         else
>                 detect_memory_region(soc_info.mem_base,
> --
> 1.7.10.4
>
>


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux