On 6/19/21 8:14 AM, Ivaylo Dimitrov wrote:
Hi Marek,
Hi,
[...]
Currently DM_USB requires OF_CONTROL to be enabled, otherwise link
errors
occur. On the other hand OF_CONTROL requires board code to be
migrated to
DT, which is not always possible or required.
Fix that by conditionally compiling OF_CONTROL specific sections in USB
related drivers code in the same way like it is done in the other
drivers.
Also, auto select OF_LIBFDT if DM_USB is selected but OF_CONTROL is
not.
Introduce a new Kconfig option OF_NODE used to compile of_node.c in
case
OF_CONTROL is not enabled. Fix deprecation warning condition as well.
So, what is the use case of this? Why not just enable DM_USB and
OF_CONTROL ?
OF_CONTROL requires migration to device-tree.
That's where the supported platforms are heading anyway. Or is there
some issue with switching the platform you use over to DT ?