]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: take address space into account when checking for used addresses
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 17 Jul 2015 12:48:56 +0000 (14:48 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 24 Aug 2015 12:05:14 +0000 (14:05 +0200)
commite22762430cb7ab0f543bb393d3de9ecd17d842a5
treeda17b6a3de9f47c5affd0b685b69524a67fd03f6
parent46e9855c57f9fab601d30cf66d8ce8f330d99e43
i2c: take address space into account when checking for used addresses

It is not enough to compare the plain address value, we also need to
check the flags enabling a different address space. E.g. it is valid to
have address 0x50 as a 7-bit address and 0x050 as 10-bit address on the
same bus. Same for addresses when we are the slave.

Tested-by: Andrey Danin <danindrey@mail.ru>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c