From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/mtd/chips/cfi_util.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/mtd/chips/cfi_util.c b/kernel/drivers/mtd/chips/cfi_util.c
index 6f16552..99b7986 100644
--- a/kernel/drivers/mtd/chips/cfi_util.c
+++ b/kernel/drivers/mtd/chips/cfi_util.c
@@ -26,7 +26,7 @@
void cfi_udelay(int us)
{
if (us >= 1000) {
- msleep((us+999)/1000);
+ msleep(DIV_ROUND_UP(us, 1000));
} else {
udelay(us);
cond_resched();
@@ -109,10 +109,13 @@
case 8:
onecmd |= (onecmd << (chip_mode * 32));
#endif
+ fallthrough;
case 4:
onecmd |= (onecmd << (chip_mode * 16));
+ fallthrough;
case 2:
onecmd |= (onecmd << (chip_mode * 8));
+ fallthrough;
case 1:
;
}
@@ -162,10 +165,13 @@
case 8:
res |= (onestat >> (chip_mode * 32));
#endif
+ fallthrough;
case 4:
res |= (onestat >> (chip_mode * 16));
+ fallthrough;
case 2:
res |= (onestat >> (chip_mode * 8));
+ fallthrough;
case 1:
;
}
--
Gitblit v1.6.2