Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang: "Some easy but needed fixes for i2c drivers since rc1" * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: bcm2835: Linking platform nodes to adapter nodes i2c: omap: raw read and write endian fix i2c: i2c-bcm-kona: Fix module build i2c: i2c-diolan-u2c: different usb endpoints for DLN-2-U2C i2c: bcm-kona: remove duplicated include i2c: davinci: raw read and write endian fix
This commit is contained in:
@@ -266,13 +266,13 @@ static const u8 reg_map_ip_v2[] = {
|
||||
static inline void omap_i2c_write_reg(struct omap_i2c_dev *i2c_dev,
|
||||
int reg, u16 val)
|
||||
{
|
||||
__raw_writew(val, i2c_dev->base +
|
||||
writew_relaxed(val, i2c_dev->base +
|
||||
(i2c_dev->regs[reg] << i2c_dev->reg_shift));
|
||||
}
|
||||
|
||||
static inline u16 omap_i2c_read_reg(struct omap_i2c_dev *i2c_dev, int reg)
|
||||
{
|
||||
return __raw_readw(i2c_dev->base +
|
||||
return readw_relaxed(i2c_dev->base +
|
||||
(i2c_dev->regs[reg] << i2c_dev->reg_shift));
|
||||
}
|
||||
|
||||
@@ -1162,9 +1162,9 @@ omap_i2c_probe(struct platform_device *pdev)
|
||||
* Read the Rev hi bit-[15:14] ie scheme this is 1 indicates ver2.
|
||||
* On omap1/3/2 Offset 4 is IE Reg the bit [15:14] is 0 at reset.
|
||||
* Also since the omap_i2c_read_reg uses reg_map_ip_* a
|
||||
* raw_readw is done.
|
||||
* readw_relaxed is done.
|
||||
*/
|
||||
rev = __raw_readw(dev->base + 0x04);
|
||||
rev = readw_relaxed(dev->base + 0x04);
|
||||
|
||||
dev->scheme = OMAP_I2C_SCHEME(rev);
|
||||
switch (dev->scheme) {
|
||||
|
Referens i nytt ärende
Block a user