Skip to content

itr_chip drivers: dt_driver resources for interrupts bindings - #6088

Merged
jforissier merged 2 commits into
OP-TEE:masterfrom
etienne-lms:itr-chip-2
Jun 7, 2023
Merged

itr_chip drivers: dt_driver resources for interrupts bindings#6088
jforissier merged 2 commits into
OP-TEE:masterfrom
etienne-lms:itr-chip-2

Conversation

@etienne-lms

Copy link
Copy Markdown
Contributor

2 patches extracted from #5954:

"core: dt_driver: define interrupt controller drivers identifier":
@jenswi-linaro review tag applied (#5954 (comment)).

"core: dt_driver: add helper for old fashion interrupt bindings"
@jenswi-linaro review tag (#5954 (review)) is NOT YET applied as I squashed in a fix (#5954 (comment)).

Defines identifier DT_DRIVER_INTERRUPT in dt_driver_type enumerated type
for interrupt controller drivers.

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Comment thread core/kernel/dt_driver.c Outdated
}

prop_index *= dt_driver_provider_cells(prv);
if (prop_index * sizeof(*prop) >= (size_t)len) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Woulnd't

(prop_index + 1) * sizeof(*prop) > (size_t)len

be more accurate?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you're right. Thanks.

@etienne-lms

Copy link
Copy Markdown
Contributor Author

comment addressed

@jenswikl

jenswikl commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

Adds a helper function dt_driver_device_from_node_idx_prop_phandle()
in device tree driver probing framework for when a DT node property
contains a resource references but not the related device phandle as
first property cell, as for property "interrupts" which should get the
interrupt controller phandle from property "interrupt-parent". This
change aims at supporting "interrupts" property DT bindings.

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
@etienne-lms

Copy link
Copy Markdown
Contributor Author

fixup commit squashed and tag applied.
thanks.

@jforissier
jforissier merged commit 50dd2af into OP-TEE:master Jun 7, 2023
@etienne-lms
etienne-lms deleted the itr-chip-2 branch June 7, 2023 11:52
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