Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp186289pxb; Thu, 14 Jan 2021 03:21:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsZm7okiirqXC7+dX6/7H6MHSe1+LGpd1FkjLJHLQE723ysGPsJnz3LWTR2s4fYa+WOd0n X-Received: by 2002:a17:906:a283:: with SMTP id i3mr4800802ejz.496.1610623302428; Thu, 14 Jan 2021 03:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610623302; cv=none; d=google.com; s=arc-20160816; b=egY0VrF9Mu3TJPUvzj4qESTT3glUsYUTqwpE96Zuour5Qr2sGo1+Wlh4D7rRUTgo13 kiuZLmohB9SRiRS+ia/nfmcBkR8AjmEL4zXQcPnJDdzTCADTyxeeD8X43My/KRXEQjpL jZHhD5QJDRg9AyvxblXMpX5A4W/GI6pmzWwTIQGu1jMXMWJS82tq5z+96hA2Rmf2s842 uMaNBbUvagg9ywH7VSNtjT9AZWZhZETo52GAAf6zUdLbvSCKrsHmiW53FIA/MUdkRV7C 6yTE0I1MViPFel2RpyWtGGQX6yr/HGJEqEzidUNRnteym5wDY2bqUH3qfBGejzx2UjSu +igQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=KqJlhHGvnv3dAhGKioGA+swkQNECiUYCEW36qXCV4JM=; b=lboero/MOtZqouHC9qQ/O3wdquigGSd1anG3xgmm9KpmgW2ReFfHzs8e/mvgtWlARS OEgtbq0uzZyEwCjuy83bS+2RnLxVatjgky6glsxadI32Nhb00+9a0iVBG7RI3Tt4UdN9 +aY/OwnNFNZHGLCQ+nI2aJzsrRmrqu98EfQE0bJtjCHPTo7HXdXEYuZxyira+zIRoPai e0f95f9H/n/ws8I0h1JBIrYCvporr9ILt94zsQJhRiVUaai+xRawUC1qptbMfgF50sp6 BT9c/2Iiuk80aEk+bi1/rNcSIgi6tC2oD0symlJYwFK39jh6CfVBBIBiICOMl1c5NfAZ 2H4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si2698086edv.195.2021.01.14.03.21.17; Thu, 14 Jan 2021 03:21:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728154AbhANLT1 (ORCPT + 99 others); Thu, 14 Jan 2021 06:19:27 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:53478 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbhANLT0 (ORCPT ); Thu, 14 Jan 2021 06:19:26 -0500 Received: from relay7-d.mail.gandi.net (unknown [217.70.183.200]) by mslow2.mail.gandi.net (Postfix) with ESMTP id B372B3BB556; Thu, 14 Jan 2021 11:03:58 +0000 (UTC) X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 07984200D9; Thu, 14 Jan 2021 11:02:33 +0000 (UTC) Date: Thu, 14 Jan 2021 12:02:33 +0100 From: Alexandre Belloni To: Steen Hegelund Cc: Kishon Vijay Abraham I , Vinod Koul , Lars Povlsen , Bjarni Jonasson , Microchip UNG Driver List , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn Subject: Re: [PATCH v12 2/4] phy: Add ethernet serdes configuration option Message-ID: <20210114110233.GZ3654@piout.net> References: <20210107091924.1569575-1-steen.hegelund@microchip.com> <20210107091924.1569575-3-steen.hegelund@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210107091924.1569575-3-steen.hegelund@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2021 10:19:22+0100, Steen Hegelund wrote: > Provide a new ethernet phy configuration structure, that > allow PHYs used for ethernet to be configured with > speed, media type and clock information. > > Signed-off-by: Lars Povlsen > Signed-off-by: Steen Hegelund > Reviewed-by: Andrew Lunn Reviewed-by: Alexandre Belloni > --- > include/linux/phy/phy-ethernet-serdes.h | 30 +++++++++++++++++++++++++ > include/linux/phy/phy.h | 4 ++++ > 2 files changed, 34 insertions(+) > create mode 100644 include/linux/phy/phy-ethernet-serdes.h > > diff --git a/include/linux/phy/phy-ethernet-serdes.h b/include/linux/phy/phy-ethernet-serdes.h > new file mode 100644 > index 000000000000..d2462fadf179 > --- /dev/null > +++ b/include/linux/phy/phy-ethernet-serdes.h > @@ -0,0 +1,30 @@ > +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ > +/* > + * Microchip Sparx5 Ethernet SerDes driver > + * > + * Copyright (c) 2020 Microschip Inc > + */ > +#ifndef __PHY_ETHERNET_SERDES_H_ > +#define __PHY_ETHERNET_SERDES_H_ > + > +#include > + > +enum ethernet_media_type { > + ETH_MEDIA_DEFAULT, > + ETH_MEDIA_SR, > + ETH_MEDIA_DAC, > +}; > + > +/** > + * struct phy_configure_opts_eth_serdes - Ethernet SerDes This structure is used > + * to represent the configuration state of a Ethernet Serdes PHY. > + * @speed: Speed of the serdes interface in Mbps > + * @media_type: Specifies which media the serdes will be using > + */ > +struct phy_configure_opts_eth_serdes { > + u32 speed; > + enum ethernet_media_type media_type; > +}; > + > +#endif > + > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index e435bdb0bab3..78ecb375cede 100644 > --- a/include/linux/phy/phy.h > +++ b/include/linux/phy/phy.h > @@ -18,6 +18,7 @@ > > #include > #include > +#include > > struct phy; > > @@ -49,11 +50,14 @@ enum phy_mode { > * > * @mipi_dphy: Configuration set applicable for phys supporting > * the MIPI_DPHY phy mode. > + * @eth_serdes: Configuration set applicable for phys supporting > + * the ethernet serdes. > * @dp: Configuration set applicable for phys supporting > * the DisplayPort protocol. > */ > union phy_configure_opts { > struct phy_configure_opts_mipi_dphy mipi_dphy; > + struct phy_configure_opts_eth_serdes eth_serdes; > struct phy_configure_opts_dp dp; > }; > > -- > 2.29.2 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com