Skip to contentSkip to conversation

nvmem: qfprom: Increase fuse blow timeout to prevent write fail.

PATCH In review Knox Chiou 4 participants 5 messages Jan 7, 2022 – Feb 22, 2022 NVMEM framework

lore
Share & tools
lore

Knox Chiou

author
#0 lore raw

PATCH 1/1 nvmem: qfprom: Increase fuse blow timeout to prevent write fail.

sc7180 blow fuses got slightly chances to hit qfprom_reg_write timeout. Current timeout is simply too low. Since blowing fuses is a very rare operation, so the risk associated with overestimating this number is low.
Increase fuse blow timeout from 1ms to 10ms.

---

 drivers/nvmem/qfprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/qfprom.c +1 -1
index c500d6235bf6b..1840d400fb53c 100644
@@ -22,7 +22,7 @@
 
 /* Amount of time required to hold charge to blow fuse in micro-seconds */
 #define QFPROM_FUSE_BLOW_POLL_US	100
-#define QFPROM_FUSE_BLOW_TIMEOUT_US	1000
+#define QFPROM_FUSE_BLOW_TIMEOUT_US	10000
 
 #define QFPROM_BLOW_STATUS_OFFSET	0x048
 #define QFPROM_BLOW_STATUS_BUSY		0x1
Signature · 1 line
2.34.1.448.ga2b2bfdf31-goog
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 7 lines · Knox Chiou

sc7180 blow fuses got slightly chances to hit qfprom_reg_write timeout. Current timeout is simply too low. Since blowing fuses is a very rare operation, so the risk associated with overestimating this number is low.
Increase fuse blow timeout from 1ms to 10ms.

Quoted 5 lines

---

 drivers/nvmem/qfprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Slight nit that ${SUBJECT} for patches usually doesn't end with a period. Presumably if Srinivas cares he can fix it while applying.

#2 lore raw

Srinivas

Quoted 14 lines · Doug Anderson

Hi,

Quoted 10 lines · Knox Chiou

sc7180 blow fuses got slightly chances to hit qfprom_reg_write timeout. Current timeout is simply too low. Since blowing fuses is a very rare operation, so the risk associated with overestimating this number is low.
Increase fuse blow timeout from 1ms to 10ms.

---

Quoted 7 lines
Quoted 2 lines
 drivers/nvmem/qfprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Slight nit that ${SUBJECT} for patches usually doesn't end with a period. Presumably if Srinivas cares he can fix it while applying.

I noticed that this patch still isn't in linux-next. Did it get lost, or are you waiting for anything additional before applying?

Thanks!

-Doug

#4 lore raw
In reply to Knox Chiou
Quoted 7 lines · Knox Chiou

sc7180 blow fuses got slightly chances to hit qfprom_reg_write timeout. Current timeout is simply too low. Since blowing fuses is a very rare operation, so the risk associated with overestimating this number is low.
Increase fuse blow timeout from 1ms to 10ms.

Applied thanks,

--srini

Quoted 18 lines

---

  drivers/nvmem/qfprom.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/qfprom.c +1 -1
index c500d6235bf6b..1840d400fb53c 100644
@@ -22,7 +22,7 @@
 
  /* Amount of time required to hold charge to blow fuse in micro-seconds */
  #define QFPROM_FUSE_BLOW_POLL_US	100
-#define QFPROM_FUSE_BLOW_TIMEOUT_US	1000
+#define QFPROM_FUSE_BLOW_TIMEOUT_US	10000
 
  #define QFPROM_BLOW_STATUS_OFFSET	0x048
  #define QFPROM_BLOW_STATUS_BUSY		0x1