[PATCH v9 7/8] PCI: imx6: Move the phy driver callbacks to the proper places

Hongxing Zhu hongxing.zhu at nxp.com
Wed Jun 8 23:20:16 PDT 2022


> -----Original Message-----
> From: Bjorn Helgaas <helgaas at kernel.org>
> Sent: 2022年6月9日 2:58
> To: Hongxing Zhu <hongxing.zhu at nxp.com>
> Cc: l.stach at pengutronix.de; bhelgaas at google.com; robh+dt at kernel.org;
> broonie at kernel.org; lorenzo.pieralisi at arm.com; jingoohan1 at gmail.com;
> festevam at gmail.com; francesco.dolcini at toradex.com;
> linux-pci at vger.kernel.org; linux-arm-kernel at lists.infradead.org;
> linux-kernel at vger.kernel.org; kernel at pengutronix.de; dl-linux-imx
> <linux-imx at nxp.com>
> Subject: Re: [PATCH v9 7/8] PCI: imx6: Move the phy driver callbacks to the
> proper places
> 
> On Fri, May 06, 2022 at 09:47:08AM +0800, Richard Zhu wrote:
> > To make it more reasonable, move the phy_power_on/phy_init callbacks
> > to the proper places.
> > - move the phy_power_on() out of imx6_pcie_clk_enable().
> > - move the phy_init() out of imx6_pcie_deassert_core_reset().
> 
> I'm not sure what "make it more reasonable" is telling me.  In subject line and
> commit log, please say something more specific than "the proper places."
> 
> It's probably more important to say where they are moving *to* than where
> they're moving *out of*.
Thanks for your comments.
In another review loop listed below, Lucas used said that it's not good to hide
 PHY init in imx6_pcie_assert_core_reset()
So, I make a try to move the phy_init() out of imx6_pcie_assert_core_reset().
And move phy_power_on() out of imx6_pcie_clk_enable() accordingly.
https://patchwork.kernel.org/project/linux-pci/patch/1646289275-17813-1-git-send-email-hongxing.zhu@nxp.com/
Okay, I would specific that they are moving *to* later.

> 
> > In order to save power consumption, turn off the clocks and regulators
> > when the imx6_pcie_host_init() return error.
> 
> Is the power savings the *reason* for this change?  I can't tell from the
> commit log.
The error handling of the imx6_pcie_host_init() is not mentioned in the subject.
Should I split these changes into two patches?

Best Regards
Richard Zhu


More information about the linux-arm-kernel mailing list