]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
net: ethernet: ti: am65-cpsw: use dev_id for ale configuration
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 10 Sep 2020 20:28:03 +0000 (23:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Sep 2020 00:34:39 +0000 (17:34 -0700)
The previous patch has introduced possibility to select CPSW ALE by using
ALE dev_id identifier. Switch TI TI AM65x/J721E CPSW NUSS driver to use
dev_id.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c

index 9baf3f3da91e1ca137637b72328f0a8554782dde..bec47e7943595932e5b7bd6058667ed69cde48e2 100644 (file)
@@ -2131,10 +2131,9 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev)
        /* init common data */
        ale_params.dev = dev;
        ale_params.ale_ageout = AM65_CPSW_ALE_AGEOUT_DEFAULT;
-       ale_params.ale_entries = 0;
        ale_params.ale_ports = common->port_num + 1;
        ale_params.ale_regs = common->cpsw_base + AM65_CPSW_NU_ALE_BASE;
-       ale_params.nu_switch_ale = true;
+       ale_params.dev_id = "am65x-cpsw2g";
 
        common->ale = cpsw_ale_create(&ale_params);
        if (IS_ERR(common->ale)) {