Skip to content

Conversation

@tswaehn
Copy link
Contributor

@tswaehn tswaehn commented Aug 21, 2025

zephyr,random-mac-address defaults to 0 or 1, which is always available in generated code. so we can use the value itself.

actually just replaced

DT_NODE_HAS_PROP

by

DT_PROP

@tswaehn tswaehn force-pushed the nxp-dsa-random-mac branch from fb7a685 to 587a462 Compare August 21, 2025 11:12
pdgendt
pdgendt previously approved these changes Aug 21, 2025
@sonarqubecloud
Copy link

@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Oct 21, 2025
@decsny decsny removed the Stale label Oct 22, 2025
@decsny decsny added this to the v4.3.0 milestone Oct 22, 2025
@decsny
Copy link
Member

decsny commented Oct 22, 2025

this is actually a bug technically, boolean prop should not be read with _HAS_PROP macro, @tswaehn can you please fix PR to use the right macro like @maass-hamburg said

@jhedberg jhedberg modified the milestones: v4.3.0, v4.4.0 Nov 11, 2025
@tswaehn
Copy link
Contributor Author

tswaehn commented Dec 8, 2025

I used DT_INST_PROP(...) to fix it and following the same concept from here: #94785

@tswaehn tswaehn force-pushed the nxp-dsa-random-mac branch from 1ef6b48 to 21e7c49 Compare December 8, 2025 15:51
}; \
struct dsa_port_config dsa_##n##_##port##_config = { \
.use_random_mac_addr = DT_NODE_HAS_PROP(port, zephyr_random_mac_address), \
.use_random_mac_addr = DT_PROP(port, zephyr_random_mac_address), \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace the <tab> with spaces to be consistent with the surrounding code, please.

Copy link
Contributor Author

@tswaehn tswaehn Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw. after closing this, we should probably follow the scheme from PR #100619

@tswaehn tswaehn force-pushed the nxp-dsa-random-mac branch from 21e7c49 to 148f373 Compare December 8, 2025 15:54
zephyr,random-mac-address defaults to 0 or 1, which is always
available in generated code. so we can use the value itself.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
@tswaehn tswaehn force-pushed the nxp-dsa-random-mac branch from 148f373 to 99283a5 Compare December 8, 2025 15:59
@maass-hamburg maass-hamburg requested a review from pdgendt December 8, 2025 16:23
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2025

@nashif nashif merged commit c4a4d8a into zephyrproject-rtos:main Dec 11, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants