diff for duplicates of <4E68922D.8020805@televic.com> diff --git a/a/1.txt b/N1/1.txt index 2ad09a0..74042cc 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,4 +2,78 @@ On 09/08/2011 10:39 AM, Florian Fainelli wrote: > > Hello Jurgen, > -> On Thursday 08 September 2011 08:54:07 Lambrecht J +> On Thursday 08 September 2011 08:54:07 Lambrecht Jürgen wrote: +> > Hello, +> > +> > In our embedded designs, this is a useful patch. Maybe it can be useful +> > for somebody else too. +> > Or maybe there are already better solutions? +> > I know I could also write a driver for our switch, but that is too much +> > effort just to select the active port. +> +> This is not going to work well with all switches out there. You could +> use the +> +Do not all switches follow the basic MII register map with room for 31 +phy's? +> +> fixed-PHY driver to make your ethernet driver see the link as always +> up between +> the MAC and switch CPU port. +> +Indeed, I tried to, but it didn't work. (would be my preferred solution) +I juist enabled FIXED_PHY in menuconfig (and kept MII, NET_ETHERNET and +FEC (for my iMX cpu); also PHYLIB is on that makes mdio_bus.c compile). +I checked the architecture file for mpc866ads and didn't find any init +for it, but maybe I need to initialize fixed-PHY somewhere? + +However, it could be interesting sometimes from application side to know +if the real external link is up, then fixed-PHY is not ok. +> +> +> A better solution would be to have proper switch drivers and +> user-space, which +> reminds me that we (OpenWrt) should at some point propose our switch +> drivers +> [1] for review. +> +> [1]: +> https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/ +> +Just had a fast look to the Marvell switch driver. Nice to know it is there. +> +> +> > +> > Kind regards, +> > Jürgen +> > +> > In embedded design, instead of a PHY, sometimes a switch is used that +> > behaves as a PHY through its MII port. For example to use a +> > daisy chain network configuration instead of an expensive star +> config. In +> > that case, many phy ports are available, but only 1 should be used +> > to check link status, and not the first one available as is +> > the case +> > without this configuration (that is, set to its default value +> > 0). So this options specifies the switch port number to be used to check +> > link status, because if the link is down, no data is sent +> by the +> > TCP/IP stack. +> > +> > Signed-off-by: Jürgen Lambrecht <J.Lambrecht@televic.com> +> > --- +> +[snip] +> +> -- +> Florian +> + + +-- +Jürgen Lambrecht +R&D Associate +Tel: +32 (0)51 303045 Fax: +32 (0)51 310670 +http://www.televic-rail.com +Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium +Company number 0825.539.581 - RPR Kortrijk diff --git a/a/content_digest b/N1/content_digest index 6eef054..74306c8 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -12,6 +12,80 @@ ">\n" "> Hello Jurgen,\n" ">\n" - > On Thursday 08 September 2011 08:54:07 Lambrecht J + "> On Thursday 08 September 2011 08:54:07 Lambrecht J\303\274rgen wrote:\n" + "> > Hello,\n" + "> >\n" + "> > In our embedded designs, this is a useful patch. Maybe it can be useful\n" + "> > for somebody else too.\n" + "> > Or maybe there are already better solutions?\n" + "> > I know I could also write a driver for our switch, but that is too much\n" + "> > effort just to select the active port.\n" + ">\n" + "> This is not going to work well with all switches out there. You could \n" + "> use the\n" + ">\n" + "Do not all switches follow the basic MII register map with room for 31 \n" + "phy's?\n" + ">\n" + "> fixed-PHY driver to make your ethernet driver see the link as always \n" + "> up between\n" + "> the MAC and switch CPU port.\n" + ">\n" + "Indeed, I tried to, but it didn't work. (would be my preferred solution)\n" + "I juist enabled FIXED_PHY in menuconfig (and kept MII, NET_ETHERNET and \n" + "FEC (for my iMX cpu); also PHYLIB is on that makes mdio_bus.c compile). \n" + "I checked the architecture file for mpc866ads and didn't find any init \n" + "for it, but maybe I need to initialize fixed-PHY somewhere?\n" + "\n" + "However, it could be interesting sometimes from application side to know \n" + "if the real external link is up, then fixed-PHY is not ok.\n" + ">\n" + ">\n" + "> A better solution would be to have proper switch drivers and \n" + "> user-space, which\n" + "> reminds me that we (OpenWrt) should at some point propose our switch \n" + "> drivers\n" + "> [1] for review.\n" + ">\n" + "> [1]:\n" + "> https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/\n" + ">\n" + "Just had a fast look to the Marvell switch driver. Nice to know it is there.\n" + ">\n" + ">\n" + "> >\n" + "> > Kind regards,\n" + "> > J\303\274rgen\n" + "> >\n" + "> > In embedded design, instead of a PHY, sometimes a switch is used that\n" + "> > behaves as a PHY through its MII port. For example to use a\n" + "> > daisy chain network configuration instead of an expensive star \n" + "> config. In\n" + "> > that case, many phy ports are available, but only 1 should be used\n" + "> > to check link status, and not the first one available as is\n" + "> > the case\n" + "> > without this configuration (that is, set to its default value\n" + "> > 0). So this options specifies the switch port number to be used to check\n" + "> > link status, because if the link is down, no data is sent \n" + "> by the\n" + "> > TCP/IP stack.\n" + "> >\n" + "> > Signed-off-by: J\303\274rgen Lambrecht <J.Lambrecht@televic.com>\n" + "> > ---\n" + ">\n" + "[snip]\n" + ">\n" + "> --\n" + "> Florian\n" + ">\n" + "\n" + "\n" + "-- \n" + "J\303\274rgen Lambrecht\n" + "R&D Associate\n" + "Tel: +32 (0)51 303045 Fax: +32 (0)51 310670\n" + "http://www.televic-rail.com\n" + "Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium\n" + Company number 0825.539.581 - RPR Kortrijk -0154214f2df20ca75ff297e8ae14718ac8442205af63be9838197eab878aa661 +b0c51cec35717cd9af985dc625041ea6016810d75127c7f5d9e29558dcf463bf
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.