Re: [PATCH] PM / Runtime: Reduce code duplication in core helperfunctions (was: Re: [linux-pm] [PATCH] PM: add synchronous ...)

From: Alan Stern
Date: Sat Oct 02 2010 - 10:15:35 EST


On Sat, 2 Oct 2010, Rafael J. Wysocki wrote:

> > > > BTW, I like some changes made by your patch that aren't really related to
> > > > the issue at hand, so I think the patch below can be applied regardless of
> > > > the other changes, unless I made a mistake I can see now.
> > >
> > > It looks like a good change, but you forgot to preserve the assignments
> > > to dev->power.runtime_error.
> >
> > That's correct and there's a difference betwee _idle and the other cases
> > because of that. I'll send updated patch with a changelog shortly.
>
> Appended as promised.

This looks okay. In principle you could tell rpm_callback whether or
not to store the return value in dev->power.runtime_error (by passing
an extra argument), but it's probably not worthwhile.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/