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

* RE: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
  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
  0 siblings, 0 replies; 9+ messages in thread
From: Sit, Michael Wei Hong @ 2022-10-28 10:44 UTC (permalink / raw)
  To: Vee Khee Wong
  Cc: alexandre.torgue, davem, edumazet, Looi, Hong Aun, joabreu, kuba,
	linux-arm-kernel, linux-kernel, linux-stm32, mcoquelin.stm32,
	Zulkifli, Muhammad Husaini, netdev, pabeni, peppe.cavallaro, Tan,
	Tee Min, Voon, Weifeng, Gan, Yi Fang, Song, Yoong Siang

This is to allow finer control on platform specific features for ADL and RPL.
There are some features that ADL and RPL doesn’t support and TGL supports vice versa.

Regards,
Michael

> -----Original Message-----
> From: Vee Khee Wong <veekhee@apple.com>
> Sent: Friday, October 28, 2022 5:58 PM
> To: Sit, Michael Wei Hong <michael.wei.hong.sit@intel.com>
> Cc: alexandre.torgue@foss.st.com; davem@davemloft.net;
> edumazet@google.com; Looi, Hong Aun
> <hong.aun.looi@intel.com>; joabreu@synopsys.com;
> kuba@kernel.org; linux-arm-kernel@lists.infradead.org; linux-
> kernel@vger.kernel.org; linux-stm32@st-md-
> mailman.stormreply.com; mcoquelin.stm32@gmail.com; Zulkifli,
> Muhammad Husaini <muhammad.husaini.zulkifli@intel.com>;
> netdev@vger.kernel.org; pabeni@redhat.com;
> peppe.cavallaro@st.com; Tan, Tee Min <tee.min.tan@intel.com>;
> Voon, Weifeng <weifeng.voon@intel.com>; Gan, Yi Fang
> <yi.fang.gan@intel.com>; Song, Yoong Siang
> <yoong.siang.song@intel.com>
> Subject: Re: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N
> and RPL-P device ID from TGL
> 
> 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

* RE: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
@ 2022-10-28 10:44   ` Sit, Michael Wei Hong
  0 siblings, 0 replies; 9+ messages in thread
From: Sit, Michael Wei Hong @ 2022-10-28 10:44 UTC (permalink / raw)
  To: Vee Khee Wong
  Cc: alexandre.torgue, davem, edumazet, Looi, Hong Aun, joabreu, kuba,
	linux-arm-kernel, linux-kernel, linux-stm32, mcoquelin.stm32,
	Zulkifli, Muhammad Husaini, netdev, pabeni, peppe.cavallaro, Tan,
	Tee Min, Voon, Weifeng, Gan, Yi Fang, Song, Yoong Siang

This is to allow finer control on platform specific features for ADL and RPL.
There are some features that ADL and RPL doesn’t support and TGL supports vice versa.

Regards,
Michael

> -----Original Message-----
> From: Vee Khee Wong <veekhee@apple.com>
> Sent: Friday, October 28, 2022 5:58 PM
> To: Sit, Michael Wei Hong <michael.wei.hong.sit@intel.com>
> Cc: alexandre.torgue@foss.st.com; davem@davemloft.net;
> edumazet@google.com; Looi, Hong Aun
> <hong.aun.looi@intel.com>; joabreu@synopsys.com;
> kuba@kernel.org; linux-arm-kernel@lists.infradead.org; linux-
> kernel@vger.kernel.org; linux-stm32@st-md-
> mailman.stormreply.com; mcoquelin.stm32@gmail.com; Zulkifli,
> Muhammad Husaini <muhammad.husaini.zulkifli@intel.com>;
> netdev@vger.kernel.org; pabeni@redhat.com;
> peppe.cavallaro@st.com; Tan, Tee Min <tee.min.tan@intel.com>;
> Voon, Weifeng <weifeng.voon@intel.com>; Gan, Yi Fang
> <yi.fang.gan@intel.com>; Song, Yoong Siang
> <yoong.siang.song@intel.com>
> Subject: Re: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N
> and RPL-P device ID from TGL
> 
> What is the purpose of this patch?
> 
> The function definition looks exactly the same as
> ‘tgl_sgmii_phy0_data’.
> 
> 
> Regards,
> Vee Khee
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
  2022-10-28 10:44   ` Sit, Michael Wei Hong
@ 2022-10-28 19:07     ` Jakub Kicinski
  -1 siblings, 0 replies; 9+ messages in thread
From: Jakub Kicinski @ 2022-10-28 19:07 UTC (permalink / raw)
  To: Sit, Michael Wei Hong
  Cc: Vee Khee Wong, alexandre.torgue, davem, edumazet, Looi, Hong Aun,
	joabreu, linux-arm-kernel, linux-kernel, linux-stm32,
	mcoquelin.stm32, Zulkifli, Muhammad Husaini, netdev, pabeni,
	peppe.cavallaro, Tan, Tee Min, Voon, Weifeng, Gan, Yi Fang, Song,
	Yoong Siang

On Fri, 28 Oct 2022 10:44:24 +0000 Sit, Michael Wei Hong wrote:
> This is to allow finer control on platform specific features for ADL and RPL.
> There are some features that ADL and RPL doesn’t support and TGL supports vice versa.

But if they are the same _right_ _now_ what's the point?
Please repost as part of a series which actually modifies
the contents.

Please remember not to top post on the ML.

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

* Re: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
@ 2022-10-28 19:07     ` Jakub Kicinski
  0 siblings, 0 replies; 9+ messages in thread
From: Jakub Kicinski @ 2022-10-28 19:07 UTC (permalink / raw)
  To: Sit, Michael Wei Hong
  Cc: Vee Khee Wong, alexandre.torgue, davem, edumazet, Looi, Hong Aun,
	joabreu, linux-arm-kernel, linux-kernel, linux-stm32,
	mcoquelin.stm32, Zulkifli, Muhammad Husaini, netdev, pabeni,
	peppe.cavallaro, Tan, Tee Min, Voon, Weifeng, Gan, Yi Fang, Song,
	Yoong Siang

On Fri, 28 Oct 2022 10:44:24 +0000 Sit, Michael Wei Hong wrote:
> This is to allow finer control on platform specific features for ADL and RPL.
> There are some features that ADL and RPL doesn’t support and TGL supports vice versa.

But if they are the same _right_ _now_ what's the point?
Please repost as part of a series which actually modifies
the contents.

Please remember not to top post on the ML.

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

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

* RE: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
  2022-10-28 19:07     ` Jakub Kicinski
@ 2022-11-01  3:18       ` Looi, Hong Aun
  -1 siblings, 0 replies; 9+ messages in thread
From: Looi, Hong Aun @ 2022-11-01  3:18 UTC (permalink / raw)
  To: Jakub Kicinski, Sit, Michael Wei Hong
  Cc: Vee Khee Wong, alexandre.torgue, davem, edumazet, joabreu,
	linux-arm-kernel, linux-kernel, linux-stm32, mcoquelin.stm32,
	Zulkifli, Muhammad Husaini, netdev, pabeni, peppe.cavallaro, Tan,
	Tee Min, Voon, Weifeng, Gan, Yi Fang, Song, Yoong Siang

> On Fri, 28 Oct 2022 10:44:24 +0000 Sit, Michael Wei Hong wrote:
> > This is to allow finer control on platform specific features for ADL and RPL.
> > There are some features that ADL and RPL doesn’t support and TGL
> supports vice versa.
> 
> But if they are the same _right_ _now_ what's the point?
> Please repost as part of a series which actually modifies the contents.
> 
> Please remember not to top post on the ML.

Noted. Thanks Vee Khee and Jakub for the comments. There is some work in progress as part of ADL-N development. We'll submit a complete patchset when it is completed in the future. Let's close the review for this patch for now.

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

* RE: [PATCH net-next 1/1] stmmac: intel: Separate ADL-N and RPL-P device ID from TGL
@ 2022-11-01  3:18       ` Looi, Hong Aun
  0 siblings, 0 replies; 9+ messages in thread
From: Looi, Hong Aun @ 2022-11-01  3:18 UTC (permalink / raw)
  To: Jakub Kicinski, Sit, Michael Wei Hong
  Cc: Vee Khee Wong, alexandre.torgue, davem, edumazet, joabreu,
	linux-arm-kernel, linux-kernel, linux-stm32, mcoquelin.stm32,
	Zulkifli, Muhammad Husaini, netdev, pabeni, peppe.cavallaro, Tan,
	Tee Min, Voon, Weifeng, Gan, Yi Fang, Song, Yoong Siang

> On Fri, 28 Oct 2022 10:44:24 +0000 Sit, Michael Wei Hong wrote:
> > This is to allow finer control on platform specific features for ADL and RPL.
> > There are some features that ADL and RPL doesn’t support and TGL
> supports vice versa.
> 
> But if they are the same _right_ _now_ what's the point?
> Please repost as part of a series which actually modifies the contents.
> 
> Please remember not to top post on the ML.

Noted. Thanks Vee Khee and Jakub for the comments. There is some work in progress as part of ADL-N development. We'll submit a complete patchset when it is completed in the future. Let's close the review for this patch for now.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ 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


^ permalink raw reply related	[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.