-
Notifications
You must be signed in to change notification settings - Fork 8.4k
soc: silabs: siwx91x: add missing kconfig for ns16550 driver variant #90004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soc: silabs: siwx91x: add missing kconfig for ns16550 driver variant #90004
Conversation
| # Variant for the ns16550 driver | ||
| CONFIG_UART_NS16550_DW8250_DW_APB=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't Kconfig.defconfig be the right place? Putting it here means that you'll get conflicts/warnings if you want to make a build without any UART enabled (since the above option depends on UART_NS16550 being enabled?
| # Variant for the ns16550 driver | ||
| CONFIG_UART_NS16550_DW8250_DW_APB=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. IMO we should modify this with Kconfig.defconfig instead, i.e. something like:
configdefault UART_NS16550_DW8250_DW_APB
default y
The above should retain the dependency on UART_NS16550, making it still possible to completely disable UART support for a build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have hesitate between those two options but only with config and not configdefault (always forgot it exists). With configdefault and inheritance of the dependancy, that's clearly the right things to do. Changed.
The ns16550 UART driver has multiple variant Kconfig options. To successfully run the uart_basic_api test, the correct variant must be selected. This commit adds the missing Kconfig option. Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
Add missing uart tag for siwx91x boards. Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
da46758
577ccdf to
da46758
Compare
|
v2: move to Kconfig.defconfig |
|



The ns16550 UART driver has multiple variant Kconfig options.
To successfully run the uart_basic_api test, the correct variant must be selected.
This commit adds the missing Kconfig options to the siwx917_rb4338a and siwx917_rb4342a boards.
I don't find the fix really clean but the proper way would be to have a different compatible.