linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: ocp emac phy wierdness
  2002-08-23  7:19 ocp emac phy wierdness David Gibson
@ 2002-08-22 18:09 ` Armin Kuster
  2002-08-26  1:18   ` David Gibson
  0 siblings, 1 reply; 3+ messages in thread
From: Armin Kuster @ 2002-08-22 18:09 UTC (permalink / raw)
  To: David Gibson; +Cc: linuxppc-embedded


David,

The whole phy idea back when I did it was modeled after the fec.c driver
with the thought that at some point we could merge all phy_info structs
into a common file.  The same idea was applied to the mii routines.  I
noticed that code/information is duplicated in a few ethernet drivers in
ppc.  Some of the what you see will be used when we add link support
driver, some of the 4xx boards with zmii bridges have interrupt
capability.  The phy implementation is a project that is not completed. :)

Armin


David Gibson wrote:

>There seems to be a whole lot of stuff related to phy handling with no
>clear purpose to it.  The table phy_cmd_config appears to be unused,
>as are the functions mii_queue_config, mii_display_config.
>
>Furthermore process_mii_queue() is dispatched through schedule_task(),
>from mii_queue_schedule().  But the only place that is called is in
>ppc405_enet_open(), which immediately calls schedule() to wait for the
>job to be completed.  So what the hell is the point of the
>schedule_task() rigmarole?
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* ocp emac phy wierdness
@ 2002-08-23  7:19 David Gibson
  2002-08-22 18:09 ` Armin Kuster
  0 siblings, 1 reply; 3+ messages in thread
From: David Gibson @ 2002-08-23  7:19 UTC (permalink / raw)
  To: Armin Kuster; +Cc: linuxppc-embedded


There seems to be a whole lot of stuff related to phy handling with no
clear purpose to it.  The table phy_cmd_config appears to be unused,
as are the functions mii_queue_config, mii_display_config.

Furthermore process_mii_queue() is dispatched through schedule_task(),
from mii_queue_schedule().  But the only place that is called is in
ppc405_enet_open(), which immediately calls schedule() to wait for the
job to be completed.  So what the hell is the point of the
schedule_task() rigmarole?

--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: ocp emac phy wierdness
  2002-08-22 18:09 ` Armin Kuster
@ 2002-08-26  1:18   ` David Gibson
  0 siblings, 0 replies; 3+ messages in thread
From: David Gibson @ 2002-08-26  1:18 UTC (permalink / raw)
  To: Armin Kuster; +Cc: linuxppc-embedded


On Thu, Aug 22, 2002 at 11:09:19AM -0700, Armin Kuster wrote:
>
> David,
>
> The whole phy idea back when I did it was modeled after the fec.c driver
> with the thought that at some point we could merge all phy_info structs
> into a common file.  The same idea was applied to the mii routines.  I
> noticed that code/information is duplicated in a few ethernet drivers in
> ppc.  Some of the what you see will be used when we add link support
> driver, some of the 4xx boards with zmii bridges have interrupt
> capability.  The phy implementation is a project that is not completed. :)

By all means share the phy_info structures between ethernet drivers.
That doesn't explain why:
	a) We queue the various phy operations, then process the
queue, rather than just stepping through the commands as soon as
requested.
	b) Why the queue is processed with schedule_task(), rather
than directly inline.

> David Gibson wrote:
>
> >There seems to be a whole lot of stuff related to phy handling with no
> >clear purpose to it.  The table phy_cmd_config appears to be unused,
> >as are the functions mii_queue_config, mii_display_config.
> >
> >Furthermore process_mii_queue() is dispatched through schedule_task(),
> >from mii_queue_schedule().  But the only place that is called is in
> >ppc405_enet_open(), which immediately calls schedule() to wait for the
> >job to be completed.  So what the hell is the point of the
> >schedule_task() rigmarole?

--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-08-26  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-23  7:19 ocp emac phy wierdness David Gibson
2002-08-22 18:09 ` Armin Kuster
2002-08-26  1:18   ` David Gibson

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).