[PATCH] net: dm9k: show only one phy on miibus

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 10 23:11:38 PDT 2014


On Wed, Sep 10, 2014 at 11:51:12AM +0400, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
>  drivers/net/dm9k.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/net/dm9k.c b/drivers/net/dm9k.c
> index 3a4c6aa..950bdb3 100644
> --- a/drivers/net/dm9k.c
> +++ b/drivers/net/dm9k.c
> @@ -359,6 +359,11 @@ static int dm9k_phy_read(struct mii_bus *bus, int addr, int reg)
>  	struct dm9k *priv = bus->priv;
>  	struct device_d *dev = &bus->dev;
>  
> +	/* Show only one phy on miibus */
> +	if (addr != 0) {
> +		return 0xffff;
> +	}

In the datasheet I can see that the dm9000 has an internal phy but also
supports an external phy. The above seems true for the internal, but
what about the external? Is support for this missing anyway since I
can't find any references in the code?

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 |



More information about the barebox mailing list