Re: [PATCH] i2c: Fix bus-level power management callbacks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jean Delvare
Date: Thursday, March 25, 2010 - 1:57 am

Hi Rafael,

On Fri, 19 Mar 2010 23:44:08 +0100, Rafael J. Wysocki wrote:

Mark, you contributed the initial runtime PM support for the i2c
subsystem, I thought you would have comments on Rafael's
reimplementation?


I am a little surprised to see changes to a generic header file here,
how is the i2c subsystem so special that we have needs other subsystems
did not?


I fail to see why the functions above are outside of the #ifdef
CONFIG_PM_SLEEP scope. They are only called by functions which are
inside the #ifdef CONFIG_PM_SLEEP scope, so you'll get a build-time
warning if CONFIG_PM_SLEEP isn't set.

Is there a plan to get rid of the above legacy functions at some point
in time?


Apart from the above, the code looks sane to me, but then again I don't
know a thing about power management. I'll keep this patch in my i2c
tree, scheduled for merge in 2.6.35. If there are any updates, please
send them over, either as a new patch or as incremental changes which I
will merge myself.

-- 
Jean Delvare
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] i2c: Fix bus-level power management callbacks, Rafael J. Wysocki, (Fri Mar 19, 3:44 pm)
Re: [PATCH] i2c: Fix bus-level power management callbacks, Jean Delvare, (Thu Mar 25, 1:57 am)
Re: [PATCH] i2c: Fix bus-level power management callbacks, Rafael J. Wysocki, (Thu Mar 25, 1:16 pm)