> @@ -2711,6 +2789,10 @@ static int cpsw_probe_dt(struct cpsw_platform_data 
> *data,
>       if (of_property_read_bool(node, "dual_emac"))
>               data->switch_mode = CPSW_DUAL_EMAC;
>  
> +     /* switchdev overrides DTS */
> +     if (IS_ENABLED(CONFIG_TI_CPSW_SWITCHDEV))
> +             data->switch_mode = CPSW_SWITCHDEV;
> +

I know you discussed this a bit with Jiri, but i still think if
'dual_mac" is found, you should do dual mac. The DT clearly requests
dual mac, and doing anything else is going to cause confusion.

The device tree binding is ambiguous what should happen when dual-mac
is missing. So i would only enable swithdev mode in that case.

But ideally, it should be a new driver with a new binding.

    Andrew

Reply via email to