[PATCH v5 2/2] ath11k: Use reserved host DDR addresses from DT for PCI devices
Sven Eckelmann
sven at narfation.org
Tue Nov 23 05:01:34 PST 2021
On Tuesday, 23 November 2021 12:29:00 CET Anilkumar Kolli wrote:
> + ret = of_property_read_u32(dev->of_node, "memory-region",
> + &hremote_phandle);
> + if (ret) {
> + ath11k_dbg(ab, ATH11K_DBG_QMI,
> + "qmi fail to get hremote phandle\n");
> + return ret;
> + }
> +
> + hremote_node = of_find_node_by_phandle(hremote_phandle);
> + if (!hremote_node) {
> + ath11k_dbg(ab, ATH11K_DBG_QMI,
> + "qmi fail to get hremote_node\n");
> + return ret;
> + }
Afaik, this can be combined via
hremote_node = of_parse_phandle(dev->of_node, "memory-region", 0);
Kind regards,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/ath11k/attachments/20211123/292be90d/attachment.sig>
More information about the ath11k
mailing list