Hello,

I am trying to connect a Marvell switch (88E6172) to an AM3352 ethernet port.

In the DSA devicetree description the CPU port has to have an "ethernet" attribute with a reference to a device node. From which it derives the net_device with a call of of_find_net_device_by_node

The CPSW driver, however, has a single device node with multiple (two) net_devices associated.

Thus, if I reference the "mac" (ethernet@4a100000) node the first (eth0) port is matched.

There is no way to actually reference eth1.

I patched dsa2.c to also support a "ethernet-name" attribute which references to the device by name but it is super ugly...


Any idea an what could be the best approach for such scenarios?

Thanks,
Regards,

--
  Daniele Orlandi

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to