Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp487731pxb; Wed, 11 Nov 2020 08:32:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6vbqvI0FeAisvk9NQTOn6jq5ar2XLqfJF9qPizBv+Ho4ov8mvQ1ad7IN6tawbJHdxuH60 X-Received: by 2002:a17:906:a996:: with SMTP id jr22mr26652491ejb.463.1605112344138; Wed, 11 Nov 2020 08:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605112344; cv=none; d=google.com; s=arc-20160816; b=I2Qx4BssvxL80Eb1cjCzKpZwXG9uY+hpPEDEq8Mmk8yV02kQ99ixin+Pp6e6kMtL3f 7Yx1Ew7opnf49gWKlPlrBVrEQ/bWMoQPj+j5Tr1n/YtPXJAkDHLz9nONPx+wySFBZwvK h5+uA+XpJ9CE2Jj0wpq9k3FqgMvnF5VSgxoQvrQHhkIy7YvbFbtBdvnWjXGPx/c7/iud ttdZOwWn3DCvlOtqcbuHLgXBUoe0W5I5Ik3YV1Hb3jhAKa9idyjMNDlguau1O4UkspWh Ibd9iMEBvUKHoX9nASKyU4BmAOtaQx4gU33wsddn7n5InkSetwfv+mI4flaIO9DxCzmi ewJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:from:cc:to:subject:references :in-reply-to:content-transfer-encoding:mime-version:dkim-signature; bh=znis2LDJTHSVn6oxWlXWcx5iYTmPvBRu+uu7s5nnt9Y=; b=soSJL8GLKrjKz9ZOHR1omgdW/NASAfZhdwCP1eZpDx21FR0ovKudFyt1PSysuAgQTe gEw5ddm2fDGO2kSOOiVTiA9xrAGg/7GIFr9TkKqEjQ2c+46Xy4o7uucgyTLwoac7T3ya E0AW1sospiBhW5nd6m0Rvsm8Ibsrr382f6T2CPY9dwPGvULrdddEFY5taLf7/3e6j76H xGqGT8NGGZ3Y7tR/EV6IKIeKk86SrqipNLZZ5tcXg2paJxUXtmwZ84gIHPnJf5Bcqxjw no92K/yujnApOB/y6E64jKDJrNn/dJ5glSvCPJBZ/qZObrLb3fnOV8/DZxi7/cs+3dHk 0YGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tk8qigXx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id um9si1692096ejb.521.2020.11.11.08.31.57; Wed, 11 Nov 2020 08:32:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tk8qigXx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727649AbgKKQ3E (ORCPT + 99 others); Wed, 11 Nov 2020 11:29:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:52742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbgKKQ26 (ORCPT ); Wed, 11 Nov 2020 11:28:58 -0500 Received: from localhost (lfbn-tou-1-1075-236.w90-76.abo.wanadoo.fr [90.76.143.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 50F4A20678; Wed, 11 Nov 2020 16:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605112138; bh=0NjO8soZFF76i5lglSfHtT1dSXx3aoySJfwLc6sFW5U=; h=In-Reply-To:References:Subject:To:Cc:From:Date:From; b=Tk8qigXxNsXiQ7iF4IVVOfDhTaZg/DnDIIemvFZgnWuN3sLMNxOPw/LRSre7fIG3E 9oxzrmCefW5Dq+RvNGxOT91QXf3PfZdX4qSLSWXJUS72SQaDyIwgos3WO4RoveWZvL SmKybzUnq8Jur5azjgPNlGJENzPgxp29Kcct6sQ4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201111151753.840364-1-steen.hegelund@microchip.com> References: <20201111151753.840364-1-steen.hegelund@microchip.com> Subject: Re: [net v2] net: phy: mscc: adjust the phy support for PTP and MACsec To: "David S. Miller" , Andrew Lunn , Bryan Whitehead , Heiner Kallweit , Jakub Kicinski , Russell King , Steen Hegelund Cc: Steen Hegelund , Microchip UNG Driver List , John Haechten , Netdev List , Linux Kernel List From: Antoine Tenart Message-ID: <160511213375.165477.17752694389005766821@surface.local> Date: Wed, 11 Nov 2020 17:28:54 +0100 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steen, Quoting Steen Hegelund (2020-11-11 16:17:53) > The MSCC PHYs selected for PTP and MACSec was not correct >=20 > - PTP > - Add VSC8572 and VSC8574 >=20 > - MACsec > - Removed VSC8575 >=20 > 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 >=20 > History: > v1 -> v2: > - Added "fixes:" tags to the commit message >=20 > Fixes: bb56c016a1257 ("net: phy: mscc: split the driver into separate fil= es") This commit splitting the driver didn't introduced the issue, it only moved code around. You can remove this Fixes tag. (You usually/should have a single Fixes tag per patch). > Fixes: ab2bf93393571 ("net: phy: mscc: 1588 block initialization") The PTP and the MACsec support were introduced in separate patches (and were introduced in different releases of the kernel). This patch is fixing two different issues then, and its changes can't apply to the same kernel versions. You should send them in two separate patches. With the changes sent in two different patches, I would suggest to only send the MACsec one as a fix for net (it's really fixing something, by removing a non-compatible PHY from using MACsec) and the PTP one for net-next as it's adding PTP support for two new PHYs (not fixing anything). When you do so, please use the following commands to format the patches, to end up with the correct prefix in the subject: git format-patch --subject-prefix=3D'PATCH net' ... git format-patch --subject-prefix=3D'PATCH net-next' ... Thanks! Antoine > Signed-off-by: Steen Hegelund > --- > drivers/net/phy/mscc/mscc_macsec.c | 1 - > drivers/net/phy/mscc/mscc_ptp.c | 2 ++ > 2 files changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/phy/mscc/mscc_macsec.c b/drivers/net/phy/mscc/ms= cc_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) > =20 > 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 *phyd= ev) > 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: > --=20 > 2.29.2 >=20