Skip to content

baremetalconfig_xlnx: fix clocks single-cell offset; optional prop first int#756

Merged
zeddii merged 1 commit into
devicetree-org:masterfrom
harishpamarthi:master
May 6, 2026
Merged

baremetalconfig_xlnx: fix clocks single-cell offset; optional prop first int#756
zeddii merged 1 commit into
devicetree-org:masterfrom
harishpamarthi:master

Conversation

@harishpamarthi
Copy link
Copy Markdown

baremetalconfig_xlnx: fix clock cell indexing and optional CMake ints
Clocks:

  • With no clock-names, use offset 0 when clocks has a single phandle cell (avoids out-of-range access and spurious warnings on IPs like MDM).
  • On out-of-range offset, return value[0]; warn only when multiple cells exist. Fixes incorrect use of value[1] when only one cell is present. Optional driver metadata (DRIVER_OPTPROP_*):
  • Take node[prop].value[0]; if it is a string, parse the first comma-separated token as int (e.g. "0 , 1 , 0" -> first value only).

…rst int

baremetalconfig_xlnx: fix clock cell indexing and optional CMake ints
  Clocks:
  - With no clock-names, use offset 0 when clocks has a single phandle cell
    (avoids out-of-range access and spurious warnings on IPs like MDM).
  - On out-of-range offset, return value[0]; warn only when multiple cells exist.
    Fixes incorrect use of value[1] when only one cell is present.
  Optional driver metadata (DRIVER_OPTPROP_*):
  - Take node[prop].value[0]; if it is a string, parse the first comma-separated
    token as int (e.g. "0 , 1 , 0" -> first value only).

Signed-off-by: Harish Babu Pamarthi <HarishBabu.Pamarthi@amd.com>
@zeddii
Copy link
Copy Markdown
Collaborator

zeddii commented May 6, 2026

any additional reviews needed for this one ?

@zeddii zeddii merged commit 49a6270 into devicetree-org:master May 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants