diff options
author | Jett.Zhou <jtzhou@marvell.com> | 2011-11-11 15:38:26 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-09 00:37:30 +0100 |
commit | 5bdf7411bc2329cfe015ba6dcf59531e0c6891b8 (patch) | |
tree | de63284df29fb92001b4f75b1827c6b00920bbec /kernel/printk.c | |
parent | 289aabdaf943f3676a16908e2c3cc1a1f9877ccb (diff) |
mfd: Fix 88pm860x test bank i2c interface bug
There are two banks in 88pm8607. One is the normal bank, and the other
one is the test bank, it means it have the same register address in the
normal bank and test bank seperately.
For test bank register, it needs a special I2C sequence to acess as below,
Touching to 0xFA address
Touching to 0xFB address
Touching to 0xFF address
Accessing bank register
Touching to 0xFE address
Touching to 0xFC address
This sequence can't be interrupted. It means that we can't use
i2c_transfef() to implement touching 0xFA address. Otherwise, other i2c
operation may be inserted into 0xFA and 0xFB operation since the lock of
i2c_adapter is already released.
So for test bank we implemented specific i2c read/write operation;
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'kernel/printk.c')
0 files changed, 0 insertions, 0 deletions