imx: fix typo and simple assumptions in imx6sll support
Subsystems (3)
PATCH 1/1 imx: fix typo and simple assumptions in imx6sll support
I'm not exactly sure how to properly fix the cpuidle part as the whole file seems to assume all IMX* are enabled so this is mostly a "bug-report" instead of a proper patch
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x9938): undefined reference to imx6sll_lpddr2_freq_change' platform-imx-dma.c:(.text+0x993c): undefined reference to imx6sll_lpddr2_freq_change' arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0xdef0): undefined reference to `imx6sll_cpuidle_init'
--- arch/arm/mach-imx/common.c | 2 +- arch/arm/mach-imx/cpuidle.h | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-)
arch/arm/mach-imx/common.c +1 -1
@@ -132,7 +132,7 @@ u32 imx6_lpddr2_freq_change_start, imx6_lpddr2_freq_change_end;void mx6_lpddr2_freq_change (u32 freq,int bus_freq_mode) {}#endif -#if !defined(CONFIG_SOC_IMX6SL ) +#if !defined(CONFIG_SOC_IMX6SLL )void imx6sll_lpddr2_freq_change (u32 freq,int bus_freq_mode) {}#endif
arch/arm/mach-imx/cpuidle.h +9 -5
@@ -10,11 +10,19 @@* http://www.gnu.org/copyleft/gpl.html */ +#if defined(CONFIG_CPU_IDLE ) && defined(CONFIG_SOC_IMX6SLL ) +extern int imx6sll_cpuidle_init (void ); +#else +static inline int imx6sll_cpuidle_init (void ) +{ +return 0 ; +} +#endif +#ifdef CONFIG_CPU_IDLE extern int imx5_cpuidle_init (void );extern int imx6q_cpuidle_init (void );extern int imx6sl_cpuidle_init (void ); -extern int imx6sll_cpuidle_init (void );extern int imx6sx_cpuidle_init (void );extern int imx6ul_cpuidle_init (void );extern int imx7d_cpuidle_init (void );
@@ -32,10 +40,6 @@ static inline int imx6sl_cpuidle_init(void) {return 0 ; } -static inline int imx6sll_cpuidle_init (void ) -{ -return 0 ; -}static inline int imx6sx_cpuidle_init (void ) {return 0 ;
Signature · 1 line
2.13.0
Hi Alejandro,
Can you tell me the steps for reproducing this build error? Thanks.
BR
Jacky Bai
Quoted 73 lines
-----Original Message-----
From: Alejandro Mery [mailto:[email protected]]
Sent: 2017年6月19日 18:09
To: [email protected]
Cc: Otavio Salvador <[email protected]>; Jacky Bai <[email protected]>; Alejandro Mery <[email protected]>
Subject: [linux-fslc-imx][4.1-2.0.x-imx][PATCH] imx: fix typo and simple assumptions in imx6sll supportI'm not exactly sure how to properly fix the cpuidle part as the whole file seems to assume all IMX* are enabled so this is mostly a "bug-report" instead of a proper patch
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x9938): undefined reference toimx6sll_lpddr2_freq_change' platform-imx-dma.c:(.text+0x993c): undefined reference toimx6sll_lpddr2_freq_change'arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0xdef0): undefined reference to `imx6sll_cpuidle_init'Signed-off-by Alejandro Mery <[email protected]>--- arch/arm/mach-imx/common.c | 2 +- arch/arm/mach-imx/cpuidle.h | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-)arch/arm/mach-imx/common.c index renamed from arch/arm/mach-imx/common.c +0
-0
3016f60ce141..2f644c6b2c28100644arch/arm/mach-imx/common.c +0
-0@@ -132,7 +132,7 @@ u32 imx6_lpddr2_freq_change_start,
imx6_lpddr2_freq_change_end; voidmx6_lpddr2_freq_change(u32 freq, int bus_freq_mode){} #endifarch/arm/mach-imx/common.c +1
-1-#if !defined(CONFIG_SOC_IMX6SL ) +#if !defined(CONFIG_SOC_IMX6SLL )void imx6sll_lpddr2_freq_change (u32 freq,int bus_freq_mode) {}#endif arch/arm/mach-imx/cpuidle.h index renamed from arch/arm/mach-imx/cpuidle.h +0
-08e0c1aa2daf6..592724811607 100644
arch/arm/mach-imx/cpuidle.h +7
-5@@ -10,11 +10,19 @@* http://www.gnu.org/copyleft/gpl.html */ +#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_SOC_IMX6SLL) extern int +imx6sll_cpuidle_init (void );#else static inline int +imx6sll_cpuidle_init (void) { +return 0 ; +} +#endif +#ifdef CONFIG_CPU_IDLE extern int imx5_cpuidle_init (void );extern int imx6q_cpuidle_init (void );extern int imx6sl_cpuidle_init (void ); -extern int imx6sll_cpuidle_init (void );extern int imx6sx_cpuidle_init (void );extern int imx6ul_cpuidle_init (void );extern int imx7d_cpuidle_init (void );@@ -32,10 +40,6 @@ static inline int imx6sl_cpuidle_init(void) {return 0 ; } -static inline int imx6sll_cpuidle_init(void) -{ -return 0 ; -}static inline int imx6sx_cpuidle_init (void ) {return 0 ; --2.13.0
Hi Jacky,
Quoted 3 lines · Jacky Bai
Hi Alejandro,
Can you tell me the steps for reproducing this build error? Thanks.
http://sprunge.us/ReRQ is the defconfig I'm including via a linux-fslc-imx_4.1-2.0.x.bbappend pointing to git via EXTERNALSRC
it was working fine by Otavio's "Merge tag 'v4.1.39' into 4.1-2.0.x-imx" but broke as described after v4.1.41's
Quoted 8 lines
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x9938): undefined reference toimx6sll_lpddr2_freq_change' platform-imx-dma.c:(.text+0x993c): undefined reference toimx6sll_lpddr2_freq_change'arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0xdef0): undefined reference to `imx6sll_cpuidle_init'
http://sprunge.us/fiMU is the .config that gets made during the build of the package
I believe it's simply because CONFIG_SOC_IMX6SLL is not defined by my defconfig
Quoted 20 lines · Alejandro Mery
Quoted 3 lines · Jacky Bai
Hi Alejandro,
Can you tell me the steps for reproducing this build error? Thanks.
http://sprunge.us/ReRQ is the defconfig I'm including via a linux-fslc-imx_4.1-2.0.x.bbappend pointing to git via EXTERNALSRC
it was working fine by Otavio's "Merge tag 'v4.1.39' into 4.1-2.0.x-imx" but broke as described after v4.1.41's
Quoted 8 lines
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x9938): undefined reference toimx6sll_lpddr2_freq_change' platform-imx-dma.c:(.text+0x993c): undefined reference toimx6sll_lpddr2_freq_change'arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0xdef0): undefined reference to `imx6sll_cpuidle_init'
Quoted 5 lines
http://sprunge.us/fiMU is the .config that gets made during the build of the package
I believe it's simply because
CONFIG_SOC_IMX6SLLis not defined by my defconfig
Indeed; it does seem to be the case. You fix seem to be right as we shouldn't be forced to enable it.
Can you open a pull request with the fix?
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [linux-fslc-imx][4.1-2.0.x-imx][PATCH] imx: fix typo and simple assumptions in imx6sll support - Message was found to be spam: (100%) URL is in DNSBL,
Quoted 23 lines · Otavio Salvador
Quoted 21 lines · Alejandro Mery
Quoted 3 lines · Jacky Bai
Hi Alejandro,
Can you tell me the steps for reproducing this build error? Thanks.
http://sprunge.us/ReRQ is the defconfig I'm including via a linux-fslc-imx_4.1-2.0.x.bbappend pointing to git via EXTERNALSRC
it was working fine by Otavio's "Merge tag 'v4.1.39' into 4.1-2.0.x-imx" but broke as described after v4.1.41's
Quoted 8 lines
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x9938): undefined reference toimx6sll_lpddr2_freq_change' platform-imx-dma.c:(.text+0x993c): undefined reference toimx6sll_lpddr2_freq_change'arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0xdef0): undefined reference to `imx6sll_cpuidle_init'http://sprunge.us/fiMU is the .config that gets made during the build of the package
Quoted 6 lines
Quoted 2 lines
I believe it's simply because
CONFIG_SOC_IMX6SLLis not defined by my defconfigIndeed; it does seem to be the case. You fix seem to be right as we shouldn't be forced to enable it.
Can you open a pull request with the fix?
github didn't let me fork freescale/linux-fslc because I already have one fork with ancestry going back to torvalds/linux
and then it didn't allow me to initiate a pull request from a non-fork but the url is there
The following changes since commit5c7513c4866175f5057fbe1d039e53e00a2dba53:
Merge tag 'v4.1.41' into 4.1-2.0.x-imx (2017-06-17 10:40:10 -0300)
are available in the git repository at:
https://github.com/amery/linux-fslc 4.1-2.0.x-imx-for-otavio
for you to fetch changes up to 25a1fee6bf7f1dff303b2d840c9a5634be75b260:
imx: fix errors when CONFIG_SOC_IMX6SLL is not defined (2017-06-19
16:18:37 +0100)
----------------------------------------------------------------
Alejandro Mery (1):
imx: fix errors when CONFIG_SOC_IMX6SLL is not defined
arch/arm/mach-imx/common.c | 2 +- arch/arm/mach-imx/cpuidle.h | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-)
Re: [linux-fslc-imx][4.1-2.0.x-imx][PATCH] imx: fix typo and simple assumptions in imx6sll support - Message was found to be spam: (100%) URL is in DNSBL,
Quoted 52 lines · Alejandro Mery
Quoted 23 lines · Otavio Salvador
Quoted 21 lines · Alejandro Mery
Quoted 3 lines · Jacky Bai
Hi Alejandro,
Can you tell me the steps for reproducing this build error? Thanks.
http://sprunge.us/ReRQ is the defconfig I'm including via a linux-fslc-imx_4.1-2.0.x.bbappend pointing to git via EXTERNALSRC
it was working fine by Otavio's "Merge tag 'v4.1.39' into 4.1-2.0.x-imx" but broke as described after v4.1.41's
Quoted 8 lines
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x9938): undefined reference toimx6sll_lpddr2_freq_change' platform-imx-dma.c:(.text+0x993c): undefined reference toimx6sll_lpddr2_freq_change'arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0xdef0): undefined reference to `imx6sll_cpuidle_init'http://sprunge.us/fiMU is the .config that gets made during the build of the package
Quoted 6 lines
Quoted 2 lines
I believe it's simply because
CONFIG_SOC_IMX6SLLis not defined by my defconfigIndeed; it does seem to be the case. You fix seem to be right as we shouldn't be forced to enable it.
Can you open a pull request with the fix?
github didn't let me fork freescale/linux-fslc because I already have one fork with ancestry going back to torvalds/linux
and then it didn't allow me to initiate a pull request from a non-fork but the url is thereThe following changes since commit
5c7513c4866175f5057fbe1d039e53e00a2dba53:Merge tag 'v4.1.41' into 4.1-2.0.x-imx (2017-06-17 10:40:10 -0300)
are available in the git repository at:
https://github.com/amery/linux-fslc 4.1-2.0.x-imx-for-otavio
for you to fetch changes up to
25a1fee6bf7f1dff303b2d840c9a5634be75b260:imx: fix errors when
CONFIG_SOC_IMX6SLLis not defined (2017-06-19
16:18:37 +0100)
Quoted 7 lines
----------------------------------------------------------------
Alejandro Mery (1):
imx: fix errors whenCONFIG_SOC_IMX6SLLis not definedarch/arm/mach-imx/common.c | 2 +- arch/arm/mach-imx/cpuidle.h | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-)
Merged it :-)
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750