* [PATCH] ARM: mach-davinci: Select PHYLIB for ARCH_DAVINCI_DM644x
@ 2011-08-21 5:09 Axel Lin
2011-09-01 16:24 ` Nori, Sekhar
0 siblings, 1 reply; 3+ messages in thread
From: Axel Lin @ 2011-08-21 5:09 UTC (permalink / raw)
To: linux-arm-kernel
We call phy_register_fixup_for_uid in davinci_evm_init, thus we need
select PHYLIB to fix below build error: (with "make davinci_all_defconfig")
LD .tmp_vmlinux1
arch/arm/mach-davinci/built-in.o: In function `davinci_phy_fixup':
pm.c:(.text+0x35b8): undefined reference to `mdiobus_read'
pm.c:(.text+0x35d4): undefined reference to `mdiobus_write'
arch/arm/mach-davinci/built-in.o: In function `davinci_evm_init':
pm.c:(.init.text+0x237c): undefined reference to `phy_register_fixup_for_uid'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
arch/arm/mach-davinci/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
index c0deaca..029ec46b 100644
--- a/arch/arm/mach-davinci/Kconfig
+++ b/arch/arm/mach-davinci/Kconfig
@@ -18,6 +18,7 @@ config ARCH_DAVINCI_DM644x
bool "DaVinci 644x based system"
select AINTC
select ARCH_DAVINCI_DMx
+ select PHYLIB
config ARCH_DAVINCI_DM355
bool "DaVinci 355 based system"
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: mach-davinci: Select PHYLIB for ARCH_DAVINCI_DM644x
2011-08-21 5:09 [PATCH] ARM: mach-davinci: Select PHYLIB for ARCH_DAVINCI_DM644x Axel Lin
@ 2011-09-01 16:24 ` Nori, Sekhar
2011-09-01 23:40 ` Axel Lin
0 siblings, 1 reply; 3+ messages in thread
From: Nori, Sekhar @ 2011-09-01 16:24 UTC (permalink / raw)
To: linux-arm-kernel
Hi Axel,
On Sun, Aug 21, 2011 at 10:39:08, Axel Lin wrote:
> We call phy_register_fixup_for_uid in davinci_evm_init, thus we need
> select PHYLIB to fix below build error: (with "make davinci_all_defconfig")
This shouldn't happen with davinci_all_defconfig as it
selects PHYLIB (this doesn't undermine the need for a fix).
>
> LD .tmp_vmlinux1
> arch/arm/mach-davinci/built-in.o: In function `davinci_phy_fixup':
> pm.c:(.text+0x35b8): undefined reference to `mdiobus_read'
> pm.c:(.text+0x35d4): undefined reference to `mdiobus_write'
> arch/arm/mach-davinci/built-in.o: In function `davinci_evm_init':
> pm.c:(.init.text+0x237c): undefined reference to `phy_register_fixup_for_uid'
> make: *** [.tmp_vmlinux1] Error 1
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> arch/arm/mach-davinci/Kconfig | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
> index c0deaca..029ec46b 100644
> --- a/arch/arm/mach-davinci/Kconfig
> +++ b/arch/arm/mach-davinci/Kconfig
> @@ -18,6 +18,7 @@ config ARCH_DAVINCI_DM644x
> bool "DaVinci 644x based system"
> select AINTC
> select ARCH_DAVINCI_DMx
> + select PHYLIB
Selecting PHYLIB for the SoC isn't right because
only the EVM is affected by this issue.
Also, instead of selecting PHYLIB, a better fix
would be to define the fixup function within
#ifdef PHYLIB and have an empty fixup registration
function in case PHYLIB is not defined (which
should happen only when EMAC driver is not configured
in which case a fixup is not required anyway).
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: mach-davinci: Select PHYLIB for ARCH_DAVINCI_DM644x
2011-09-01 16:24 ` Nori, Sekhar
@ 2011-09-01 23:40 ` Axel Lin
0 siblings, 0 replies; 3+ messages in thread
From: Axel Lin @ 2011-09-01 23:40 UTC (permalink / raw)
To: linux-arm-kernel
2011/9/2 Nori, Sekhar <nsekhar@ti.com>:
> Hi Axel,
>
> On Sun, Aug 21, 2011 at 10:39:08, Axel Lin wrote:
>> We call phy_register_fixup_for_uid in davinci_evm_init, thus we need
>> select PHYLIB to fix below build error: (with "make davinci_all_defconfig")
>
> This shouldn't happen with davinci_all_defconfig as it
> selects PHYLIB (this doesn't undermine the need for a fix).
I remember that I got the build error with davinci_all_defconfig, but
the build seems ok now with linux-next ( next-20110831 ).
Regards,
Axel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-01 23:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-21 5:09 [PATCH] ARM: mach-davinci: Select PHYLIB for ARCH_DAVINCI_DM644x Axel Lin
2011-09-01 16:24 ` Nori, Sekhar
2011-09-01 23:40 ` Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).