X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Flayerscape%2Fpatches-4.4%2F1081-mtd-spi-nor-provide-default-erase_sector-implementat.patch;h=e966cafce61480176ddbc719447ef9ff0c0eb52c;hb=69acb2533ab3adc4136b151dc9a286dccf523142;hp=85f6cc6da9b3dcdfc9cc808ce2e573a97207974c;hpb=2f2ea7b44c6affb24426759b93d45d0aa26a74d5;p=openwrt%2Fstaging%2Fdedeckeh.git diff --git a/target/linux/layerscape/patches-4.4/1081-mtd-spi-nor-provide-default-erase_sector-implementat.patch b/target/linux/layerscape/patches-4.4/1081-mtd-spi-nor-provide-default-erase_sector-implementat.patch index 85f6cc6da9..e966cafce6 100644 --- a/target/linux/layerscape/patches-4.4/1081-mtd-spi-nor-provide-default-erase_sector-implementat.patch +++ b/target/linux/layerscape/patches-4.4/1081-mtd-spi-nor-provide-default-erase_sector-implementat.patch @@ -26,7 +26,7 @@ Signed-off-by: Brian Norris struct flash_info { char *name; -@@ -313,6 +314,29 @@ static void spi_nor_unlock_and_unprep(st +@@ -314,6 +315,29 @@ static void spi_nor_unlock_and_unprep(st } /* @@ -56,7 +56,7 @@ Signed-off-by: Brian Norris * Erase an address range on the nor chip. The address range may extend * one or more erase sectors. Return an error is there is a problem erasing. */ -@@ -371,10 +395,9 @@ static int spi_nor_erase(struct mtd_info +@@ -372,10 +396,9 @@ static int spi_nor_erase(struct mtd_info while (len) { write_enable(nor); @@ -69,7 +69,7 @@ Signed-off-by: Brian Norris addr += mtd->erasesize; len -= mtd->erasesize; -@@ -1099,7 +1122,7 @@ static int set_quad_mode(struct spi_nor +@@ -1107,7 +1130,7 @@ static int set_quad_mode(struct spi_nor static int spi_nor_check(struct spi_nor *nor) { if (!nor->dev || !nor->read || !nor->write || @@ -78,7 +78,7 @@ Signed-off-by: Brian Norris pr_err("spi-nor: please fill all the necessary fields!\n"); return -EINVAL; } -@@ -1300,6 +1323,12 @@ int spi_nor_scan(struct spi_nor *nor, co +@@ -1310,6 +1333,12 @@ int spi_nor_scan(struct spi_nor *nor, co nor->addr_width = 3; }