diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-12 17:52:20 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-12 17:52:20 +0200 |
commit | be83f982a71eb76288d011d6681739059d9a6ead (patch) | |
tree | 910ee25687f09cd9abc43202a1aad703f0092645 /target/linux/sunxi/patches-4.1/116-mtd-add-vendor-specific-initcode-infra.patch | |
parent | 930195737a0916d80ad2f7fe8b0f8fe4e4691762 (diff) | |
download | mtk-20170518-be83f982a71eb76288d011d6681739059d9a6ead.zip mtk-20170518-be83f982a71eb76288d011d6681739059d9a6ead.tar.gz mtk-20170518-be83f982a71eb76288d011d6681739059d9a6ead.tar.bz2 |
sunxi: delete old kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/sunxi/patches-4.1/116-mtd-add-vendor-specific-initcode-infra.patch')
-rw-r--r-- | target/linux/sunxi/patches-4.1/116-mtd-add-vendor-specific-initcode-infra.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/target/linux/sunxi/patches-4.1/116-mtd-add-vendor-specific-initcode-infra.patch b/target/linux/sunxi/patches-4.1/116-mtd-add-vendor-specific-initcode-infra.patch deleted file mode 100644 index 5a4917c..0000000 --- a/target/linux/sunxi/patches-4.1/116-mtd-add-vendor-specific-initcode-infra.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 95430662a26332474f4a03a7f8f44fd8d80890b3 Mon Sep 17 00:00:00 2001 -From: Boris BREZILLON <b.brezillon.dev@gmail.com> -Date: Mon, 24 Feb 2014 16:28:32 +0100 -Subject: [PATCH] mtd: nand: Add manufacturer specific init code infrastructure - -Add new fields in nand_manufacturers and nand_chip struct to provide -manufacturer specific handling like read retries. - -Signed-off-by: Boris BREZILLON <b.brezillon.dev@gmail.com> -Signed-off-by: Hans de Goede <hdegoede@redhat.com> ---- - drivers/mtd/nand/nand_base.c | 7 +++++++ - include/linux/mtd/nand.h | 4 ++++ - 2 files changed, 11 insertions(+) - ---- a/drivers/mtd/nand/nand_base.c -+++ b/drivers/mtd/nand/nand_base.c -@@ -4382,6 +4382,13 @@ ident_done: - if (mtd->writesize > 512 && chip->cmdfunc == nand_command) - chip->cmdfunc = nand_command_lp; - -+ if (nand_manuf_ids[maf_idx].init) { -+ int err; -+ err = nand_manuf_ids[maf_idx].init(mtd, id_data); -+ if (err) -+ return ERR_PTR(err); -+ } -+ - pr_info("device found, Manufacturer ID: 0x%02x, Chip ID: 0x%02x\n", - *maf_id, *dev_id); - ---- a/include/linux/mtd/nand.h -+++ b/include/linux/mtd/nand.h -@@ -748,6 +748,9 @@ struct nand_chip { - int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip, - int feature_addr, uint8_t *subfeature_para); - int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode); -+ void (*manuf_cleanup)(struct mtd_info *mtd); -+ -+ void *manuf_priv; - - int chip_delay; - unsigned int options; -@@ -950,6 +953,7 @@ struct nand_flash_dev { - struct nand_manufacturers { - int id; - char *name; -+ int (*init)(struct mtd_info *mtd, const uint8_t *id); - }; - - extern struct nand_flash_dev nand_flash_ids[]; |