From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Grant Likely <grant.likely@arm.com>,
Saravana Kannan <saravanak@google.com>,
Andrzej Hajda <a.hajda@samsung.com>,
artem.bityutskiy@linux.intel.com, Felipe Balbi <balbi@kernel.org>,
Mark Brown <broonie@kernel.org>, Ferry Toth <fntoth@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux PM <linux-pm@vger.kernel.org>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
kernel-team@android.com, nd <nd@arm.com>,
Sascha Hauer <kernel@pengutronix.de>
Subject: Re: [PATCH v3] driver core: Break infinite loop when deferred probe can't be satisfied
Date: Mon, 8 Jun 2020 15:11:07 +0300 [thread overview]
Message-ID: <CAHp75VcnkSrb5B8dQE-Tg=mzzUbKZkk3ykm6sxEjNyHWLcF26w@mail.gmail.com> (raw)
In-Reply-To: <20200608115917.f5dhazixnxunl5o5@pengutronix.de>
On Mon, Jun 8, 2020 at 2:59 PM Marco Felsch <m.felsch@pengutronix.de> wrote:
> On 20-06-08 14:13, Andy Shevchenko wrote:
> > On Mon, Jun 8, 2020 at 12:20 PM Marco Felsch <m.felsch@pengutronix.de> wrote:
> > > On 20-03-26 18:31, Andy Shevchenko wrote:
> > > sorry for picking this up again but I stumbled above the same issue
> > > within the driver imx/drm driver which is using the component framework.
> > > I end up in a infinity boot loop if I enabled the HDMI (which is the
> > > DesignWare bridge device) and the LVDS support and the LVDS bind return
> > > with EPROBE_DEFER. There are no words within the component framework docs
> > > which says that this is forbidden. Of course we can work-around the
> > > driver-core framework but IMHO this shouldn't be the way to go. I do not
> > > say that we should revert the commit introducing the regression but we
> > > should address this not only by extending the docs since the most
> > > drm-drivers are using the component framework and can end up in the same
> > > situation.
> > >
> > > > > It can be solved by refactoring the driver probe routine. If a resource is
> > > > > required to be present, then check that it is available early; before
> > > > > registering child devices.
> > > >
> > > > We fix one and leave others.
> > >
> > > E.g. the imx-drm and the sunxi driver...
> >
> > Just out of curiosity, does my patch fix an issue for you?
>
> I didn't applied your patch yet. I can test it if you want.
If you can, thanks!
> > > > > The proposed solution to modify driver core is fragile and susceptible to
> > > > > side effects from other probe paths. I don't think it is the right approach.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2020-06-08 12:11 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-24 17:57 [PATCH v3] driver core: Break infinite loop when deferred probe can't be satisfied Andy Shevchenko
2020-03-25 3:29 ` Saravana Kannan
2020-03-25 12:51 ` Andy Shevchenko
2020-03-25 22:08 ` Saravana Kannan
2020-03-26 8:39 ` Rafael J. Wysocki
2020-03-26 9:45 ` Peter Ujfalusi
2020-03-26 12:03 ` Andy Shevchenko
2020-03-26 13:45 ` Grant Likely
2020-03-26 14:23 ` Andy Shevchenko
2020-03-26 11:57 ` Andy Shevchenko
2020-03-26 13:48 ` Grant Likely
2020-03-26 18:45 ` Saravana Kannan
2020-03-26 11:54 ` Andy Shevchenko
2020-03-26 14:46 ` Grant Likely
2020-03-26 19:55 ` Saravana Kannan
2020-03-26 15:01 ` Grant Likely
2020-03-26 15:20 ` Grant Likely
2020-03-26 16:31 ` Andy Shevchenko
2020-03-26 16:39 ` Greg KH
2020-03-26 18:06 ` Grant Likely
2020-03-27 8:03 ` Greg KH
2020-03-27 12:37 ` Grant Likely
2020-03-27 12:51 ` Greg KH
2020-06-08 9:17 ` Marco Felsch
2020-06-08 11:11 ` Andrzej Hajda
2020-06-09 6:45 ` Marco Felsch
2020-06-09 7:30 ` Saravana Kannan
2020-06-09 9:27 ` Andrzej Hajda
2020-06-09 12:10 ` Marco Felsch
2020-06-09 13:02 ` Andrzej Hajda
2020-06-09 13:16 ` Mark Brown
2020-06-08 11:13 ` Andy Shevchenko
2020-06-08 11:59 ` Marco Felsch
2020-06-08 12:11 ` Andy Shevchenko [this message]
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='CAHp75VcnkSrb5B8dQE-Tg=mzzUbKZkk3ykm6sxEjNyHWLcF26w@mail.gmail.com' \
--to=andy.shevchenko@gmail.com \
--cc=a.hajda@samsung.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=balbi@kernel.org \
--cc=broonie@kernel.org \
--cc=fntoth@gmail.com \
--cc=grant.likely@arm.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel-team@android.com \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=nd@arm.com \
--cc=peter.ujfalusi@ti.com \
--cc=rafael@kernel.org \
--cc=saravanak@google.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).