Merge "i2c-msm-geni: Bypass ICC vote check for LE when dumping register"

This commit is contained in:
qctecmdr 2021-02-19 01:29:08 -08:00 • committed by Gerrit - the friendly Code Review server
commit 6753ae03b3

View file

@ -1231,6 +1231,9 @@ static int geni_i2c_probe(struct platform_device *pdev)
dev_info(&pdev->dev, "LE-VM usecase\n");
}
gi2c->i2c_rsc.wrapper_dev = &wrapper_pdev->dev;
gi2c->i2c_rsc.ctrl_dev = gi2c->dev;
/*
* For LE, clocks, gpio and icb voting will be provided by
* by LA. The I2C operates in GSI mode only for LE usecase,
@ -1238,8 +1241,6 @@ static int geni_i2c_probe(struct platform_device *pdev)
* in I2C LE dt.
*/
if (!gi2c->is_le_vm) {
gi2c->i2c_rsc.wrapper_dev = &wrapper_pdev->dev;
gi2c->i2c_rsc.ctrl_dev = gi2c->dev;
gi2c->i2c_rsc.se_clk = devm_clk_get(&pdev->dev, "se-clk");
if (IS_ERR(gi2c->i2c_rsc.se_clk)) {
ret = PTR_ERR(gi2c->i2c_rsc.se_clk);