[PATCH v3 3/5] i2c-piix4: Request base address index region once for SB800

2015-11-07 Thread Christian Fetzer
Request the SMBus base address index region once in piix4_probe. This is particularly useful when using the multiplexed adapter in SB800 as it avoids requesting and releasing the region on every transfer. Signed-off-by: Christian Fetzer --- drivers/i2c/busses/i2c-piix4.c |

[PATCH v3 5/5] i2c-piix4: Add adapter port name support for SB800 chipset

2015-11-07 Thread Christian Fetzer
This patch adds support for port names for the SB800 chipset. Since the chipset supports a multiplexed main SMBus controller, adding the channel name to the adapter name is necessary to differentiate the ports better (for example in sensors output). Signed-off-by: Christian Fetzer

[PATCH v3 4/5] i2c-piix4: Add support for multiplexed main adapter in SB800

2015-11-07 Thread Christian Fetzer
The SB800 chipset supports a multiplexed main SMBus controller with four ports. The multiplexed ports share the same SMBus address and register set. The port is selected by bits 2:1 of the smb_en register (0x2C). Only one port can be active at any point in time therefore a mutex is needed in

[PATCH v3 2/5] i2c-piix4: Convert piix4_main_adapter to array

2015-11-07 Thread Christian Fetzer
The SB800 chipset supports a multiplexed main SMBus controller with four ports. Therefore the static variable piix4_main_adapter is converted into a piix4_main_adapters array that can hold one i2c_adapter for each multiplexed port. The auxiliary adapter remains unchanged since it represents the

[PATCH v3 0/5] Support multiplexed main SMBus interface on SB800

2015-11-07 Thread Christian Fetzer
This is an attempt to upstream the patches created by Thomas Brandon and Eddi De Pieri to support the multiplexed main SMBus interface on the SB800 chipset. (https://www.mail-archive.com/linux-i2c@vger.kernel.org/msg06757.html) I have mainly rebased the latest patch version and tested the driver

[PATCH v3 1/5] i2c-piix4: Optionally release smba in piix4_adap_remove

2015-11-07 Thread Christian Fetzer
This is in preparation to support the multiplexed SMBus main controller in the SB800 chipset where the controller address is shared among the four multiplexed ports. As such the address region should be only freed for the first multiplexed adapter to avoid double free warnings. Signed-off-by: