History

bus: fsl-mc: add the fsl_mc_get_endpoint function

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.

Ioana Ciornei committed 7 years ago

Commit 1ac210d1 parent 6fff8c05 files · +132 −4Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/fsl/mc.h+2−0
@@ -403,6 +403,8 @@ int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); · 402 unmodified lines
403403
404404 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev);
405405
406+struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev);
407+
406408 extern struct bus_type fsl_mc_bus_type;
407409
408410 extern struct device_type fsl_mc_bus_dprc_type;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t