• Hans de Goede's avatar
    mvtwsi: Fix breakage introduced by "Fix mvtwsi not working on sun6i and newer sunxi SoCs" · 2ca02995
    Hans de Goede authored
    "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: default avatarHans de Goede <hdegoede@redhat.com>
    2ca02995
Name
Last commit
Last update
..
muxes Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
adi_i2c.c Loading commit data...
cros_ec_ldo.c Loading commit data...
cros_ec_tunnel.c Loading commit data...
davinci_i2c.c Loading commit data...
davinci_i2c.h Loading commit data...
designware_i2c.c Loading commit data...
designware_i2c.h Loading commit data...
fsl_i2c.c Loading commit data...
fti2c010.c Loading commit data...
fti2c010.h Loading commit data...
i2c-emul-uclass.c Loading commit data...
i2c-gpio.c Loading commit data...
i2c-uclass-compat.c Loading commit data...
i2c-uclass.c Loading commit data...
i2c-uniphier-f.c Loading commit data...
i2c-uniphier.c Loading commit data...
i2c_core.c Loading commit data...
ihs_i2c.c Loading commit data...
intel_i2c.c Loading commit data...
kona_i2c.c Loading commit data...
lpc32xx_i2c.c Loading commit data...
mv_i2c.c Loading commit data...
mv_i2c.h Loading commit data...
mvtwsi.c Loading commit data...
mxc_i2c.c Loading commit data...
mxs_i2c.c Loading commit data...
omap24xx_i2c.c Loading commit data...
omap24xx_i2c.h Loading commit data...
pca9564_i2c.c Loading commit data...
ppc4xx_i2c.c Loading commit data...
rcar_i2c.c Loading commit data...
rk_i2c.c Loading commit data...
s3c24x0_i2c.c Loading commit data...
s3c24x0_i2c.h Loading commit data...
sandbox_i2c.c Loading commit data...
sh_i2c.c Loading commit data...
sh_sh7734_i2c.c Loading commit data...
soft_i2c.c Loading commit data...
tegra_i2c.c Loading commit data...
tsi108_i2c.c Loading commit data...
zynq_i2c.c Loading commit data...