Re: [PATCH v5 net-next 08/13] net: dsa: felix: add functionality when not all ports are supported

From: Florian Fainelli
Date: Fri Jan 27 2023 - 14:46:52 EST




On 1/27/2023 11:35 AM, Colin Foster wrote:
When the Felix driver would probe the ports and verify functionality, it
would fail if it hit single port mode that wasn't supported by the driver.

The initial case for the VSC7512 driver will have physical ports that
exist, but aren't supported by the driver implementation. Add the
OCELOT_PORT_MODE_NONE macro to handle this scenario, and allow the Felix
driver to continue with all the ports that are currently functional.

Signed-off-by: Colin Foster <colin.foster@xxxxxxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian