netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DSA incompatible with TI CPSW device model in dual mac mode
@ 2019-01-18 23:09 Daniele Orlandi
  2019-01-20 17:30 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Daniele Orlandi @ 2019-01-18 23:09 UTC (permalink / raw)
  To: netdev@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]


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 #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3994 bytes --]

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

end of thread, other threads:[~2019-01-21 16:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-18 23:09 DSA incompatible with TI CPSW device model in dual mac mode Daniele Orlandi
2019-01-20 17:30 ` Andrew Lunn
2019-01-21 14:57   ` Daniele Orlandi
2019-01-21 16:55     ` Andrew Lunn

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