mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] mx53 loco: enable smsc phy driver
@ 2012-11-15 11:56 Jean-Christophe PLAGNIOL-VILLARD
  2012-11-15 13:40 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-11-15 11:56 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 arch/arm/configs/freescale_mx53_loco_defconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/freescale_mx53_loco_defconfig b/arch/arm/configs/freescale_mx53_loco_defconfig
index 37aa182..b50b050 100644
--- a/arch/arm/configs/freescale_mx53_loco_defconfig
+++ b/arch/arm/configs/freescale_mx53_loco_defconfig
@@ -53,6 +53,7 @@ CONFIG_NET_PING=y
 CONFIG_CMD_TFTP=y
 CONFIG_FS_TFTP=y
 CONFIG_NET_NETCONSOLE=y
+CONFIG_SMSC_PHY=y
 CONFIG_DRIVER_NET_FEC_IMX=y
 # CONFIG_SPI is not set
 CONFIG_I2C=y
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] mx53 loco: enable smsc phy driver
  2012-11-15 11:56 [PATCH 1/1] mx53 loco: enable smsc phy driver Jean-Christophe PLAGNIOL-VILLARD
@ 2012-11-15 13:40 ` Sascha Hauer
  2012-11-15 13:48   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2012-11-15 13:40 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Thu, Nov 15, 2012 at 12:56:02PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  arch/arm/configs/freescale_mx53_loco_defconfig |    1 +
>  1 file changed, 1 insertion(+)

We're getting closer \o/

With this the LOCO correctly waits for a link, unfortunately during
board init time. This is due to:

commit 3a17af33c01fd066ab3939c8218037c87ba26eed
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Fri Oct 26 16:16:54 2012 +0200

    net fec: connect phy at probe time
    
    Several i.MX boards (all i.MX6 boards) need to do some adjustments
    to phy registers. If barebox itself does not use network, networking
    won't work in the kernel if the kernel does not have the fixups. Connect
    the phy at probe time so that these tweaks are done during probe so that
    the kernel works without phy register tweaks. Also this has the effect
    that the phy device is present and introspectable without doing fake
    network transfers beforehand.

We could revert it which fixes things for the LOCO, but then we also
lose the phy fixups which this commit intentionally pushed to probe
time.

It would be nice to separate phy registration from actually waiting for
a link. I find it rather inconvenient anyway that the phy device pops
up during the first network transfer.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] mx53 loco: enable smsc phy driver
  2012-11-15 13:40 ` Sascha Hauer
@ 2012-11-15 13:48   ` Jean-Christophe PLAGNIOL-VILLARD
  2012-11-15 14:11     ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-11-15 13:48 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 14:40 Thu 15 Nov     , Sascha Hauer wrote:
> On Thu, Nov 15, 2012 at 12:56:02PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > ---
> >  arch/arm/configs/freescale_mx53_loco_defconfig |    1 +
> >  1 file changed, 1 insertion(+)
> 
> We're getting closer \o/
> 
> With this the LOCO correctly waits for a link, unfortunately during
> board init time. This is due to:
> 
> commit 3a17af33c01fd066ab3939c8218037c87ba26eed
> Author: Sascha Hauer <s.hauer@pengutronix.de>
> Date:   Fri Oct 26 16:16:54 2012 +0200
> 
>     net fec: connect phy at probe time
>     
>     Several i.MX boards (all i.MX6 boards) need to do some adjustments
>     to phy registers. If barebox itself does not use network, networking
>     won't work in the kernel if the kernel does not have the fixups. Connect
>     the phy at probe time so that these tweaks are done during probe so that
>     the kernel works without phy register tweaks. Also this has the effect
>     that the phy device is present and introspectable without doing fake
>     network transfers beforehand.
> 
> We could revert it which fixes things for the LOCO, but then we also
> lose the phy fixups which this commit intentionally pushed to probe
> time.
> 
> It would be nice to separate phy registration from actually waiting for
> a link. I find it rather inconvenient anyway that the phy device pops
> up during the first network transfer.

so we need to introduce a phy_start

that start the check of the link

but I think the kernel need to its own fixup and do not relay on the booloader
to do it for him

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] mx53 loco: enable smsc phy driver
  2012-11-15 13:48   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-11-15 14:11     ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-11-15 14:11 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Thu, Nov 15, 2012 at 02:48:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 14:40 Thu 15 Nov     , Sascha Hauer wrote:
> > On Thu, Nov 15, 2012 at 12:56:02PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > > ---
> > >  arch/arm/configs/freescale_mx53_loco_defconfig |    1 +
> > >  1 file changed, 1 insertion(+)
> > 
> > We're getting closer \o/
> > 
> > With this the LOCO correctly waits for a link, unfortunately during
> > board init time. This is due to:
> > 
> > commit 3a17af33c01fd066ab3939c8218037c87ba26eed
> > Author: Sascha Hauer <s.hauer@pengutronix.de>
> > Date:   Fri Oct 26 16:16:54 2012 +0200
> > 
> >     net fec: connect phy at probe time
> >     
> >     Several i.MX boards (all i.MX6 boards) need to do some adjustments
> >     to phy registers. If barebox itself does not use network, networking
> >     won't work in the kernel if the kernel does not have the fixups. Connect
> >     the phy at probe time so that these tweaks are done during probe so that
> >     the kernel works without phy register tweaks. Also this has the effect
> >     that the phy device is present and introspectable without doing fake
> >     network transfers beforehand.
> > 
> > We could revert it which fixes things for the LOCO, but then we also
> > lose the phy fixups which this commit intentionally pushed to probe
> > time.
> > 
> > It would be nice to separate phy registration from actually waiting for
> > a link. I find it rather inconvenient anyway that the phy device pops
> > up during the first network transfer.
> 
> so we need to introduce a phy_start
> 
> that start the check of the link
> 
> but I think the kernel need to its own fixup and do not relay on the booloader
> to do it for him

I agree, the kernel should not depend on the bootloader, still it's
convenient that kernels without support for this specific board will
just work. I can live with reverting the patch for this release though.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-15 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 11:56 [PATCH 1/1] mx53 loco: enable smsc phy driver Jean-Christophe PLAGNIOL-VILLARD
2012-11-15 13:40 ` Sascha Hauer
2012-11-15 13:48   ` Jean-Christophe PLAGNIOL-VILLARD
2012-11-15 14:11     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox