linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFT PATCH 1/2] stmmac: dwmac-loongson: drop useless check for compatible fallback
@ 2023-06-16 10:31 Krzysztof Kozlowski
  2023-06-16 10:31 ` [RFT PATCH 2/2] MIPS: dts: loongson: drop incorrect dwmac fallback compatible Krzysztof Kozlowski
  2023-06-16 18:52 ` [RFT PATCH 1/2] stmmac: dwmac-loongson: drop useless check for compatible fallback Conor Dooley
  0 siblings, 2 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-16 10:31 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Bogendoerfer, Giuseppe Cavallaro, Alexandre Torgue,
	Jose Abreu, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Maxime Coquelin, devicetree, linux-mips,
	linux-kernel, netdev, linux-stm32, linux-arm-kernel
  Cc: Krzysztof Kozlowski

Device binds to proper PCI ID (LOONGSON, 0x7a03), already listed in DTS,
so checking for some other compatible does not make sense.  It cannot be
bound to unsupported platform.

Drop useless, incorrect (space in between) and undocumented compatible.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
index a25c187d3185..900972521b59 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
@@ -59,11 +59,6 @@ static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id
 		return -ENODEV;
 	}
 
-	if (!of_device_is_compatible(np, "loongson, pci-gmac")) {
-		pr_info("dwmac_loongson_pci: Incompatible OF node\n");
-		return -ENODEV;
-	}
-
 	plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL);
 	if (!plat)
 		return -ENOMEM;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-11  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 10:31 [RFT PATCH 1/2] stmmac: dwmac-loongson: drop useless check for compatible fallback Krzysztof Kozlowski
2023-06-16 10:31 ` [RFT PATCH 2/2] MIPS: dts: loongson: drop incorrect dwmac fallback compatible Krzysztof Kozlowski
2023-06-16 18:52   ` Conor Dooley
2023-06-16 18:52 ` [RFT PATCH 1/2] stmmac: dwmac-loongson: drop useless check for compatible fallback Conor Dooley
2023-12-10  6:48   ` Yanteng Si
2023-12-11  9:17     ` Jiaxun Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).