mirror of
https://github.com/armbian/build.git
synced 2025-08-09 20:56:57 +02:00
* Add new patches from the tag orange-pi-5.16-20220205-1958
* Remove mutually exclusive patches
* Add, sort next patches for series armbian 5.16
* Add next armbian patches to series.conf
* Swich BRANCH for sunxi: legacy=5.10 current=5.15 edge=5.16
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
* Add upstream megous 5.16 patch to 5.15
* Add wifi rtl8723cs patches to series armbian
* Add a new one, remove old patches that are already in the kernel
* Add redesigned patches for 5.15 to the armbian series
* Remove unused patches
* Finish line
* The old rtl8723cs driver is disabled by default.
* Enable the old rtl8723cs driver by default.
* Comment enable\disable the old driver rtl8723cs-old
* Revert "Swich BRANCH for sunxi: legacy=5.10 current=5.15 edge=5.16"
This reverts commit aad1e92b5e
.
50 lines
1.3 KiB
Diff
50 lines
1.3 KiB
Diff
From 8a7801275c05cec3a0ea29e1952059deedf1761c Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Wed, 9 Feb 2022 16:50:43 +0300
|
|
Subject: [PATCH] drv:mtd:nand: disable badblock check for migration
|
|
|
|
---
|
|
drivers/mtd/nand/raw/nand_base.c | 19 ++-----------------
|
|
1 file changed, 2 insertions(+), 17 deletions(-)
|
|
|
|
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
|
|
index d5a2110eb..ed440edda 100644
|
|
--- a/drivers/mtd/nand/raw/nand_base.c
|
|
+++ b/drivers/mtd/nand/raw/nand_base.c
|
|
@@ -623,10 +623,7 @@ static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs)
|
|
static int nand_block_checkbad(struct nand_chip *chip, loff_t ofs, int allowbbt)
|
|
{
|
|
/* Return info from the table */
|
|
- if (chip->bbt)
|
|
- return nand_isbad_bbt(chip, ofs, allowbbt);
|
|
-
|
|
- return nand_isbad_bbm(chip, ofs);
|
|
+ return 0;
|
|
}
|
|
|
|
/**
|
|
@@ -4583,19 +4580,7 @@ static int nand_block_isbad(struct mtd_info *mtd, loff_t offs)
|
|
int chipnr = (int)(offs >> chip->chip_shift);
|
|
int ret;
|
|
|
|
- /* Select the NAND device */
|
|
- ret = nand_get_device(chip);
|
|
- if (ret)
|
|
- return ret;
|
|
-
|
|
- nand_select_target(chip, chipnr);
|
|
-
|
|
- ret = nand_block_checkbad(chip, offs, 0);
|
|
-
|
|
- nand_deselect_target(chip);
|
|
- nand_release_device(chip);
|
|
-
|
|
- return ret;
|
|
+ return 0;
|
|
}
|
|
|
|
/**
|
|
--
|
|
2.34.1
|
|
|