[PATCH phy 1/6] phy: marvell: phy-mvebu-a3700-comphy: Remove port from driver configuration

Miquel Raynal miquel.raynal at bootlin.com
Tue Nov 9 01:55:40 PST 2021


Hi Marek,

kabel at kernel.org wrote on Thu, 28 Oct 2021 20:42:37 +0200:

> From: Pali Rohár <pali at kernel.org>
> 
> Port number is encoded into argument for SMC call. It is zero for SATA,
> PCIe and also both USB 3.0 PHYs. It is non-zero only for Ethernet PHY
> (incorrectly called SGMII) on lane 0. Ethernet PHY on lane 1 also uses zero
> port number.
> 
> So construct "port" bits for SMC call argument can be constructed directly
> from PHY type and lane number.
> 
> Change driver code to always pass zero port number for non-ethernet PHYs
> and for ethernet PHYs determinate port number from lane number. This
> simplifies the driver.
> 
> As port number from DT PHY configuration is not used anymore, remove whole
> driver code which parses it. This also simplifies the driver.
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Signed-off-by: Marek Behún <kabel at kernel.org>

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

Thanks,
Miquèl



More information about the linux-phy mailing list