[PATCH 3/3] PCI: mediatek-gen3: Move reset/assert callbacks in .power_up()
Lorenzo Bianconi
lorenzo at kernel.org
Thu Nov 7 08:37:36 PST 2024
On Nov 07, Bjorn Helgaas wrote:
> On Thu, Nov 07, 2024 at 05:08:55PM +0100, Lorenzo Bianconi wrote:
> > > On Thu, Nov 07, 2024 at 02:50:55PM +0100, Lorenzo Bianconi wrote:
> > > > In order to make the code more readable, move phy and mac reset lines
> > > > assert/de-assert configuration in .power_up callback
> > > > (mtk_pcie_en7581_power_up/mtk_pcie_power_up).
> > ...
>
> > > Is there a requirement that the PHY and MAC reset ordering be
> > > different for EN7581 vs other chips?
> > >
> > > EN7581:
> > >
> > > assert PHY reset
> > > assert MAC reset
> > > power on PHY
> > > deassert PHY reset
> > > deassert MAC reset
> > >
> > > others:
> > >
> > > assert PHY reset
> > > assert MAC reset
> > > deassert PHY reset
> > > power on PHY
> > > deassert MAC reset
> > >
> > > Is there one order that would work for both?
> >
> > EN7581 requires to run phy_init()/phy_power_on() before deassert PHY reset
> > lines.
>
> And the other chips require the PHY power-on to be *after* deasserting
> PHY reset?
I am not sure about it, this is the only Airoha device I have.
Regards,
Lorenzo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20241107/17e104e8/attachment.sig>
More information about the Linux-mediatek
mailing list