]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
i2c: aspeed: Deassert reset in probe
authorJoel Stanley <joel@jms.id.au>
Wed, 1 Nov 2017 00:23:30 +0000 (10:53 +1030)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 6 Nov 2017 18:15:31 +0000 (19:15 +0100)
commitedd20e95bca4a5434f264d8ab40d729761479825
tree0aec602dedb9c1c42ba9cb7cf838b065a8076d7e
parent7f2a2f0d0d66b2d834c793df45af3277bb5f10f4
i2c: aspeed: Deassert reset in probe

In order to use i2c from a cold boot, the i2c peripheral must be taken
out of reset. We request a shared reset controller each time a bus
driver is loaded, as the reset is shared between the 14 i2c buses.

On remove the reset is asserted, which only touches the hardware once
the last i2c bus is removed.

The reset is required as the I2C buses will not work without releasing
the reset. Previously the driver only worked with out of tree hacks
that released this reset before the driver was loaded. Update the
device tree bindings to reflect this.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
drivers/i2c/busses/i2c-aspeed.c