Have a great day,
It is possible. You can write drivers required by the EP port and RC port independently. As example of PCIe EP port using under Linux see 8.6 PCIe DMA Test User Manual in QorIQ SDK V2.0-1703 Documentation
https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------