Using the newly added fsl_mc_get_endpoint function a fsl-mc driver can find its associated endpoint (another object at the other link of a MC firmware link). The API will be used in the following patch in order to discover the connected DPMAC object of a DPNI. Also, the fsl_mc_device_lookup function is made available to the entire fsl-mc bus driver and not just for the dprc driver.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -403,6 +403,8 @@ int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); · 402 unmodified lines | |||
| 403 | 403 | ||
| 404 | void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); | 404 | void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); |
| 405 | 405 | ||
| 406 | struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev); | ||
| 407 | |||
| 406 | extern struct bus_type fsl_mc_bus_type; | 408 | extern struct bus_type fsl_mc_bus_type; |
| 407 | 409 | ||
| 408 | extern struct device_type fsl_mc_bus_dprc_type; | 410 | extern struct device_type fsl_mc_bus_dprc_type; |