2022-02-09 06:43:45

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH v6 7/8] PCI: imx6: Disable enabled clocks and regulators after link is down

Hi Richard,

On Tue, Feb 8, 2022 at 10:56 PM Hongxing Zhu <[email protected]> wrote:

> Do you mean that we should ignore the return of dw_pcie_host_init() and
> finish the _probe without an error return?

Yes, we should not return an error on probe if the link is down.

Thanks


2022-02-09 07:45:57

by Richard Zhu

[permalink] [raw]
Subject: RE: [PATCH v6 7/8] PCI: imx6: Disable enabled clocks and regulators after link is down

> -----Original Message-----
> From: Fabio Estevam <[email protected]>
> Sent: 2022年2月9日 10:02
> To: Hongxing Zhu <[email protected]>
> Cc: Lucas Stach <[email protected]>; Bjorn Helgaas
> <[email protected]>; Mark Brown <[email protected]>; Lorenzo Pieralisi
> <[email protected]>; Jingoo Han <[email protected]>;
> [email protected]; dl-linux-imx <[email protected]>; moderated
> list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
> <[email protected]>; linux-kernel
> <[email protected]>; Sascha Hauer <[email protected]>
> Subject: Re: [PATCH v6 7/8] PCI: imx6: Disable enabled clocks and regulators
> after link is down
>
> Hi Richard,
>
> On Tue, Feb 8, 2022 at 10:56 PM Hongxing Zhu <[email protected]>
> wrote:
>
> > Do you mean that we should ignore the return of dw_pcie_host_init()
> > and finish the _probe without an error return?
>
> Yes, we should not return an error on probe if the link is down.
>
> Thanks
Hi Fabio:
Regarding my understand, the suspend/resume callbacks would be hooked if the
probe is complete successfully. There would be extra more than 100ms delay
in every system resume operations.
I'm afraid that it would bring bad experience for the power management.

Is there a policy that we should obey, and let the probe complete without
an error return?
If yes, I can follow your suggestion, wouldn't return an error on probe when
link is down.

Thanks.
Best Regards
Richard Zhu