diff mbox series

[2/2] mtd: parsers: trx: Remove dependency to BRCM architectures

Message ID 20210315170711.567358-3-hauke@hauke-m.de
State New
Headers show
Series mtd: parsers: trx: Add support for Buffalo WSR-2533DHP2 | expand

Commit Message

Hauke Mehrtens March 15, 2021, 5:07 p.m. UTC
Buffalo uses the TRX partition format also on Mediatek SoCs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 drivers/mtd/parsers/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafał Miłecki March 18, 2021, 6:45 a.m. UTC | #1
On 15.03.2021 18:07, Hauke Mehrtens wrote:
> Buffalo uses the TRX partition format also on Mediatek SoCs.
> 
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> ---
>   drivers/mtd/parsers/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig
> index d90c30229052..6242903d8844 100644
> --- a/drivers/mtd/parsers/Kconfig
> +++ b/drivers/mtd/parsers/Kconfig
> @@ -96,7 +96,7 @@ config MTD_AFS_PARTS
>   
>   config MTD_PARSER_TRX
>   	tristate "Parser for TRX format partitions"
> -	depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST)
> +	depends on MTD
>   	help
>   	  TRX is a firmware format used by Broadcom on their devices. It
>   	  may contain up to 3/4 partitions (depending on the version).
> 

Please check Documentation/kbuild/kconfig-language.rst and commit
18084e435ff6 ("Documentation/kbuild: Document platform dependency
practises")

I think you should rather add platform to DEPENDS.
Hauke Mehrtens April 18, 2021, 5:03 p.m. UTC | #2
On 3/18/21 7:45 AM, Rafał Miłecki wrote:
> On 15.03.2021 18:07, Hauke Mehrtens wrote:

>> Buffalo uses the TRX partition format also on Mediatek SoCs.

>>

>> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

>> ---

>>   drivers/mtd/parsers/Kconfig | 2 +-

>>   1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig

>> index d90c30229052..6242903d8844 100644

>> --- a/drivers/mtd/parsers/Kconfig

>> +++ b/drivers/mtd/parsers/Kconfig

>> @@ -96,7 +96,7 @@ config MTD_AFS_PARTS

>>   config MTD_PARSER_TRX

>>       tristate "Parser for TRX format partitions"

>> -    depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST)

>> +    depends on MTD

>>       help

>>         TRX is a firmware format used by Broadcom on their devices. It

>>         may contain up to 3/4 partitions (depending on the version).

>>

> 

> Please check Documentation/kbuild/kconfig-language.rst and commit

> 18084e435ff6 ("Documentation/kbuild: Document platform dependency

> practises")

> 

> I think you should rather add platform to DEPENDS.


Ok I will add a dependency to ARCH_MEDIATEK. I think Buffalo also used 
this on some Mediatek/ralink MIPS devices, but they are not supported 
upstream yet.

Hauke
diff mbox series

Patch

diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig
index d90c30229052..6242903d8844 100644
--- a/drivers/mtd/parsers/Kconfig
+++ b/drivers/mtd/parsers/Kconfig
@@ -96,7 +96,7 @@  config MTD_AFS_PARTS
 
 config MTD_PARSER_TRX
 	tristate "Parser for TRX format partitions"
-	depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST)
+	depends on MTD
 	help
 	  TRX is a firmware format used by Broadcom on their devices. It
 	  may contain up to 3/4 partitions (depending on the version).