lkml.org 
[lkml]   [2015]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/8] core: platform: wakeup the parent before trying any driver operations
On Mon, 25 May 2015, Andy Shevchenko wrote:

> From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
>
> If the parent is still suspended when a driver probe,
> remove or shutdown is attempted, the result may be a
> failure.
>
> For example, if the parent is a PCI MFD device that has been
> suspended when we try to probe our device, any register
> reads will return 0xffffffff.
>
> To fix the problem, making sure the parent is always awake
> before using driver probe, remove or shutdown.
>
> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/base/platform.c | 21 ++++++++++++++++++++-

Why make the changes here rather than in dd.c? Is there something
special about platform devices?

Alan Stern



\
 
 \ /
  Last update: 2015-05-25 19:41    [W:0.175 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site