[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAObsKC1jTzLWmMtwGWVStuMtzZwvMuA_731dsn4YX7aKMtFKQ@mail.gmail.com>
Date: Thu, 7 Jan 2016 15:47:01 +0100
From: Tomeu Vizoso <tomeu.vizoso@...labora.com>
To: Daniel Kurtz <djkurtz@...omium.org>
Cc: Ulf Hansson <ulf.hansson@...aro.org>,
Russell King <linux@....linux.org.uk>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
Tony Lindgren <tony@...mide.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kevin Hilman <khilman@...nel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
dri-devel <dri-devel@...ts.freedesktop.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Alan Stern <stern@...land.harvard.edu>,
Pavel Machek <pavel@....cz>,
Tomas Winkler <tomas.winkler@...el.com>,
"linux-omap@...r.kernel.org" <linux-omap@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, Len Brown <lenb@...nel.org>
Subject: Re: [PATCH v11 2/4] PM / Domains: add setter for dev.pm_domain
On 10 November 2015 at 10:33, Daniel Kurtz <djkurtz@...omium.org> wrote:
[snip]
>
> The problem appears to be that:
> * On boot, platform_drv_probe() calls dev_pm_domain_attach() before
> drv->probe(); thus, it calls dev_pm_domain_attach() while the device
> is unbound.
>
> * However, for a platform_device, the reboot path calls
> device_shutdown(), but not __device_release_driver():
> device_shutdown()
> dev->driver->shutdown => platform_drv_shutdown()
> dev_pm_domain_detach()
> dev->pm_domain->detach() => genpd_dev_pm_detach()
> pm_genpd_remove_device()
> dev_pm_domain_set(dev, NULL);
>
> So, for a platform_device in a genpd power domain with .shutdown
> installed, platform_drv_shutdown() calls dev_pm_domain_detach() while
> the device is still bound, which triggers the WARN().
Hi Rafael, Alan and Ulf,
do you have any suggestion about this? I don't really understand why
the device is detached from the domain on shutdown.
Thanks,
Tomeu
> Thanks,
> -Dan
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists