Skip to content

Commit ca250b6

Browse files
marvintwentyfourgregkh
authored andcommitted
staging: nvec: re-enable the clock on resume
On resume the slave controller is reinitialized. The tegra i2c master controller disables the clock at the end of the initialiation, propably to save some power, and enables it again on each transfer. We don't do this yet and also forgot to enable the clock on resume. Fix this copy-paste error by not disabling the clock after initialization. This didn't striked us yet because suspend/resume hasn't landed in mainline yet, but will soon. Signed-off-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9c02d0d commit ca250b6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/staging/nvec/nvec.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,6 @@ static void tegra_init_i2c_slave(struct nvec_chip *nvec)
750750
writel(0, nvec->base + I2C_SL_ADDR2);
751751

752752
enable_irq(nvec->irq);
753-
754-
clk_disable_unprepare(nvec->i2c_clk);
755753
}
756754

757755
#ifdef CONFIG_PM_SLEEP
@@ -872,9 +870,6 @@ static int tegra_nvec_probe(struct platform_device *pdev)
872870

873871
tegra_init_i2c_slave(nvec);
874872

875-
clk_prepare_enable(i2c_clk);
876-
877-
878873
/* enable event reporting */
879874
nvec_toggle_global_events(nvec, true);
880875

0 commit comments

Comments
 (0)