Greetings, I'm working on adding DSA support for a PCIe expansion card (designed by us) that has common PCIe NIC connected via its mii-bus to a Marvell MV88E6171. Because the NIC is a PCIe device, it has no device-tree representation of its NIC or its mdio bus, but does register its mdio bus with Linux.
Does anyone know how I would be able to specify the Ethernet device and MDIO bus for this add-in card if it has no device-tree handle? I can write a phy driver that gets probed by matching the MV88E6171 PHY ID when the NIC's mdio bus get's registered yet even then I'm not clear how to get hold of the netdev pointer given the mdio bus so as to build a dsa_chip_data struct to register as a platform device. I'm also not clear in this case how to verify in this case if the MV88E6171 is from 'my' add-in card vs another card. Perhaps the right approach is to program the NIC's EEPROM on our board with a PCI_ID/DEVICE_ID of ours, add support for those ID's to the NIC's driver, and within the NIC's driver create and register dsa platform device when our ID is encountered? Thanks for any advise, Tim Tim Harvey - Principal Software Engineer Gateworks Corporation - http://www.gateworks.com/ 3026 S. Higuera St. San Luis Obispo CA 93401 805-781-2000 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html