]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
intel_idle: allow sparse sub-state numbering, for Bay Trail
authorLen Brown <len.brown@intel.com>
Fri, 14 Feb 2014 05:50:34 +0000 (00:50 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 19 Feb 2014 22:42:58 +0000 (17:42 -0500)
commit24bfa950f114d5d770e482de73cf673a3b017f65
tree126199225a4045bc00db441c255ae4eb318efa2b
parent2194324d8bbbad1b179c08b6095649b06abd62d5
intel_idle: allow sparse sub-state numbering, for Bay Trail

Like acpi_idle, intel_idle compared sub-state numbers
to the number of supported sub-states -- discarding
sub-states numbers that were numbered >= the number of states.

But some Bay Trail SOCs use sparse sub-state numbers,
so we can't make such a comparison if we are going
to access those states.

So now we simply check that _some_ sub-states are
supported for the given state, and assume that the
sub-state number in our driver is valid.

In practice, the driver is correct, and even if it were not,
the hardware clips invalid sub-state requests to valid ones.

No entries in the driver require this change,
but Bay Trail will need it.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/idle/intel_idle.c