drivers: thermal: Handle min state clear condition properly
Currently thermal framework passes min_state value as ULONG_MAX to
clear the vote. But the min_state callback API for few cooling device
drivers are checking whether requested state is within cooling device
max limit or not. If it is not within max limit, it returns error.
It leads to a case where framework clears the request, but cooling
device is still holding previous request.
If min_state request is greater than max_state, cap the min_state
request to max state and apply max state vote for cooling device.
Change-Id: I69d8f1af704532b6a223c34ad825d231e50b8ca3
Signed-off-by:
Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Loading
Please register or sign in to comment