Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Herbert Valerio Riedel <hvr@gnu.org>
To: Mark Schank <mschank@dcbnet.com>
Cc: ppopov@embeddedalley.com, sshtylyov@ru.mvista.com,
	linux-mips@linux-mips.org, jgarzik@pobox.com
Subject: Re: RFC: au1000_etc.c phylib rewrite
Date: Tue, 02 May 2006 08:23:47 +0200	[thread overview]
Message-ID: <1146551027.19659.12.camel@localhost.localdomain> (raw)
In-Reply-To: <5.1.0.14.2.20060501144633.025e4e20@205.166.54.3>

On Mon, 2006-05-01 at 15:09 -0500, Mark Schank wrote:
> The Cogent CSB655 used the Broadcom Dual Phy.  They eventually redesigned 
> the board and switched to two single Broadcom phys, but they continued to 
> control both phys through MAC0, which is the actual purpose of the dual-phy 
> hack.  I am a user of the CSB655, so I sort of care.
> 
> Will the new PHY framework allow a second PHY for a second MAC (MAC1) be 
> controlled from the first MAC's (MAC0) mdio interface?

should'nt be a problem (as opposed to the bosporus case... see below)...
I assume the phy-addresses on which the boarcom dual phy is configured
are the same for all Cogent CSB655 boards?

does this need to be autodetected dynamically at runtime, or can we rely
on a compile time Kconfig-conditional to set a static phy-addr<->eth%
d-phy mapping for this board-specific case? Or de we really need such a
complex mii_probe() function to detect weird scenarios? :)

using static phy addr mappings would also allow for setting
board-specific phy-irq assignments, which would then be handled by the
phylib facilities, instead of polling the status of phy with a timer;
(and in case we don't have any board-specific compile time setting, we
can still fall back to search the phy-addresses for a PHY at runtime as
the generic case)

while at it, what about that CONFIG_MIPS_BOSPORUS special case? why
doesn't the 2nd MAC see any PHY? how is the 2nd MAC connected to the
physical world?

#ifdef CONFIG_MIPS_BOSPORUS
        /* This is a workaround for the Micrel/Kendin 5 port switch
           The second MAC doesn't see a PHY connected... so we need to
           trick it into thinking we have one.

           If this kernel is run on another Au1500 development board
           the stub will be found as well as the actual PHY. However,
           the last found PHY will be used... usually at Addr 31 (Db1500).
        */


> Yes, I acknowledge this was a bad design, but its what I am stuck with.

:-)
-- 
Herbert Valerio Riedel <hvr@gnu.org>

  reply	other threads:[~2006-05-02  6:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 19:09 RFC: au1000_etc.c phylib rewrite Herbert Valerio Riedel
2006-05-01 19:15 ` Pete Popov
2006-05-01 20:05   ` Robin H. Johnson
2006-05-01 20:09   ` Mark Schank
2006-05-02  6:23     ` Herbert Valerio Riedel [this message]
2006-05-02 16:20       ` Mark Schank
2006-05-03 16:34         ` Herbert Valerio Riedel
2006-05-03 18:01           ` Mark Schank
2006-05-04  6:49           ` Robin H. Johnson
2006-05-04  9:17           ` RFC: new WIP version of au1000_eth.c phylib conversion (was Re: RFC: au1000_etc.c phylib rewrite) Herbert Valerio Riedel
2006-05-08 22:24             ` Andy Fleming
2006-05-09  2:04               ` Herbert Valerio Riedel
2006-05-05  0:36           ` RFC: au1000_etc.c phylib rewrite Andy Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1146551027.19659.12.camel@localhost.localdomain \
    --to=hvr@gnu.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-mips@linux-mips.org \
    --cc=mschank@dcbnet.com \
    --cc=ppopov@embeddedalley.com \
    --cc=sshtylyov@ru.mvista.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox