Re: [PATCH v5 2/2] ath11k: Use reserved host DDR addresses from DT for PCI devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux