Skip to content

Commit d73e511

Browse files
Alain Volmatashishverma2691
authored andcommitted
Revert "i2c: stm32f7: increase AUTOSUSPEND_DELAY to avoid lock"
This reverts commit 1969a0c. With the introduction of commit 'i2c: stm32f7: Do not prepare/unprepare clock during runtime suspend/resume', this commit is no more necessary. Change-Id: I179c7f3cee0293aac8a78b30e4c1a33a3c994a58 Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Deepak Kumar <deepak.kumar01@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/408695 Reviewed-by: Alain VOLMAT <alain.volmat@st.com> ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> Reviewed-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Domain-Review: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
1 parent b4f8483 commit d73e511

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/i2c/busses/i2c-stm32f7.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,7 @@ enum {
180180
#define STM32F7_SCLH_MAX BIT(8)
181181
#define STM32F7_SCLL_MAX BIT(8)
182182

183-
/*
184-
* This autosuspend delay should be long enough so that a clk client device performing i2c
185-
* transfer within its prepare_lock protected handler should be able to perform the whole
186-
* handling without having the autosuspend to try to suspend the i2c adapter
187-
*/
188-
#define STM32F7_AUTOSUSPEND_DELAY HZ
183+
#define STM32F7_AUTOSUSPEND_DELAY (HZ / 100)
189184

190185
/**
191186
* struct stm32f7_i2c_regs - i2c f7 registers backup

0 commit comments

Comments
 (0)