mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-06 19:40:42 +09:00
2ca0299579
"Fix mvtwsi not working on sun6i and newer sunxi SoCs" includes the following: @@ -189,7 +200,8 @@ static int twsi_start(struct i2c_adapter *adap, int expected_status) /* globally set TWSIEN in case it was not */ twsi_control_flags |= MVTWSI_CONTROL_TWSIEN; /* assert START */ - writel(twsi_control_flags | MVTWSI_CONTROL_START, &twsi->control); + twsi_control_flags |= MVTWSI_CONTROL_START | MVTWSI_CONTROL_CLEAR_IFLG; + writel(twsi_control_flags, &twsi->control); /* wait for controller to process START */ return twsi_wait(adap, expected_status); } The modification of twsi_control_flags done here was introduced while merging to fix a line > 80 chars, but twsi_control_flags is a global variable and should not be modified like this here, this commit fixes this, restoring mvtwsi functionality. Signed-off-by: Hans de Goede <hdegoede@redhat.com> |
||
---|---|---|
.. | ||
muxes | ||
adi_i2c.c | ||
cros_ec_ldo.c | ||
cros_ec_tunnel.c | ||
davinci_i2c.c | ||
davinci_i2c.h | ||
designware_i2c.c | ||
designware_i2c.h | ||
fsl_i2c.c | ||
fti2c010.c | ||
fti2c010.h | ||
i2c_core.c | ||
i2c-emul-uclass.c | ||
i2c-gpio.c | ||
i2c-uclass-compat.c | ||
i2c-uclass.c | ||
i2c-uniphier-f.c | ||
i2c-uniphier.c | ||
ihs_i2c.c | ||
intel_i2c.c | ||
Kconfig | ||
kona_i2c.c | ||
lpc32xx_i2c.c | ||
Makefile | ||
mv_i2c.c | ||
mv_i2c.h | ||
mvtwsi.c | ||
mxc_i2c.c | ||
mxs_i2c.c | ||
omap24xx_i2c.c | ||
omap24xx_i2c.h | ||
pca9564_i2c.c | ||
ppc4xx_i2c.c | ||
rcar_i2c.c | ||
rk_i2c.c | ||
s3c24x0_i2c.c | ||
s3c24x0_i2c.h | ||
sandbox_i2c.c | ||
sh_i2c.c | ||
sh_sh7734_i2c.c | ||
soft_i2c.c | ||
tegra_i2c.c | ||
tsi108_i2c.c | ||
zynq_i2c.c |