[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1424247536-16476-1-git-send-email-ghug@induct.be>
Date: Wed, 18 Feb 2015 09:18:55 +0100
From: Gaetan Hug <ghug@...uct.be>
To: <thierry.reding@...il.com>
CC: <linux-pwm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Gaetan Hug <ghug@...uct.be>
Subject: [PATCH 0/1] fix for pwm-mxs period divider computation
Hello Thierry,
I found a bug in the pwm-mxs.c driver for the i.MX28 platform.
The driver computes from the desired period which clock divider it
should be using. This computation assumes that the link between the
register value and the actual divider value is raising 2 to the power of
the registry value.
div = 1 << regvalue
This is true only for the first 5 values out of 8. Next values are
64, 256 and, 1024.
This affects only the user only if he requests a period > 0.04369s.
Gaetan Hug (1):
fixing pwm-mxs period divider computation
drivers/pwm/pwm-mxs.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists