Re: [PATCH v4 1/2] usb: dwc3: core: add support for RTK SoC custom's global register start address

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

 



Minor correction.

On Tue, May 02, 2023, Thinh Nguyen wrote:
> 
> Did you try this?
> 
> 	dwc_res.start = DWC3_RTK_ABC_GLOBAL_OFFSET;

Ignore the line above due to copy-paste error.

> 
> 	if (dev->of_node) {
> 		struct device_node *parent = of_get_parent(dev->of_node);
> 
> 		if (of_device_is_compatible(parent, "your-compatible"))
> 			dwc_res.start = DWC3_RTK_ABC_GLOBAL_OFFSET;
> 
> 		of_node_put(parent);
> 	}
> 




[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