提交 ecadf4e7 编写于 作者: I Iyappan Subramanian 提交者: David S. Miller

drivers: net: xgene: fix new firmware backward compatibility with older driver

This patch fixes the backward compatibile of the older driver with the
newer firmware by making the binding unique so that the older driver won't
recognize the non-supported interfaces.
Signed-off-by: NIyappan Subramanian <isubramanian@apm.com>
Signed-off-by: NKeyur Chudgar <kchudgar@apm.com>
Tested-by: NMark Langsdorf <mlangsdo@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2a91eb72
...@@ -1025,6 +1025,8 @@ static int xgene_enet_remove(struct platform_device *pdev) ...@@ -1025,6 +1025,8 @@ static int xgene_enet_remove(struct platform_device *pdev)
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static const struct acpi_device_id xgene_enet_acpi_match[] = { static const struct acpi_device_id xgene_enet_acpi_match[] = {
{ "APMC0D05", }, { "APMC0D05", },
{ "APMC0D30", },
{ "APMC0D31", },
{ } { }
}; };
MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match); MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match);
...@@ -1033,6 +1035,8 @@ MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match); ...@@ -1033,6 +1035,8 @@ MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match);
#ifdef CONFIG_OF #ifdef CONFIG_OF
static struct of_device_id xgene_enet_of_match[] = { static struct of_device_id xgene_enet_of_match[] = {
{.compatible = "apm,xgene-enet",}, {.compatible = "apm,xgene-enet",},
{.compatible = "apm,xgene1-sgenet",},
{.compatible = "apm,xgene1-xgenet",},
{}, {},
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册