mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 08:57:53 +04:00
Backport v7.3 phylink patches to the generic target required for the latest fwnode phylink PCS patches which support multiple (sub-)targets, including MTK and qualcommax. This update includes better PCS release logic, switch to full notifier add/release PCS handling, devres managed PCS provider variant and general code improvements. In addition, update every user to the latest fwnode phylink PCS API. In the latest API, fwnode_pcs_add_provider() returns a pointer to the provider or the error code instead of the previous plain return value. As such, update error handling and add a descriptive error message upon failure. Also the provider remove logic changed and with the support of devres API, switch every user to devm_ variant. Signed-off-by: George Moussalem <george.moussalem@outlook.com> [ improve commit description, refresh patch, update any driver to new API] Co-Developed-by: Christian Marangi <ansuelsmth@gmail.com> Link: https://github.com/openwrt/openwrt/pull/24973 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>