* [net] net: phy: mscc: adjust the phy support for PTP and MACsec
@ 2020-11-11 9:55 Steen Hegelund
2020-11-11 14:01 ` Antoine Tenart
0 siblings, 1 reply; 3+ messages in thread
From: Steen Hegelund @ 2020-11-11 9:55 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
Jakub Kicinski, Antoine Tenart, Quentin Schulz, Bryan Whitehead
Cc: Steen Hegelund, Microchip UNG Driver List, John Haechten,
Netdev List, Linux Kernel List
The MSCC PHYs selected for PTP and MACSec was not correct
- PTP
- Add VSC8572 and VSC8574
- MACsec
- Removed VSC8575
The relevant datasheets can be found here:
- VSC8572: https://www.microchip.com/wwwproducts/en/VSC8572
- VSC8574: https://www.microchip.com/wwwproducts/en/VSC8574
- VSC8575: https://www.microchip.com/wwwproducts/en/VSC8575
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
---
drivers/net/phy/mscc/mscc_macsec.c | 1 -
drivers/net/phy/mscc/mscc_ptp.c | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/mscc/mscc_macsec.c b/drivers/net/phy/mscc/mscc_macsec.c
index 1d4c012194e9..72292bf6c51c 100644
--- a/drivers/net/phy/mscc/mscc_macsec.c
+++ b/drivers/net/phy/mscc/mscc_macsec.c
@@ -981,7 +981,6 @@ int vsc8584_macsec_init(struct phy_device *phydev)
switch (phydev->phy_id & phydev->drv->phy_id_mask) {
case PHY_ID_VSC856X:
- case PHY_ID_VSC8575:
case PHY_ID_VSC8582:
case PHY_ID_VSC8584:
INIT_LIST_HEAD(&vsc8531->macsec_flows);
diff --git a/drivers/net/phy/mscc/mscc_ptp.c b/drivers/net/phy/mscc/mscc_ptp.c
index b97ee79f3cdf..f0537299c441 100644
--- a/drivers/net/phy/mscc/mscc_ptp.c
+++ b/drivers/net/phy/mscc/mscc_ptp.c
@@ -1510,6 +1510,8 @@ void vsc8584_config_ts_intr(struct phy_device *phydev)
int vsc8584_ptp_init(struct phy_device *phydev)
{
switch (phydev->phy_id & phydev->drv->phy_id_mask) {
+ case PHY_ID_VSC8572:
+ case PHY_ID_VSC8574:
case PHY_ID_VSC8575:
case PHY_ID_VSC8582:
case PHY_ID_VSC8584:
--
2.29.2
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [net] net: phy: mscc: adjust the phy support for PTP and MACsec
2020-11-11 9:55 [net] net: phy: mscc: adjust the phy support for PTP and MACsec Steen Hegelund
@ 2020-11-11 14:01 ` Antoine Tenart
2020-11-11 14:30 ` Steen Hegelund
0 siblings, 1 reply; 3+ messages in thread
From: Antoine Tenart @ 2020-11-11 14:01 UTC (permalink / raw)
To: David S. Miller, Andrew Lunn, Bryan Whitehead, Heiner Kallweit,
Jakub Kicinski, Quentin Schulz, Russell King, Steen Hegelund
Cc: Steen Hegelund, Microchip UNG Driver List, John Haechten,
Netdev List, Linux Kernel List
Hi Steen!
Either this is a fix and it would need a Fixes: tag in addition to the
Signed-off-by: one (you can have a look at the git history to see what
is the format); or the patch is not a fix and then it should have
[net-next] in its subject instead of [net].
Please have a look at the relevant documentation,
https://www.kernel.org/doc/html/latest/networking/netdev-FAQ.html
Thanks!
Antoine
Quoting Steen Hegelund (2020-11-11 10:55:11)
> The MSCC PHYs selected for PTP and MACSec was not correct
>
> - PTP
> - Add VSC8572 and VSC8574
>
> - MACsec
> - Removed VSC8575
>
> The relevant datasheets can be found here:
> - VSC8572: https://www.microchip.com/wwwproducts/en/VSC8572
> - VSC8574: https://www.microchip.com/wwwproducts/en/VSC8574
> - VSC8575: https://www.microchip.com/wwwproducts/en/VSC8575
>
> Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
> ---
> drivers/net/phy/mscc/mscc_macsec.c | 1 -
> drivers/net/phy/mscc/mscc_ptp.c | 2 ++
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/phy/mscc/mscc_macsec.c b/drivers/net/phy/mscc/mscc_macsec.c
> index 1d4c012194e9..72292bf6c51c 100644
> --- a/drivers/net/phy/mscc/mscc_macsec.c
> +++ b/drivers/net/phy/mscc/mscc_macsec.c
> @@ -981,7 +981,6 @@ int vsc8584_macsec_init(struct phy_device *phydev)
>
> switch (phydev->phy_id & phydev->drv->phy_id_mask) {
> case PHY_ID_VSC856X:
> - case PHY_ID_VSC8575:
> case PHY_ID_VSC8582:
> case PHY_ID_VSC8584:
> INIT_LIST_HEAD(&vsc8531->macsec_flows);
> diff --git a/drivers/net/phy/mscc/mscc_ptp.c b/drivers/net/phy/mscc/mscc_ptp.c
> index b97ee79f3cdf..f0537299c441 100644
> --- a/drivers/net/phy/mscc/mscc_ptp.c
> +++ b/drivers/net/phy/mscc/mscc_ptp.c
> @@ -1510,6 +1510,8 @@ void vsc8584_config_ts_intr(struct phy_device *phydev)
> int vsc8584_ptp_init(struct phy_device *phydev)
> {
> switch (phydev->phy_id & phydev->drv->phy_id_mask) {
> + case PHY_ID_VSC8572:
> + case PHY_ID_VSC8574:
> case PHY_ID_VSC8575:
> case PHY_ID_VSC8582:
> case PHY_ID_VSC8584:
> --
> 2.29.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [net] net: phy: mscc: adjust the phy support for PTP and MACsec
2020-11-11 14:01 ` Antoine Tenart
@ 2020-11-11 14:30 ` Steen Hegelund
0 siblings, 0 replies; 3+ messages in thread
From: Steen Hegelund @ 2020-11-11 14:30 UTC (permalink / raw)
To: Antoine Tenart
Cc: David S. Miller, Andrew Lunn, Bryan Whitehead, Heiner Kallweit,
Jakub Kicinski, Quentin Schulz, Russell King,
Microchip UNG Driver List, John Haechten, Netdev List,
Linux Kernel List
On 11.11.2020 15:01, Antoine Tenart wrote:
>EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
>Hi Steen!
>
>Either this is a fix and it would need a Fixes: tag in addition to the
>Signed-off-by: one (you can have a look at the git history to see what
>is the format); or the patch is not a fix and then it should have
>[net-next] in its subject instead of [net].
>
>Please have a look at the relevant documentation,
>https://www.kernel.org/doc/html/latest/networking/netdev-FAQ.html
>
>Thanks!
>Antoine
Hi Antoine,
Thanks for pointing this out. It is a fix, so I will add a Fixes tag to
the commit message.
BR
Steen
>
>Quoting Steen Hegelund (2020-11-11 10:55:11)
>> The MSCC PHYs selected for PTP and MACSec was not correct
>>
>> - PTP
>> - Add VSC8572 and VSC8574
>>
>> - MACsec
>> - Removed VSC8575
>>
>> The relevant datasheets can be found here:
>> - VSC8572: https://www.microchip.com/wwwproducts/en/VSC8572
>> - VSC8574: https://www.microchip.com/wwwproducts/en/VSC8574
>> - VSC8575: https://www.microchip.com/wwwproducts/en/VSC8575
>>
>> Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
>> ---
>> drivers/net/phy/mscc/mscc_macsec.c | 1 -
>> drivers/net/phy/mscc/mscc_ptp.c | 2 ++
>> 2 files changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/phy/mscc/mscc_macsec.c b/drivers/net/phy/mscc/mscc_macsec.c
>> index 1d4c012194e9..72292bf6c51c 100644
>> --- a/drivers/net/phy/mscc/mscc_macsec.c
>> +++ b/drivers/net/phy/mscc/mscc_macsec.c
>> @@ -981,7 +981,6 @@ int vsc8584_macsec_init(struct phy_device *phydev)
>>
>> switch (phydev->phy_id & phydev->drv->phy_id_mask) {
>> case PHY_ID_VSC856X:
>> - case PHY_ID_VSC8575:
>> case PHY_ID_VSC8582:
>> case PHY_ID_VSC8584:
>> INIT_LIST_HEAD(&vsc8531->macsec_flows);
>> diff --git a/drivers/net/phy/mscc/mscc_ptp.c b/drivers/net/phy/mscc/mscc_ptp.c
>> index b97ee79f3cdf..f0537299c441 100644
>> --- a/drivers/net/phy/mscc/mscc_ptp.c
>> +++ b/drivers/net/phy/mscc/mscc_ptp.c
>> @@ -1510,6 +1510,8 @@ void vsc8584_config_ts_intr(struct phy_device *phydev)
>> int vsc8584_ptp_init(struct phy_device *phydev)
>> {
>> switch (phydev->phy_id & phydev->drv->phy_id_mask) {
>> + case PHY_ID_VSC8572:
>> + case PHY_ID_VSC8574:
>> case PHY_ID_VSC8575:
>> case PHY_ID_VSC8582:
>> case PHY_ID_VSC8584:
>> --
>> 2.29.2
>>
BR
Steen
---------------------------------------
Steen Hegelund
steen.hegelund@microchip.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-11 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 9:55 [net] net: phy: mscc: adjust the phy support for PTP and MACsec Steen Hegelund
2020-11-11 14:01 ` Antoine Tenart
2020-11-11 14:30 ` Steen Hegelund
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®