]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-pnx: Limit maximum divider to 1023
authorKevin Wells <wellsk40@gmail.com>
Tue, 16 Mar 2010 22:55:36 +0000 (15:55 -0700)
committerBen Dooks <ben-linux@fluff.org>
Tue, 20 Apr 2010 00:16:57 +0000 (01:16 +0100)
commit5f111c9f41bf72663f8cf9da2615dc26950df9dc
tree0fd671b707e584ac7cedf4166063b7185d620fa4
parentd6ac3111bd5e7ee8d9642b75619d60a6458bffbc
i2c-pnx: Limit maximum divider to 1023

Limit maximum divider to 0x3ff to divider computations. On high I2C
parent clock rates, the divider can exceed 0x3ff. This will help
prevent some very odd clock rates.

Signed-off-by: Kevin Wells <wellsk40@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-pnx.c