[PATCH] net: zynq_gem: Add support for new compatible str with xlnx prefix

cdns prefix was deprecated and replaced by xlnx one.
Signed-off-by: Michal Simek michal.simek@amd.com ---
Link: https://lore.kernel.org/r/20220726070802.26579-1-krzysztof.kozlowski@linaro.... --- drivers/net/zynq_gem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 507b19b75975..fe98bcfb2b63 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -821,7 +821,8 @@ static int zynq_gem_probe(struct udevice *dev)
if (priv->interface == PHY_INTERFACE_MODE_SGMII && phy.dev) { if (IS_ENABLED(CONFIG_DM_ETH_PHY)) { - if (device_is_compatible(dev, "cdns,zynqmp-gem")) { + if (device_is_compatible(dev, "cdns,zynqmp-gem") || + device_is_compatible(dev, "xlnx,zynqmp-gem")) { ret = gem_zynqmp_set_dynamic_config(dev); if (ret) { dev_err @@ -922,8 +923,11 @@ static int zynq_gem_of_to_plat(struct udevice *dev) }
static const struct udevice_id zynq_gem_ids[] = { + { .compatible = "xlnx,versal-gem", .data = RXCLK_EN }, { .compatible = "cdns,versal-gem", .data = RXCLK_EN }, + { .compatible = "xlnx,zynqmp-gem" }, { .compatible = "cdns,zynqmp-gem" }, + { .compatible = "xlnx,zynq-gem" }, { .compatible = "cdns,zynq-gem" }, { .compatible = "cdns,gem" }, { }

On 09/12/2022 16:19, Michal Simek wrote:
cdns prefix was deprecated and replaced by xlnx one.
Signed-off-by: Michal Simek michal.simek@amd.com
Link: https://lore.kernel.org/r/20220726070802.26579-1-krzysztof.kozlowski@linaro....
Thanks.
Acked-by: Krzysztof Kozlowski krzysztof.kozlowski@linaro.org
Best regards, Krzysztof

On 12/9/22 16:19, Michal Simek wrote:
cdns prefix was deprecated and replaced by xlnx one.
Signed-off-by: Michal Simek michal.simek@amd.com
Link: https://lore.kernel.org/r/20220726070802.26579-1-krzysztof.kozlowski@linaro....
drivers/net/zynq_gem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 507b19b75975..fe98bcfb2b63 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -821,7 +821,8 @@ static int zynq_gem_probe(struct udevice *dev)
if (priv->interface == PHY_INTERFACE_MODE_SGMII && phy.dev) { if (IS_ENABLED(CONFIG_DM_ETH_PHY)) {
if (device_is_compatible(dev, "cdns,zynqmp-gem")) {
if (device_is_compatible(dev, "cdns,zynqmp-gem") ||
device_is_compatible(dev, "xlnx,zynqmp-gem")) { ret = gem_zynqmp_set_dynamic_config(dev); if (ret) { dev_err
@@ -922,8 +923,11 @@ static int zynq_gem_of_to_plat(struct udevice *dev) }
static const struct udevice_id zynq_gem_ids[] = {
- { .compatible = "xlnx,versal-gem", .data = RXCLK_EN }, { .compatible = "cdns,versal-gem", .data = RXCLK_EN },
- { .compatible = "xlnx,zynqmp-gem" }, { .compatible = "cdns,zynqmp-gem" },
- { .compatible = "xlnx,zynq-gem" }, { .compatible = "cdns,zynq-gem" }, { .compatible = "cdns,gem" }, { }
Applied. M
participants (2)
-
Krzysztof Kozlowski
-
Michal Simek