All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
@ 2022-10-28  9:57 Vee Khee Wong
  2022-10-28 10:44   ` Sit, Michael Wei Hong
  0 siblings, 1 reply; 9+ messages in thread
From: Vee Khee Wong @ 2022-10-28  9:57 UTC (permalink / raw)
  To: michael.wei.hong.sit
  Cc: alexandre.torgue, davem, edumazet, hong.aun.looi, joabreu, kuba,
	linux-arm-kernel, linux-kernel, linux-stm32, mcoquelin.stm32,
	muhammad.husaini.zulkifli, netdev, pabeni, peppe.cavallaro,
	tee.min.tan, weifeng.voon, yi.fang.gan, yoong.siang.song

What is the purpose of this patch?

The function definition looks exactly the same as ‘tgl_sgmii_phy0_data’.


Regards,
Vee Khee

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
@ 2022-10-28  7:38 ` Michael Sit Wei Hong
  0 siblings, 0 replies; 9+ messages in thread
From: Michael Sit Wei Hong @ 2022-10-28  7:38 UTC (permalink / raw)
  To: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
	David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Maxime Coquelin, netdev, linux-stm32, linux-arm-kernel,
	linux-kernel
  Cc: Looi Hong Aun, Voon Weifeng, Song Yoong Siang, Tan Tee Min,
	Zulkifli Muhammad Husaini, Gan Yi Fang

Separating the ADL-N and RPL-P device IDs from TGL to handle the
differences from TGL.

Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
---
 .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
index 0a2afc1a3124..2eb8e31be1a2 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
@@ -830,6 +830,21 @@ static int adls_sgmii_phy1_data(struct pci_dev *pdev,
 static struct stmmac_pci_info adls_sgmii1g_phy1_info = {
 	.setup = adls_sgmii_phy1_data,
 };
+
+static int adln_sgmii_phy0_data(struct pci_dev *pdev,
+				struct plat_stmmacenet_data *plat)
+{
+	plat->bus_id = 1;
+	plat->phy_interface = PHY_INTERFACE_MODE_SGMII;
+	plat->serdes_powerup = intel_serdes_powerup;
+	plat->serdes_powerdown = intel_serdes_powerdown;
+	return tgl_common_data(pdev, plat);
+}
+
+static struct stmmac_pci_info adln_sgmii1g_phy0_info = {
+	.setup = adln_sgmii_phy0_data,
+};
+
 static const struct stmmac_pci_func_data galileo_stmmac_func_data[] = {
 	{
 		.func = 6,
@@ -1212,8 +1227,8 @@ static const struct pci_device_id intel_eth_pci_id_table[] = {
 	{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_1, &tgl_sgmii1g_phy1_info) },
 	{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_0, &adls_sgmii1g_phy0_info) },
 	{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_1, &adls_sgmii1g_phy1_info) },
-	{ PCI_DEVICE_DATA(INTEL, ADLN_SGMII1G, &tgl_sgmii1g_phy0_info) },
-	{ PCI_DEVICE_DATA(INTEL, RPLP_SGMII1G, &tgl_sgmii1g_phy0_info) },
+	{ PCI_DEVICE_DATA(INTEL, ADLN_SGMII1G, &adln_sgmii1g_phy0_info) },
+	{ PCI_DEVICE_DATA(INTEL, RPLP_SGMII1G, &adln_sgmii1g_phy0_info) },
 	{}
 };
 MODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-11-01  3:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28  9:57 [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL Vee Khee Wong
2022-10-28 10:44 ` Sit, Michael Wei Hong
2022-10-28 10:44   ` Sit, Michael Wei Hong
2022-10-28 19:07   ` Jakub Kicinski
2022-10-28 19:07     ` Jakub Kicinski
2022-11-01  3:18     ` Looi, Hong Aun
2022-11-01  3:18       ` Looi, Hong Aun
  -- strict thread matches above, loose matches on Subject: below --
2022-10-28  7:38 Michael Sit Wei Hong
2022-10-28  7:38 ` Michael Sit Wei Hong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.