This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

emac1 trouble, can't initialize

Hi,

We are using the dm8168 along with the z3 board and trying to enable a second ethernet device.  The z3 has an ethernet Realtek device on it which is attached to phy 0:01 and works fine.  Our development board we have our own ethernet device (vitesse vsc8461) this device gets recognized but doesn't work at all.

The kernel seems to detect it and activate it but once it does the dhcp request for eth0 (phy 1) it closes the second device.  The closing is done in file net/ipv4/ipconfig.c line 1457, this is suppose to close all networks except for the one that was configured.  If i comment out that line the kernel doesn't close the second device but it doesn't run it properly either.

I'm wondering if there's a way for the kernel to support multiple phy devices?  I'm assuming there is since the dm8168edu had two ethernet devices on it.  I was hoping to get some help with this since I can't seem to resolve it myself.

On a side note the mach-omap2/devices.c file has been modified to support both devices.  The pin mux values are set, an emac_platform_data structure is there for both 1 and 2, the values are initialized according to how emac1 was set up and i've also added .phy_id to the cpsw_slave_data struc.  One thing about that is i'm not sure what the .slave_reg_ofs and .sliver_reg_ofs are supposed to be, currently they are 0xd0 and 0x780 for phy 2.

Let me know if you need more info to further help me out in this process.  

Rodrigo