aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorSam Protsenko <[email protected]>2021-12-03 20:35:17 +0200
committerRob Herring <[email protected]>2021-12-06 14:19:17 -0600
commit4b7c49f7d4986f700a58164ee086bb7b2d292eea (patch)
treebef2b42f36bdd1fe1cf27c629d50eeef3f4be9eb /lib/test_overflow.c
parent4e5b6de1f46d0ea0b2e1f76bfc4eb6df03846a03 (diff)
dt-bindings: Only show unique unit address warning for enabled nodes
There are valid cases when two nodes can have the same address. For example, in Exynos SoCs there is USI IP-core, which might be configured to provide UART, SPI or I2C block, all of which having the same base register address. But only one can be enabled at a time. That looks like this: usi@138200c0 { serial@13820000 { status = "okay"; }; i2c@13820000 { status = "disabled"; }; }; When running "make dt_binding_check", it reports next warning: Warning (unique_unit_address): /example-0/usi@138200c0/serial@13820000: duplicate unit-address (also used in node /example-0/usi@138200c0/i2c@13820000) Disable "unique_unit_address" in DTC_FLAGS to suppress warnings like that, but enable "unique_unit_address_if_enabled" warning, so that dtc still reports a warning when two enabled nodes are having the same address. Signed-off-by: Sam Protsenko <[email protected]> Reported-by: Rob Herring <[email protected]> Suggested-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions