All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1] Revert "core: device: use dev_power_domain_on"
Date: Mon, 30 Dec 2019 09:19:30 -0500	[thread overview]
Message-ID: <20191230141930.GB4866@bill-the-cat> (raw)
In-Reply-To: <6eb6eda4-e433-d523-56b6-b31fb2b63c6c@ti.com>

On Fri, Dec 20, 2019 at 11:16:38AM +0530, Lokesh Vutla wrote:
> 
> 
> On 17/12/19 5:44 PM, Igor Opaniuk wrote:
> > From: Igor Opaniuk <igor.opaniuk@toradex.com>
> > 
> > This reverts commit f0cc4eae9a1702a768817ea25d9f23cece69d021
> > 
> > This was previously reported that f0cc4eae9a ("core: device:
> > use dev_power_domain_on") breaks initial boot on Colibri iMX8X and
> > IMX8 QM ROM 7720a1 board. Revert it until the problem is properly fixed.
> > 
> > Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
> 
> NAK. This breaks other drivers with multiple power domains that rely on core
> framework to enable.
> 
> > ---
> > 
> >  drivers/core/device.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/core/device.c b/drivers/core/device.c
> > index 4e037083a6..c5b232c259 100644
> > --- a/drivers/core/device.c
> > +++ b/drivers/core/device.c
> > @@ -313,6 +313,7 @@ static void *alloc_priv(int size, uint flags)
> >  
> >  int device_probe(struct udevice *dev)
> >  {
> > +	struct power_domain pd;
> >  	const struct driver *drv;
> >  	int size = 0;
> >  	int ret;
> > @@ -396,9 +397,8 @@ int device_probe(struct udevice *dev)
> >  	if (CONFIG_IS_ENABLED(POWER_DOMAIN) && dev->parent &&
> >  	    (device_get_uclass_id(dev) != UCLASS_POWER_DOMAIN) &&
> >  	    !(drv->flags & DM_FLAG_DEFAULT_PD_CTRL_OFF)) {
> > -		ret = dev_power_domain_on(dev);
> > -		if (ret)
> > -			goto fail;
> 
> Can you check by not returning on failure here? If yes then check the
> power-domain/driver that is failing. If any driver doesn't expect core to enable
> power-domain then enable DM_FLAG_DEFAULT_PD_CTRL_OFF in the respective driver.

I'm adding a few other people to this part of the thread as I don't
think breaking some boards to fix other boards is a viable choice, even
at this stage in the release.  Thanks all.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191230/8d0f4557/attachment.sig>

      reply	other threads:[~2019-12-30 14:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-17 12:14 [PATCH v1] Revert "core: device: use dev_power_domain_on" Igor Opaniuk
2019-12-19 14:12 ` Oleksandr Suvorov
2019-12-19 14:57 ` Fabio Estevam
2019-12-20  1:14 ` Peng Fan
2019-12-20  1:30   ` Fabio Estevam
2019-12-20 12:11   ` Igor Opaniuk
2019-12-20  5:46 ` Lokesh Vutla
2019-12-30 14:19   ` Tom Rini [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=20191230141930.GB4866@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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.