Skip to content

Commit

Permalink
kernel: move parser_trx patches of custom magic to generic
Browse files Browse the repository at this point in the history
This patch moves the patches of parser_trx in mediatek target to
generic/backport-5.10 to use the changes from ramips target and
backport the additional patch of the parser.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
  • Loading branch information
musashino205 authored and hauke committed Mar 6, 2022
1 parent 770cfe9 commit cc49abc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Expand Up @@ -18,7 +18,7 @@ Link: https://lore.kernel.org/linux-mtd/20210418214616.239574-3-hauke@hauke-m.de

--- a/drivers/mtd/parsers/parser_trx.c
+++ b/drivers/mtd/parsers/parser_trx.c
@@ -78,13 +78,20 @@ static int parser_trx_parse(struct mtd_i
@@ -51,13 +51,20 @@ static int parser_trx_parse(struct mtd_i
const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
Expand All @@ -39,7 +39,7 @@ Link: https://lore.kernel.org/linux-mtd/20210418214616.239574-3-hauke@hauke-m.de
parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition),
GFP_KERNEL);
if (!parts)
@@ -97,7 +104,7 @@ static int parser_trx_parse(struct mtd_i
@@ -70,7 +77,7 @@ static int parser_trx_parse(struct mtd_i
return err;
}

Expand Down
Expand Up @@ -14,7 +14,7 @@ Link: https://lore.kernel.org/linux-mtd/20210418214616.239574-4-hauke@hauke-m.de

--- a/drivers/mtd/parsers/Kconfig
+++ b/drivers/mtd/parsers/Kconfig
@@ -131,7 +131,7 @@ config MTD_AFS_PARTS
@@ -115,7 +115,7 @@ config MTD_AFS_PARTS

config MTD_PARSER_TRX
tristate "Parser for TRX format partitions"
Expand Down
1 change: 1 addition & 0 deletions target/linux/generic/config-5.10
Expand Up @@ -3624,6 +3624,7 @@ CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_ONENAND is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_OTP is not set
# CONFIG_MTD_PARSER_TRX is not set
# CONFIG_MTD_PARTITIONED_MASTER is not set
# CONFIG_MTD_PCI is not set
# CONFIG_MTD_PCMCIA is not set
Expand Down
Expand Up @@ -40,7 +40,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
static const char *parser_trx_data_part_name(struct mtd_info *master,
size_t offset)
{
@@ -79,21 +106,21 @@ static int parser_trx_parse(struct mtd_i
@@ -86,21 +113,21 @@ static int parser_trx_parse(struct mtd_i
if (trx.offset[2]) {
part = &parts[curr_part++];
part->name = "loader";
Expand Down

0 comments on commit cc49abc

Please sign in to comment.