提交 827f18d0 编写于 作者: G Greg Kroah-Hartman 提交者: Zheng Zengkai

Revert "mtd: rawnand: gpmi: Fix setting busy timeout setting"

stable inclusion
from stable-v5.10.131
commit cc5ee0e0eed0bec2b7cc1d0feb9405e884eace7d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5YRND

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cc5ee0e0eed0bec2b7cc1d0feb9405e884eace7d

--------------------------------

This reverts commit 156427b3123c2c1f0987a544d0b005b188a75393 which is
commit 06781a50 upstream.

It is reported to cause data loss, so revert it to prevent that from
happening for users of this driver.
Reported-by: NTomasz Moń <tomasz.mon@camlingroup.com>
Reported-by: NSascha Hauer <s.hauer@pengutronix.de>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/all/20220701110341.3094023-1-s.hauer@pengutronix.de/Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 9ab9c6ff
...@@ -683,7 +683,7 @@ static void gpmi_nfc_compute_timings(struct gpmi_nand_data *this, ...@@ -683,7 +683,7 @@ static void gpmi_nfc_compute_timings(struct gpmi_nand_data *this,
hw->timing0 = BF_GPMI_TIMING0_ADDRESS_SETUP(addr_setup_cycles) | hw->timing0 = BF_GPMI_TIMING0_ADDRESS_SETUP(addr_setup_cycles) |
BF_GPMI_TIMING0_DATA_HOLD(data_hold_cycles) | BF_GPMI_TIMING0_DATA_HOLD(data_hold_cycles) |
BF_GPMI_TIMING0_DATA_SETUP(data_setup_cycles); BF_GPMI_TIMING0_DATA_SETUP(data_setup_cycles);
hw->timing1 = BF_GPMI_TIMING1_BUSY_TIMEOUT(DIV_ROUND_UP(busy_timeout_cycles, 4096)); hw->timing1 = BF_GPMI_TIMING1_BUSY_TIMEOUT(busy_timeout_cycles * 4096);
/* /*
* Derive NFC ideal delay from {3}: * Derive NFC ideal delay from {3}:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册