Re: [PATCH v2 03/12] PCI: aardvark: Add PHY support
From: Miquel Raynal
Date: Tue Dec 18 2018 - 08:41:36 EST
Hi Marek,
Marek Behun <marek.behun@xxxxxx> wrote on Tue, 18 Dec 2018 14:09:20
+0100:
> > [2]
> > https://github.com/ARM-software/arm-trusted-firmware/blob/master/drivers/marvell/comphy/phy-comphy-3700.c
>
> Yes, I used mainline atf (it did not work out of the box with 18.09
> atf-marvell of course). But there is no _power_off function for SGMII,
> nor a digital_reset function like in cp110 implementation.
Indeed, but why would you need one? Just use the helpers from the core
and if there is no implementation, nothing should happen and the helper
should exit without error. Just call phy_set_mode()/phy_power_on() an
you should be good.
Thanks,
MiquÃl