This is a note to let you know that I've just added the patch titled

    regulator: max8998: Ensure enough delay time for 
max8998_set_voltage_buck_time_sel

to the 3.7-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     
regulator-max8998-ensure-enough-delay-time-for-max8998_set_voltage_buck_time_sel.patch
and it can be found in the queue-3.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 81d0a6ae7befb24c06f4aa4856af7f8d1f612171 Mon Sep 17 00:00:00 2001
From: Axel Lin <[email protected]>
Date: Wed, 9 Jan 2013 19:34:57 +0800
Subject: regulator: max8998: Ensure enough delay time for 
max8998_set_voltage_buck_time_sel

From: Axel Lin <[email protected]>

commit 81d0a6ae7befb24c06f4aa4856af7f8d1f612171 upstream.

Use DIV_ROUND_UP to prevent truncation by integer division issue.
This ensures we return enough delay time.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/regulator/max8998.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/regulator/max8998.c
+++ b/drivers/regulator/max8998.c
@@ -447,7 +447,7 @@ static int max8998_set_voltage_buck_time
 
        difference = (new_selector - old_selector) * desc->step / 1000;
        if (difference > 0)
-               return difference / ((val & 0x0f) + 1);
+               return DIV_ROUND_UP(difference, (val & 0x0f) + 1);
 
        return 0;
 }


Patches currently in stable-queue which might be from [email protected] are

queue-3.7/regulator-max8998-ensure-enough-delay-time-for-max8998_set_voltage_buck_time_sel.patch
queue-3.7/asoc-wm2200-fix-setting-dai-format-in-wm2200_set_fmt.patch
queue-3.7/regulator-max8998-use-uv-in-voltage_map_desc.patch
queue-3.7/regulator-max8997-use-uv-in-voltage_map_desc.patch
queue-3.7/asoc-sta529-fix-update-register-bits-in-sta529_set_dai_fmt.patch
queue-3.7/asoc-arizona-do-proper-shift-for-setting-aif-rate.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to