All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukas Hartmann <lukas@mntmn.com>
To: Leonard Crestez <leonard.crestez@nxp.com>
Cc: "ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
	"lorenzo.pieralisi@arm.com" <lorenzo.pieralisi@arm.com>,
	Richard Zhu <hongxing.zhu@nxp.com>,
	dl-linux-imx <linux-imx@nxp.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	Lucas Stach <l.stach@pengutronix.de>
Subject: Re: Linux Kernel Regression in Commit 3f7cceeab895fcc17ac8db0d9a5e8ca2954b4661 on i.MX6QP
Date: Mon, 21 Jan 2019 22:45:47 +0100	[thread overview]
Message-ID: <F47CC354-70FC-4CDC-B9DC-56D36E4ABB9D@mntmn.com> (raw)
In-Reply-To: <VI1PR04MB55336678BA82D08DA1D1D5F8EE9F0@VI1PR04MB5533.eurprd04.prod.outlook.com>

Alright, thank you for the quick response. I will try your fix in the morning. Another thing: the second device_link_add() does not assign to link, but link is then checked again for an error. Is that intentional?

Best,
Lukas

> On 21. Jan 2019, at 22:12, Leonard Crestez <leonard.crestez@nxp.com> wrote:
> 
>> On 1/21/2019 10:34 PM, Lukas F.Hartmann wrote:
>> Removing the return(ret) line after the imx6_pcie_attach_pd(dev) call
>> fixes the problems for me. I am under the impression that the
>> imx6_add_pcie_port still should be called even if there was an error
>> attaching the power domain?
> 
> The intent was that imx6_pcie_attach_pd does nothing if no PD is defined 
> in DT but it returns an error instead and causes a probe failure.
> 
> Can you please try the following:
> 
> --- drivers/pci/controller/dwc/pci-imx6.c
> +++ drivers/pci/controller/dwc/pci-imx6.c
> @@ -310,6 +310,9 @@ static int imx6_pcie_attach_pd(struct device *dev)
>         imx6_pcie->pd_pcie = dev_pm_domain_attach_by_name(dev, "pcie");
>         if (IS_ERR(imx6_pcie->pd_pcie))
>                 return PTR_ERR(imx6_pcie->pd_pcie);
> +       /* Do nothing when power domain missing */
> +       if (!imx6_pcie->pd_pcie)
> +               return 0;
>         link = device_link_add(dev, imx6_pcie->pd_pcie,
>                         DL_FLAG_STATELESS |
>                         DL_FLAG_PM_RUNTIME |
> 
> This fix is for PCI, it's not clear why it would also affect USB in your 
> case.
> 
> Thanks for reporting!
> 
> --
> Regards,
> Leonard


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-01-21 21:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87r2d5yepy.fsf@mntmn.com>
     [not found] ` <87o989ydc3.fsf@mntmn.com>
     [not found]   ` <87lg3dycku.fsf@mntmn.com>
2019-01-21 21:12     ` Linux Kernel Regression in Commit 3f7cceeab895fcc17ac8db0d9a5e8ca2954b4661 on i.MX6QP Leonard Crestez
2019-01-21 21:45       ` Lukas Hartmann [this message]
2019-01-22  7:08       ` Uwe Kleine-König
2019-01-22  7:08         ` Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F47CC354-70FC-4CDC-B9DC-56D36E4ABB9D@mntmn.com \
    --to=lukas@mntmn.com \
    --cc=hongxing.zhu@nxp.com \
    --cc=l.stach@pengutronix.de \
    --cc=leonard.crestez@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.