Search Linux Wireless

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 2021-11-23 18:31, Sven Eckelmann wrote:
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);

Yes Sven, I will update in next version.

Thanks
Anil.



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux